Skip to content

Instantly share code, notes, and snippets.

View JohnPostlethwait's full-sized avatar
👻
🐙

John Postlethwait JohnPostlethwait

👻
🐙
  • Seattle, WA
View GitHub Profile
@JohnPostlethwait
JohnPostlethwait / synology_rtorrent_vpn_ip_bind.sh
Last active June 20, 2020 15:56
Dynamically Bind VPN IP Address to rTorrent on Synology
# Read full instructions here: http://tmblr.co/ZdZmSx1TH7iuF
# User setup, you should edit this if it differs (NO TRAILING SLASH!):
RTORRENT_INSTALL_DIR='/volume1/@appstore/rutorrent'
RTORRENT_SCRIPT_PATH='/var/packages/rutorrent/scripts/start-stop-status'
# Look for the "inet addr" line for ifconfig on the ppp0 device, get
# the actual IP, and assign it to the CURRENT_VPN_IP variable.
# If your VPN is on another network device, replace "ppp0" below with
# your device interface.
CURRENT_VPN_IP=$(ifconfig ppp0 | grep "inet addr" | awk -F: '{print $2}' | awk '{print $1}')
0 info it worked if it ends with ok
1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install' ]
2 info using npm@1.3.11
3 info using node@v0.10.21
4 verbose node symlink /usr/bin/node
5 verbose readDependencies using package.json deps
6 verbose install where, deps [ '/home/ubuntu/src/lighthouse',
6 verbose install [ 'archiver',
6 verbose install 'async',
6 verbose install 'backbone-browserify',
@JohnPostlethwait
JohnPostlethwait / insult
Created November 24, 2013 02:19
Annoy coworkers with a simple .bash_profile addition to insult them.
#!/bin/bash
INSULT_CHOICES=()
while true; do
say ${INSULT_CHOICES[$RANDOM % ${#INSULT_CHOICES[*]}]}
sleep `jot -r 1 1 20`m
done &