Skip to content

Instantly share code, notes, and snippets.

View immartian's full-sized avatar

Martian immartian

  • Cloud
  • cloud
View GitHub Profile
@immartian
immartian / guitar.rb
Created May 28, 2018 09:27 — forked from emlyn/guitar.rb
Strumming guitar chords in Sonic Pi
# Guitar Strumming - by Emlyn
# This tries to work out the guitar (or ukulele etc.) fingering for arbitrary chords (and tuning).
# It seems to work reasonably well for basic chords, but is quite naive and probably makes many mistakes.
# Ideas, bug reports, fixes etc. gratefully received, just comment below, or tweet @emlyn77.
# Feel free to make use of this code as you like (with attribution if you feel like it, but you don't have to).
# Thanks to @Project_Hell_CK for fixing the tuning, and spotting that it gets chord(:f, :major) not quite right.
# Next note higher or equal to base note n, that is in the chord c
define :next_note do |n, c|
# Make sure n is a number

Keybase proof

I hereby claim:

  • I am immartian on github.
  • I am imisaac (https://keybase.io/imisaac) on keybase.
  • I have a public key whose fingerprint is 3290 3616 5797 0255 CD98 8E55 1C22 8B8E 5AB6 F26B

To claim this, I am signing this object:

@immartian
immartian / RPi: Syncthing + start on boot
Created August 10, 2016 02:42
How to install Syncthing on Raspberry Pi + start on boot
Create a folder in /opt and cd to it
$ sudo mkdir -p /opt/syncthing
$ cd /opt/syncthing
Get the latest arm version of syncthing from github (https://github.com/syncthing/syncthing/releases/) x marks the version number.
$ sudo wget https://github.com/syncthing/syncthing/releases/download/vx.xx.x/syncthing-linux-arm-vx.xx.x.tar.gz
sudo tar -xzvf syncthing-linux-arm-vx.xx.x.tar.gz
sudo rm syncthing-linux-arm-vx.xx.x.tar.gz
Move content one folder up