Skip to content

Instantly share code, notes, and snippets.

View atmos's full-sized avatar
🌴
On vacation

Corey Donohoe atmos

🌴
On vacation
View GitHub Profile
crypto = require("crypto")
image_url =
"http://demotivational.ca/haters-gonna-hate/wp-content/uploads/2010/08/haters-gonna-hate-kid.jpg"
console.log(image_url)
var cipher = crypto.createCipher("aes192", "0xDEADBEEF")
var encrypted = cipher.update(image_url, 'utf8', 'hex')
encrypted += cipher.final('hex')
Note these instructions are all based on the mightyOhm articles. This is a little bit different because I wanted to get alsa sound working (instead of dsp) so that I could overlay effects
and background sound simultaneously.
What to do
==========
install mightyohm trx
setup network and wireless
vi /etc/opkg.conf
src/gz snapshots http://192.168.24.104/mightyohm
opkg update
Note these instructions are all based on the mightyOhm articles. This is a little bit different because I wanted to get alsa sound working (instead of dsp) so that I could overlay effects
and background sound simultaneously.
What to do
==========
install mightyohm trx
setup network and wireless
vi /etc/opkg.conf
src/gz snapshots http://192.168.24.104/mightyohm
opkg update
# Lightweight environment configuration.
#
# This file is useful when you want to load a small portion of the whole
# github environment for daemons that want to keep their resident memory
# usage low or commands that need to boot fast.
#
# Determine RAILS_ROOT from this file's location
if !defined?(RAILS_ROOT)
ENV['RAILS_ROOT'] ||= File.expand_path('../..', __FILE__)
RAILS_ROOT = ENV['RAILS_ROOT'].dup
➜ ~ ruby --version
ruby 1.8.7 (2009-12-24 patchlevel 248) [i686-darwin10.4.0]
➜ ~ rvm use jruby-1.4.0
Using /Users/atmos/Developer/.rvm/gems/jruby-1.4.0
➜ ~ ruby --version
ruby 1.8.7 (2009-12-24 patchlevel 248) [i686-darwin10.4.0]
➜ ~
➜ ~ bundle gem hassox
create hassox/Gemfile
create hassox/Rakefile
create hassox/.gitignore
create hassox/hassox.gemspec
create hassox/lib/hassox.rb
create hassox/lib/hassox/version.rb
Initializating git repo in /Users/atmos/hassox
➜ ~ cd hassox
➜ hassox git:(master) ✗ git add .
app.error (err,req,res,next)->
if process.env.RACK_ENV == 'production'
hoptoad.key = 'hoptoadkey'
hoptoad.notify(err)
res.render 'error.ejs', 500
➜ ~ cider
[Mon, 09 Aug 2010 09:21:18 -0700] INFO: Setting the run_list to ["homebrew", "homebrew::dbs", "homebrew::misc", "ruby", "ruby::irbrc", "node"] from JSON
[Mon, 09 Aug 2010 09:21:18 -0700] INFO: Starting Chef Run (Version 0.9.8)
[Mon, 09 Aug 2010 09:21:18 -0700] ERROR: Running exception handlers
[Mon, 09 Aug 2010 09:21:18 -0700] ERROR: Exception handlers complete
[Mon, 09 Aug 2010 09:21:18 -0700] ERROR: Re-raising exception: IOError - closed stream
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/tempfile.rb:167:in `close'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/tempfile.rb:167:in `callback'
/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/tempfile.rb:167:in `close': closed stream (IOError)
from /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/tempfile.rb:167:in `callback'
rack_env = "staging"
app_root = "/data/cloud/current"
owner = "atmos"
home = "/home/#{owner}"
instance_id = "i-XXXXXXXX"
socket_path = "/var/run/engineyard/unicorn_cloud.sock"
port = "master"
inline = "#{home}/.ruby_inline/unicorn-#{port}"
➜ ~ cd p/
➜ p hub clone heroku-express
Cloning into heroku-express...
remote: Counting objects: 31, done.
remote: Compressing objects: 100% (28/28), done.
remote: Total 31 (delta 8), reused 0 (delta 0)
Receiving objects: 100% (31/31), 28.03 KiB, done.
Resolving deltas: 100% (8/8), done.
➜ p node --version
0.1.100