Skip to content

Instantly share code, notes, and snippets.

View ScottJWalter's full-sized avatar
🔮
Particle. Wave. It's all data.

Scott Walter ScottJWalter

🔮
Particle. Wave. It's all data.
View GitHub Profile
@ScottJWalter
ScottJWalter / github_orgy.py
Created June 19, 2017 05:26 — forked from kootenpv/github_orgy.py
As it is impossible to find out about new repos created by an org, this awkwardly named script exists.
""" 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
@ScottJWalter
ScottJWalter / .bashrc
Created January 29, 2018 17:30 — forked from copperlight/.bashrc
Window Subsystem for Linux ssh-agent Configuraton
# ... 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-*
@ScottJWalter
ScottJWalter / gbs-ignore.bat
Last active January 29, 2018 18:58
Using Symlinks to circumvent Google Backup and Sync issue
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"
@ScottJWalter
ScottJWalter / jdk_download.sh
Created January 30, 2018 18:10 — forked from P7h/jdk_download.sh
Script to download JDK / JRE / Java binaries from Oracle website from terminal / shell / command line / command prompt
##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### ##### #####
### 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.
@ScottJWalter
ScottJWalter / symlink-anaconda.bat
Created February 22, 2018 19:09
Fixing non-default Anaconda Install for Pycharm
@ScottJWalter
ScottJWalter / RestartExplorer.bat
Created February 26, 2018 22:19
Restart Windows Explorer (should something go whack)
taskkill /f /IM explorer.exe
start explorer.exe
exit
@ScottJWalter
ScottJWalter / btWatcher.py
Created June 19, 2018 19:50 — forked from penrods/btWatcher.py
Bluetooth scanning
#!/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".

set up root and replace default user

pi@raspberrypi:~# sudo su
root@raspberrypi:/home/pi# passwd
root@raspberrypi:/home/pi# reboot

log in as root and set up new user

root@raspberrypi:~# useradd -d /home/user user
root@raspberrypi:~# passwd user

Raspberry Pi VPN Router

This is a quick-and-dirty guide to setting up a Raspberry Pi as a "router on a stick" to PrivateInternetAccess VPN.

Requirements

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:

@ScottJWalter
ScottJWalter / vpn-refresh.sh
Created June 22, 2018 08:06 — forked from smcpeck/vpn-refresh.sh
Shell script to select fastest VPN location from available list
#!/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