pi@raspberrypi:~# sudo su
root@raspberrypi:/home/pi# passwd
root@raspberrypi:/home/pi# reboot
root@raspberrypi:~# useradd -d /home/user user
root@raspberrypi:~# passwd user
""" github_orgy -- monitor github organizations for new repos. | |
Usage: | |
python3.5 github_orgy.py deepmind tensorflow facebookresearch google watson-developer-cloud | |
Or with cron: | |
@hourly /usr/bin/python github_orgy.py deepmind tensorflow facebookresearch google watson-developer-cloud | |
""" | |
import time | |
import os |
# ... more above ... | |
# wsfl bash is not a login shell | |
if [ -d "$HOME/bin" ] ; then | |
PATH="$HOME/bin:$PATH" | |
fi | |
# ssh-agent configuration | |
if [ -z "$(pgrep ssh-agent)" ]; then | |
rm -rf /tmp/ssh-* |
rem While you can specify a folder be backed up with Google's "Backup and Sync" service, you _cannot_ indicate you wish it to ignore | |
rem one or more subfolders. For example, if you've configured Google Backup to back up your local Github folders, it will (without the | |
rem trick below) also backup the hidden '.git' folder, which can easily chew up GIGs of your Google Drive. Kind of annoying. | |
rem | |
rem However, Google doesn't follow symlinks, so the best solution I've found currently is to: | |
rem | |
rem 1) MOVE (not copy) the folder you don't want backed up to a folder you're not backing up to Google (for "C:\DontBackup") | |
rem 2) Create a folder (directory) symlink from the old folder location to the new location | |
rem | |
rem e.g. mklink /D "C:\Users\Wallard\GitHub\My-Git-Project\.git" "C:\NoBackup\Users\Wallard\Github\My-Git-Project\.git" |
##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### | |
### Shell script to download Oracle JDK / JRE / Java binaries from Oracle website using terminal / command / shell prompt using wget. | |
### You can download all the binaries one-shot by just giving the BASE_URL. | |
### Script might be useful if you need Oracle JDK on Amazon EC2 env. | |
### Script is updated for every JDK release. | |
### Features:- | |
# 1. Resumes a broken / interrupted [previous] download, if any. | |
# 2. Renames the file to a proper name with including platform info. |
rem If you install Anaconda in a non-default location, Pycharm can't find the interpreter (known bug) | |
rem you can get around this by creating a symlink at the default location that points to where the interpreter | |
rem is. | |
rem set ANACONDA_VER to "Anaconda2" or "Anaconda3" (depending on which you installed) | |
set ANACONDA_VER = "Anaconda2" | |
rem set ANACONDA_PATH to the full (no trailing slash) path to where you installed Anaconda | |
set ANACONDA_PATH = "E:\Anaconda2" |
taskkill /f /IM explorer.exe | |
start explorer.exe | |
exit |
#!/usr/bin/python | |
# Huge thanks to: https://github.com/blakeman399/Bluetooth-Proximity-Light/blob/master/https/github.com/blakeman399/Bluetooth-Proximity-Light.py | |
# This script scans the area looking for a list of devices with known Bluetooth | |
# MAC addresses. Once seen, a notification is immediately sent to the Bomba | |
# system. After that an occasional scan occurs to see if the device is still | |
# in the area, notifying when it is "missing" then again several minutes later | |
# when it still hasn't been seen and is certainly "gone". |
This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.
Install Raspbian Jessie (2016-05-27-raspbian-jessie.img
) to your Pi's sdcard.
Use the Raspberry Pi Configuration tool or sudo raspi-config
to:
#!/bin/bash | |
# Set your VPN up with this guide: https://gist.github.com/superjamie/ac55b6d2c080582a3e64 | |
# This runs nicely on a Raspberry Pi that is setup to be your gateway. | |
# Requires: speedtest-cli, openvpn | |
# Assuming you have config files of: | |
# /etc/openvpn/newyork.conf | |
# /etc/openvpn/chicago.conf |