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 / 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 / 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 / .asoundrc
Last active May 7, 2024 08:47
Jabra 410/510 on Picroft (Mycroft on Raspberry Pi)
pcm.jabra {
type hw
card 1
device 0
rate 48000
}
pcm.!sysdefault {
type asym
playback.pcm {
type plug
@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 / install_minecraft_on_pi.sh
Last active September 13, 2018 20:29
Installing minecraft server on raspberry pi
# This can be replaced with something that identifies the most current java8 version and automatically sets the following
# 3 variables
JAVA8_TARBALL = "jdk-8u171-linux-arm32-vfp-hflt.tar.gz"
JAVA8_URL = "http://download.oracle.com/otn-pub/java/jdk/8u171-b11/512cd62ec5174c3487ac17c61aaa89e8/${JAVA8_TARBALL}"
JDK_PATH = "jdk1.8.0_171"
MINECRAFT_VERSION = "1.13.1"
# connect to pi
ssh pi@minecraftpi