Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am rumbu on github.
  • I am rlisin (https://keybase.io/rlisin) on keybase.
  • I have a public key ASBOJY42UbjbbYjHyDA3Vd5ilTVUzPJqiVLIq2mOzKa1jwo

To claim this, I am signing this object:

Backup

To backup the software list on a current Ubuntu machine:

apt-key exportall > trusted-keys
dpkg --get-selections > installed-software

Restore

To reinstall the software on a fresh Ubuntu setup:

sudo apt-key add trusted-keys
@rumbu
rumbu / Proxify.md
Last active November 25, 2019 12:56
How to proxify an Ubuntu machine

Global proxy settings

Use GUI Network dialog or append to /etc/environment

http_proxy="http://127.0.0.1:8080/"
https_proxy="https://127.0.0.1:8080/"
socks_proxy="socks://127.0.0.1:8080/"

Proxify git

@rumbu
rumbu / deploy.sh
Created September 3, 2017 18:41
Deploy via SSH using rsync
# To configure ssh access, open or create "~/.ssh/config" file and add these lines:
# Host domain.com
# User username
# IdentityFile /path/to/certificate.key
# Dry run
rsync -rvz -c --dry-run --force --delete --progress --exclude-from=rsync_exclude.txt -e "ssh -p22" ./ username@domain.com:~/public_html
# Real run
# rsync -rvz -c --force --delete --progress --exclude-from=rsync_exclude.txt -e "ssh -p22" ./ username@domain.com:~/public_html
@rumbu
rumbu / ffmpeg-cast.sh
Created September 1, 2017 16:20
Record a screencast in Ubuntu
# To start screen recording
ffmpeg -f x11grab -r 25 -s 1366x768 -i :0.0 -vcodec huffyuv screencast.avi
# Stop recording
^C
# Compress to mkv
ffmpeg -i screencast.avi screencast.mkv
@rumbu
rumbu / 7zip.bat
Last active June 12, 2023 03:13
7-zip AES encryption from the command line
# Compress and encrypt all current subfolders on Windows
FOR /D %%X IN (*) DO "C:\Program Files\7-Zip\7z.exe" a -mhe -pMYPASSWORD "%%X.7z" "%%X"
@rumbu
rumbu / linphone-install.sh
Last active October 27, 2025 09:11
Download and compile the latest linphone on Linux
# This will take 5-30 mins depending on your internet speed and machine performance
# Install Dependencies
sudo apt-get install libtool intltool libgtk2.0-dev libspeexdsp-dev \
libavcodec-dev libswscale-dev libx11-dev libxv-dev libgl1-mesa-dev \
libglew-dev libv4l-dev libxml2-dev cmake yasm libpulse-dev
# Create directory
mkdir ~/dev
cd ~/dev