Skip to content

Instantly share code, notes, and snippets.

sudo apt install -y openvpn dialog python3-pip python3-setuptools
sudo pip3 install protonvpn-cli
sudo pip3 install protonvpn-cli --upgrade
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
{
"alt-speed-down": 50,
"alt-speed-enabled": false,
"alt-speed-time-begin": 540,
"alt-speed-time-day": 127,
"alt-speed-time-enabled": false,
"alt-speed-time-end": 1020,
"alt-speed-up": 50,
"bind-address-ipv4": "0.0.0.0",
"bind-address-ipv6": "::",
@abenrob
abenrob / PB.txt
Last active January 20, 2022 08:23
sudo apt-get install -y software-properties-common
sudo add-apt-repository -y ppa:transmissionbt/ppa
sudo apt-get update
sudo apt-get upgrade -y
sudo apt-get install -y transmission-cli transmission-common transmission-daemon
sudo apt-get install -y python3-pip
pip3 install pirate-get
sudo /etc/init.d/transmission-daemon stop
sudo chmod 777 /var/lib/transmission-daemon/downloads
curl https://gist.githubusercontent.com/abenrob/d0cba4816e0b0e710f8e4b6ea3e0d474/raw/044a65975dbdd88ea7b42b1fe17aacccae291091/transmission-settings.json > transmission-settings.json

Get infoabout image

  identify image.png 

resize image

  convert image.png -resize 50x50% new_image.png

images to gif

@abenrob
abenrob / morphimages.txt
Created June 29, 2018 10:10 — forked from baoilleach/morphimages.txt
Create an animated gif to morph between images using ImageMagick
convert CID10033747.png CID9919714.png CID10033747.png -loop 0 -morph 9 -gravity South -annotate 1x1 "%t" -set delay "%[fx:(t%10!=0 || t==n-1)?10:240]" morph.gif
@abenrob
abenrob / endpoints.geojson
Created August 15, 2017 15:43
endpoints.geojson
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

git

sudo apt-get install git

build-essentials

sudo apt-get install build-essential libssl-dev

curl

sudo apt-get install curl

jq (json parser)

SSH setup

Create keypair

ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/demo/.ssh/id_rsa): 
Enter passphrase (empty for no passphrase): 
Enter same passphrase again: 
Your identification has been saved in /home/demo/.ssh/id_rsa.

MissingMaps Really Rough Git Primer

create local copy of your GitHub fork

git clone https://github.com/<username>/missingmaps.github.io.git

change directory to newly cloned fork

cd missingmaps.github.io

see what branches you have (and which one you are currently on)

git branch

create a new branch based on the branch you are currently on

git checkout -b <newbranchname>

make your changes to files, add new files, etc.