Skip to content

Instantly share code, notes, and snippets.

@arirusso
arirusso / postgresql.conf
Created December 14, 2011 17:11
tuned /usr/local/var/postgres/postgresql.conf
# -----------------------------
# PostgreSQL configuration file
# -----------------------------
#
# This file consists of lines of the form:
#
# name = value
#
# (The "=" is optional.) Whitespace may be used. Comments are introduced with
# "#" anywhere on a line. The complete list of parameter names and allowed
@arirusso
arirusso / sysctl.conf
Created December 14, 2011 17:13
tuned /etc/sysctl.conf
kern.sysv.shmmax=1938751488
kern.sysv.shmmin=1
kern.sysv.shmmni=256
kern.sysv.shmseg=64
kern.sysv.shmall=1938751488
@arirusso
arirusso / midi.yml
Created April 22, 2011 05:03
MIDI constants (YAML)
controller:
Bank Select: 0
Modulation Wheel: 1
Breath Controller: 2
Foot Controller: 4
Portamento Time: 5
Data Entry MSB: 6
Channel Volume: 7
Balance: 8
@arirusso
arirusso / jupiter-6_omni_off.rb
Created April 10, 2011 19:15
Switch off MIDI omni mode on a Roland Jupiter-6
require 'unimidi'
UniMIDI::Output.open(1) do |output|
output.puts(0xB0, 0x7C, 0)
output.puts(0xB0, 0x7F, 0)
end
@arirusso
arirusso / open_ableton_project.scpt
Created June 13, 2015 16:44
Open Ableton Live project from CLI
--- osascript open_ableton_project.scpt [project name]
on run argv
tell application "Finder"
--- get current directory
set parentpath to POSIX path of (parent of (path to me) as text)
end tell
tell application "Ableton Live 9 Suite"
open (POSIX path of parentpath) & "assets/ableton/" & item 1 of argv & " Project/" & item 1 of argv & ".als"
end tell