Skip to content

Instantly share code, notes, and snippets.

Ari Russo arirusso

Block or report user

Report or block arirusso

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@arirusso
arirusso / postgresql.conf
Created Dec 14, 2011
tuned /usr/local/var/postgres/postgresql.conf
View 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 / img_convert.rb
Created Sep 30, 2011
convert html img tags to rails image_tag calls
View img_convert.rb
#!/usr/bin/env ruby
require "nokogiri"
# opens every file in the given dir tree and converts any html img tags to rails image_tag calls
#
# example usage:
# ruby convert.rb ~/my_rails_app/app/views
#
# ***be careful and backup before using this***
#
@arirusso
arirusso / midi_notes_to_yaml.rb
Created Apr 30, 2011
generate MIDI note names/numbers in YAML format
View midi_notes_to_yaml.rb
# generate MIDI note names/numbers in YAML format
octaves = (0..10)
range = (0..127)
naturals = [
{ :name => "C", :val => 0 },
{ :name => "D", :val => 2 },
{ :name => "E", :val => 4 },
{ :name => "F", :val => 5 },
@arirusso
arirusso / midi.yml
Created Apr 22, 2011
MIDI constants (YAML)
View midi.yml
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 Apr 10, 2011
Switch off MIDI omni mode on a Roland Jupiter-6
View jupiter-6_omni_off.rb
require 'unimidi'
UniMIDI::Output.open(1) do |output|
output.puts(0xB0, 0x7C, 0)
output.puts(0xB0, 0x7F, 0)
end
You can’t perform that action at this time.