Skip to main content

Colab shell Terminal, ffmpeg, DeepSeek

For a disposable Linux command-line shell VM:

  1. Load/create a Colab notebook,
  2. Change the runtime type to 'T4' if you want to use an LLM (AI), 
  3. Paste the following into a cell and run it:

XTerm

!pip install colab-xterm

%load_ext colabxterm

%xterm

An interactive terminal will start.

Notice that you start in the /content folder, to which you can upload and download files through the left-menu. 

Cool stuff you can do with this free compute from the comfort of your potato PC include:

ffmpeg

Colab notebooks come with many pre-installed applications that you can just run. For instance, ffmpeg -i input.mp4 -r 30 -c:v libx264 -c:a aac output.mp4 will transcode a video file that you have presumably uploaded.

Running ffmpeg this way is superior to running it through a code shell because you get progress indicators. It is also better than running it on your local PC because even through your computer can handle it, you can do other tasks without worrying about the jobs interfering with each other.

(Remember: option/flag position is important in ffmpeg)

DeepSeek Uncensored/Abliterated 

I want to try the DeepSeek LLM without creating an account. I also want to have controversial conversations without my edge-lord prompts getting rebuffed.

Soon after DeepSeek was open sourced some clever folks taught it to uncensor itself (abliteration).

Ollama provides a standard interface to LLMs.

You can chat with abliterated DeepSeek in the terminal by running:

curl -fsSL https://ollama.com/install.sh | sh

ollama serve & ollama run huihui_ai/deepseek-r1-abliterated:7b

References


Comments

Popular posts from this blog

Firefox History Statistics - Extracting from Places.sqlite

If you want to take a look at Firefox surfing activity, the about:me add-on is a good start. However, it presents only one view of data and is thus limited in its ability to present more detailed statistics. We will view that data in a different program. So let's first extract it from the browsing history stored in the Places.sqlite file into a CSV file using a Firefox add-on. Step 1 - Locate and copy Places.sqlite to a working location On Windows machines, Places.sqlite is found in a directory similar to: C:\Users\User1\AppData\Roaming\Mozilla\Firefox\Profiles\ .default\places.sqlite Copy the file to another location. The database will be locked while using Firefox, and the SQLite plugin we will use to open it.

Scatterbox - build an Android Tor Socks Proxy Server

Cloak your location and create a firewall bypass device with a smartphone. 🕵Uses the Tor network . Does not require root. 1 - from Google Play, download and install: Orbot Orweb browser Socks Server Ultimate (Optional)

Bloomberg JSON data into Libreoffice Calc

LibreOffice Calc has no inbuilt stock market functions, and a popular plugin which offered those has stopped working along with changes to Yahoo Finance. Luckily, we can get the latest quotes from Bloomberg. [2018-12-15] Bloomberg Finance is, understandably, blocking multiple simultaneous requests. A more flexible solution is using a Python Stock Scraper .