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

Transcode to PSP using Handbrake

Source: Handbrake 0.9.9.5530 64-bit edition Target: (Phat) Playstation Portable PSP-1000 , System Software: 6.60 Many internet articles on how to transcode video to PSP using Handbrake have not worked for me. Even the most helpful are incomplete. I hope this post will help fill in the blanks. There is no longer any PSP preset for Handbrake, but from what I can gather, the preset had only limited success as the x264 encoder would change syntax and settings between versions. Other presets that may have worked before, like 'iPod' and 'Apple-Universal' now do not. Here is what worked for me, step by step:

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)

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.