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 / install ROracle on Windows.md
Last active March 10, 2020 03:14 — forked from jgilfillan/install ROracle on Windows.md
Instructions on how to install ROracle for R on Windows. #oracle #r
@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 / 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 / Node-RED.service
Last active January 22, 2024 10:52 — forked from Belphemur/Node-RED.service
Node-RED.service
# This script work on any system using systemd as the init process.
# It works on Debian/Raspbian Jessie.
# If you have Debian/Rapbian Wheezy and want to use this script with systemd
# follow the information here : https://wiki.debian.org/systemd
# To easily download, install and set at startup:
# wget -O /tmp/download https://gist.github.com/Belphemur/3f6d3bf211b0e8a18d93/download && sudo tar -zxf /tmp/download --strip-components 1 -C /etc/systemd/system/ && sudo systemctl --reload-daemon && sudo systemctl enable Node-RED
# To consult the log : journalctl -u Node-RED
[Unit]
@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
@ScottJWalter
ScottJWalter / wsl-go-install.sh
Last active September 5, 2021 12:47
Script to install Go 1.11 on Linux and WSL (Windows Subsystem for Linux)
#!/bin/bash
set -e
GVERSION="1.11"
GFILE="go$GVERSION.linux-amd64.tar.gz"
GOPATH="$HOME/projects/go"
GOROOT="/usr/local/go"
if [ -d $GOROOT ]; then
echo "Installation directories already exist $GOROOT"