Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am robjac on github.
  • I am robjac (https://keybase.io/robjac) on keybase.
  • I have a public key ASATMtiT3RDeayolPnKetJ_dqu9MtYEOMKOSjh8s69ArMAo

To claim this, I am signing this object:

@robjac
robjac / gist:c694704dea1f3aa90de72e484b060da3
Created January 2, 2017 23:14 — forked from dedy-purwanto/gist:11312110
Bulk remove iTerm2 color schemes.
# There was a day where I have too many color schemes in iTerm2 and I want to remove them all.
# iTerm2 doesn't have "bulk remove" and it was literally painful to delete them one-by-one.
# iTerm2 save it's preference in ~/Library/Preferences/com.googlecode.iterm2.plist in a binary format
# What you need to do is basically copy that somewhere, convert to xml and remove color schemes in the xml files.
$ cd /tmp/
$ cp ~/Library/Preferences/com.googlecode.iterm2.plist .
$ plutil -convert xml1 com.googlecode.iterm2.plist
$ vi com.googlecode.iterm2.plist
@robjac
robjac / eastern_pluck.rb
Created June 7, 2016 14:21 — forked from Nanomancer/eastern_pluck.rb
Here's the code as it ran for recording the video 'dark eastern ambient - sonic pi'
## Eastern pluck & 'safari' percussion
## Coded by Nanomancer
##| set_volume! 5
##| puts "SYNC"
##| sample :elec_blip, amp: 0.5
##| sleep 8
set_volume! 0.55
# set_mixer_control! amp: 0.1, amp_slide: 0.1
use_debug false
use_bpm 130
# Our mixer!
master = (ramp *range(0, 1, 0.01))
kick_volume = 1
bass_volume = 1
revbass_volume = 1
snare_volume = 0.5
hats_volume = 0.5