Skip to content

Instantly share code, notes, and snippets.

View tobyspark's full-sized avatar

Toby Harris tobyspark

View GitHub Profile
@tobyspark
tobyspark / spark-livemachine-config
Last active August 29, 2015 14:00
Script to configure a Mac OS X machine for live performance use
### Confiure a Mac OS X machine for live performance use
### Toby Harris - http://tobyz.net / http://sparklive.net
## Live
# stop all those damn noises
defaults write NSGlobalDomain com.apple.sound.beep.feedback -bool false
# Disable crash reporter dialog
defaults write com.apple.CrashReporter DialogType none
@tobyspark
tobyspark / PayPal CSV Exporter.py
Created November 26, 2015 11:01
PayPal exports transactions with Gross, Fee, Net in the same line item. Accounting software often needs to treat Fee as a separate line item. This script parses the PayPal export and separates out these, keeping the running balance true.
#!/usr/bin/env python
import sys
import csv
import locale
if __name__ == '__main__':
"""
PayPal exports transactions with Gross, Fee, Net in the same line item.
Accounting software often needs to treat Fee as a separate line item.
@tobyspark
tobyspark / slms-discourse-media-downloader.py
Last active September 12, 2016 14:57
South London Makerspace - Discourse media downloader
#! /usr/bin/env python3
import sys
from urllib.request import Request, urlopen
from urllib.parse import urlencode
import json
import os.path
if len(sys.argv) != 2:
sys.exit('API key missing')
@tobyspark
tobyspark / tbz.osx.config
Last active December 29, 2021 15:47
Script to configure a Max OS X machine to my taste
### Confiure a Mac OS X machine for my taste
### Toby Harris - http://tobyz.net / http://sparklive.net
### App Store
# Calca
# Coderunner
# Dash
# Xcode