Skip to content

Instantly share code, notes, and snippets.

youtube-dl -v -f 'bestvideo[ext=webm]+bestaudio[ext=webm]/bestvideo+bestaudio' --merge-output-format webm "$1"
@youmych
youmych / autossh.service
Created October 12, 2018 08:51 — forked from thomasfr/autossh.service
Systemd service for autossh
[Unit]
Description=Keeps a tunnel to 'remote.example.com' open
After=network.target
[Service]
User=autossh
# -p [PORT]
# -l [user]
# -M 0 --> no monitoring
# -N Just open the connection and do nothing (not interactive)
@youmych
youmych / viber-install-package-lock-workaround.sh
Last active June 5, 2019 16:53
Workaround for install viber 7x on debian-like systems. Viber depends on libcurl3 but we have libcurl4 in repos.
#!/usr/bin/env bash
# http://forum.linuxthebest.net/prilozheniya/viber-v-ubuntu-18-04-bionic-beaver/
apt-mark hold libcurl4
dpkg -i --ignore-depends=libcurl3 ./viber.deb
apt-mark unhold libcurl4
@youmych
youmych / how-to-install-latest-gcc-on-linux-mint.txt
Last active July 20, 2020 21:10 — forked from application2000/how-to-install-latest-gcc-on-ubuntu-lts.txt
How to install latest gcc on Linux Mint 18 (18.3)
These commands are based on a askubuntu answer http://askubuntu.com/a/581497 and https://askubuntu.com/questions/26498/choose-gcc-and-g-version
To install gcc-7 (gcc-7.2.0), I had to do more stuff as shown below.
USE THOSE COMMANDS AT YOUR OWN RISK. I SHALL NOT BE RESPONSIBLE FOR ANYTHING.
ABSOLUTELY NO WARRANTY.
If you are still reading let's carry on with the code.
sudo apt-get update && \
sudo apt-get install build-essential software-properties-common -y && \
sudo add-apt-repository ppa:ubuntu-toolchain-r/test -y && \