Skip to content

Instantly share code, notes, and snippets.

View gilhooleyd's full-sized avatar

David Gilhooley gilhooleyd

View GitHub Profile
@gilhooleyd
gilhooleyd / spotify.py
Created August 8, 2017 00:48
Siri Control + Spotify
import sys
import os
import subprocess
import spotipy
import spotipy.util as util
import json
#This is name of the module - it can be anything you want
moduleName = "spotify"
@gilhooleyd
gilhooleyd / bayou-server-logs.go
Created May 12, 2017 19:59
Bayou server logs
type BayouServer struct {
...
...
...
// Stores committed ops: lower timestamps closer to head
CommitLog []LogEntry
// Stores uncommitted operations
TentativeLog []LogEntry
// Stores undo operations for all tentative ops
UndoLog []LogEntry
@gilhooleyd
gilhooleyd / antientropy.go
Created May 11, 2017 19:37
Bayou's Anti Entropy
/* AntiEntropy RPC reply structure */
type AntiEntropyReply struct {
Succeeded bool
MustUpdateLog bool
CommitSet []LogEntry
TentativeSet []LogEntry
UndoSet []LogEntry
OmitTimestamp VectorClock
}
@gilhooleyd
gilhooleyd / logentry.go
Created May 11, 2017 19:36
Bayou Log Entry
type LogEntry struct {
WriteID int
Timestamp VectorClock
Query string
Check string
Merge string
}
@gilhooleyd
gilhooleyd / TpmVagrantFile
Created January 31, 2017 17:55
Vagrant File for SWTPM Fedora 23
# -*- mode: ruby -*-
# vi: set ft=ruby :
Vagrant.configure(2) do |config|
# disable automatic configuration updates from the original Vagrantbox
config.vm.box_check_update = false
# Every Vagrant development environment requires a box. You can search for
# boxes at https://atlas.hashicorp.com/search.
config.vm.box = "fedora/23-cloud-base"