Skip to content

Instantly share code, notes, and snippets.

View bsoist's full-sized avatar

Bill Soistmann bsoist

View GitHub Profile
@bsoist
bsoist / fixpermalinks.js
Created October 22, 2014 16:04
fixes the permalinks on my noteblog
Verifying that +bsoist is my openname (Bitcoin username). https://onename.com/bsoist
@bsoist
bsoist / server_setup.sh
Created October 21, 2017 15:55
A script I use for final set up of a Google Compute Instance
export GCSFUSE_REPO=gcsfuse-`lsb_release -c -s`
echo "deb http://packages.cloud.google.com/apt $GCSFUSE_REPO main" | sudo tee /etc/apt/sources.list.d/gcsfuse.list
curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
sudo apt-get update && sudo apt-get upgrade
sudo apt-get install gcsfuse
sudo apt-get install git
sudo apt-get install python-pip
sudo apt-get install xserver-xorg xserver-xorg-core xfonts-base xinit --no-install-recommends
sudo apt-get install libgl1-mesa-dri x11-xserver-utils gnome-session gnome-shell gnome-terminal gnome-control-center nautilus gnome-icon-theme gnome-panel --no-install-recommends
sudo apt-get install gdm3 --no-install-recommends
// edit the next line to use your calendars
calendars = ['home', 'work', 'evilplan'];
inputString = editor.getText();
stringParts = inputString.split('\n');
dateTimeDetails = stringParts[1];
cal = stringParts[2];
calendar = stringParts[2].slice(0,cal.length).toLowerCase();
newText = '';
calendars.forEach(function(c){
if (calendar === c) {