This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to ExpressVPN.
This is adapted from SuperJamie's gist.
I used a Raspberry Pi 3 - seems like the extra speed may be useful for running VPN.
This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to ExpressVPN.
This is adapted from SuperJamie's gist.
I used a Raspberry Pi 3 - seems like the extra speed may be useful for running VPN.
sudo service bluetooth status # Verify bluetooth is active. | |
sudo bluetoothctl # Lauch bluetooth subshell. | |
agent on # [No idea what this does.] | |
default-agent # [No idea what this does.] | |
scan on # Displays a list of available devices. | |
pair XX:XX:XX:XX:XX:XX # This prepares a potential connection, the X's represent your device ID | |
# A "PIN code" will be displayed, type it on the keyboard and press "enter". | |
trust XX:XX:XX:XX:XX:XX # Adds device to trusted devices, this survives reboot. | |
connect XX:XX:XX:XX:XX:XX # Connect to the device now. | |
exit # Return to previous shell. |
import subprocess | |
get_line_by_line_texlive_dependencies = subprocess.run( | |
[ | |
"apt-cache", | |
"depends", | |
"texlive-full" | |
], | |
universal_newlines=True, | |
stdout=subprocess.PIPE |
import {Injectable, provide} from 'angular2/core'; | |
import {Observable} from 'rxjs'; | |
const GEOLOCATION_ERRORS = { | |
'errors.location.unsupportedBrowser': 'Browser does not support location services', | |
'errors.location.permissionDenied': 'You have rejected access to your location', | |
'errors.location.positionUnavailable': 'Unable to determine your location', | |
'errors.location.timeout': 'Service timeout has been reached' | |
}; |
# Released by rdb under the Unlicense (unlicense.org) | |
# Based on information from: | |
# https://www.kernel.org/doc/Documentation/input/joystick-api.txt | |
import os, struct, array | |
from fcntl import ioctl | |
# Iterate over the joystick devices. | |
print('Available devices:') |
XVFB=/usr/bin/Xvfb | |
XVFBARGS=":1 -screen 0 1024x768x24 -ac +extension GLX +render -noreset" | |
PIDFILE=/var/run/xvfb.pid | |
case "$1" in | |
start) | |
echo -n "Starting virtual X frame buffer: Xvfb" | |
start-stop-daemon --start --quiet --pidfile $PIDFILE --make-pidfile --background --exec $XVFB -- $XVFBARGS | |
echo "." | |
;; | |
stop) |
A git choose-your-own-adventure!
This document is an attempt to be a fairly comprehensive guide to recovering from what you did not mean to do when using git. It isn't that git is so complicated that you need a large document to take care or your particular problem, it is more that the set of things that you might have done is so large that different techniques are needed depending on exactly what you have done and what you want to have happen.