Skip to content

Instantly share code, notes, and snippets.

View bsoist's full-sized avatar

Bill Soistmann bsoist

View GitHub Profile
// 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) {
@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
Verifying that +bsoist is my openname (Bitcoin username). https://onename.com/bsoist
@bsoist
bsoist / fixpermalinks.js
Created October 22, 2014 16:04
fixes the permalinks on my noteblog
@bsoist
bsoist / fixlinks.js
Created September 10, 2014 17:11
Fix links on my note blog
@bsoist
bsoist / fargo-menus.js
Created October 1, 2013 12:39
My menus for Fargo.io
My Scripts
AddLink
bsoistVerbs.addLink();
-
Tweet This
bsoistVerbs.tweetThis();
Tweet Blog
bsoistVerbs.tweetBlog();
Tweet Link
bsoistVerbs.tweetLink();
@bsoist
bsoist / commentsByYear.py
Created September 26, 2013 14:18
Digging through Disqus API
import json, urllib2, time
API_KEY = ""
BASE_URL = "https://disqus.com/api/3.0/"
CURSOR = ""
FORUM = ""
DOMAIN = ""
threads = []
@bsoist
bsoist / fanium.py
Created August 9, 2013 17:27
Ranking NFL players based on Fanium rules. See http://bsoist.smallpict.com/2013/08/09/rankingNflPlayersUsingFaniumRules for more information.
import httplib, re
from htmldom import htmldom
from operator import itemgetter
index, playerinfo = 0, []
PASSING_YARDS = 0
PASSING_TDS = 1
INT = 2
RUSHING_YARDS = 4
@bsoist
bsoist / tweetthis.js
Created August 8, 2013 17:36
My tweeting verbs for Fargo
tweetThis: function() {
var text = op.getLineText();
bsoistVerbs.goTweet(text,null);
},
tweetBlog: function() {
var text = op.getLineText();
var link = op.getCursorUrl();
bsoistVerbs.goTweet(text,link);
},
@bsoist
bsoist / addlink.js
Created August 8, 2013 17:11
One of my custom verbs for Fargo.