Skip to content

Instantly share code, notes, and snippets.

Avatar

Lee Azzarello lazzarello

View GitHub Profile
@lazzarello
lazzarello / sounbds_and_emotions.sh
Created Mar 31, 2009
record sounds and emotions radio show to an mp3
View sounbds_and_emotions.sh
#!/bin/sh
filename="sounds_and_emotions-`date +%d-%m-%Y`.mp3"
dumpfile="stream.dump"
mplayer="/usr/bin/mplayer"
mplayer_args="-dumpaudio"
wget="/usr/bin/wget"
wget_args="-O - -q"
url="http://wm.streampower.be/fmbrussel/webradio/sounds.mp3"
match_key="Ref1="
ref=`${wget} ${wget_args} ${url} | grep ${match_key} | sed "s/${match_key}//"`
View gist:88867
(in /usr/local/src/chef)
rake package
(in /usr/local/src/chef/chef)
rake package
(in /usr/local/src/chef/chef-server-slice)
rake package
(in /usr/local/src/chef/chef-server)
rake aborted!
no such file to load -- chef
/usr/local/src/chef/chef-server/Rakefile:8
View gist:88874
~/src/chef$ rake gem
(in /home/lee/src/chef)
rake package
(in /home/lee/src/chef/chef)
rake package
(in /home/lee/src/chef/chef-server-slice)
mkdir -p pkg
Successfully built RubyGem
Name: chef-server-slice
Version: 0.5.7
View chef bootstrap bug
INFO: Creating directory[/etc/sv/stompserver] at /etc/sv/stompserver
INFO: Setting mode to 755 for directory[/etc/sv/stompserver]
INFO: Creating directory[/etc/sv/stompserver/log] at /etc/sv/stompserver/log
INFO: Setting mode to 755 for directory[/etc/sv/stompserver/log]
INFO: Creating directory[/etc/sv/stompserver/log/main] at /etc/sv/stompserver/log/main
INFO: Setting mode to 755 for directory[/etc/sv/stompserver/log/main]
INFO: Creating template[/etc/sv/stompserver/run] at /etc/sv/stompserver/run
INFO: Setting mode to 755 for template[/etc/sv/stompserver/run]
INFO: Creating template[/etc/sv/stompserver/log/run] at /etc/sv/stompserver/log/run
INFO: Setting mode to 755 for template[/etc/sv/stompserver/log/run]
View chef-server bootstrap script
#!/usr/bin/perl -w
system "gem install chef-server --no-rdoc --no-ri --source http://ec2-174-129-154-218.compute-1.amazonaws.com:8808/";
mkdir "/etc/chef";
open(CHEF_SOLO, ">>/etc/chef/solo.rb");
print CHEF_SOLO <<EOF
log_level :info
log_location STDOUT
file_cache_path "/tmp/chef-solo"
View chef stompserver failure
INFO: Creating template[/etc/sv/stompserver/log/run] at /etc/sv/stompserver/log/run
INFO: Setting mode to 755 for template[/etc/sv/stompserver/log/run]
DEBUG: Processing link[/etc/init.d/stompserver]
DEBUG: link[/etc/init.d/stompserver] using Chef::Provider::Link
DEBUG: Processing link[/etc/service/stompserver]
DEBUG: link[/etc/service/stompserver] using Chef::Provider::Link
INFO: Creating a symbolic link from /etc/sv/stompserver -> /etc/service/stompserver for link[/etc/service/stompserver]
DEBUG: Executing ln -nfs /etc/sv/stompserver /etc/service/stompserver
DEBUG: ---- Begin output of ln -nfs /etc/sv/stompserver /etc/service/stompserver ----
DEBUG: ---- End output of ln -nfs /etc/sv/stompserver /etc/service/stompserver ----
View gist:91301
==> current/conversion/log/routing_dispatcher.log <==
Tue Apr 07 15:34:21 +0000 2009 (13100) exception while processing plugin: undefined method `match' for nil:NilClass - #<NoMethodError: undefined method `match' for nil:NilClass> - undefined method `match' for nil:NilClass, NoMethodError, /home/dropio/releases/20090407152420/conversion/lib/../plugins/../lib/shared/transcoder.rb:382:in `get_media_format_data'
/home/dropio/releases/20090407152420/conversion/lib/../plugins/../lib/shared/transcoder.rb:380:in `each'
/home/dropio/releases/20090407152420/conversion/lib/../plugins/../lib/shared/transcoder.rb:380:in `get_media_format_data'
/home/dropio/releases/20090407152420/conversion/lib/../plugins/../lib/shared/transcoder.rb:371:in `each'
/home/dropio/releases/20090407152420/conversion/lib/../plugins/../lib/shared/transcoder.rb:371:in `get_media_format_data'
/home/dropio/releases/20090407152420/conversion/lib/../plugins/../lib/shared/transcoder.rb:370:in `each'
/ho
View gist:91469
E, [2009-04-07T21:29:37.118387 #15658] ERROR -- : (backtrace:)
E, [2009-04-07T21:29:37.120423 #15658] ERROR -- : ["/home/dropio/releases/20090318155753/application/vendor/rails/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb:147:in `log'",
"/home/dropio/releases/20090318155753/application/vendor/rails/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb:471:in `query'",
"/home/dropio/releases/20090318155753/application/vendor/plugins/spatial_adapter/lib/post_gis_adapter.rb:273:in `column_spatial_info'",
"/home/dropio/releases/20090318155753/application/vendor/plugins/spatial_adapter/lib/post_gis_adapter.rb:231:in `columns'",
"/home/dropio/releases/20090318155753/application/vendor/rails/activerecord/lib/active_record/base.rb:1149:in `columns'",
"/home/dropio/releases/20090318155753/application/vendor/rails/activerecord/lib/active_record/base.rb:1162:in `column_names'",
"/home/dropio/releases/20090318155753/application/vendor/rails/activerecord/lib/active_record
View gist:186944
~ Started request handling: Mon Sep 14 21:33:44 +0000 2009
~ Params: {"submit"=>"Login →", "action"=>"login", "openid_identifier"=>"http://www.flickr.com/lazzarello", "controller"=>"chef_server_slice/openid_consumer"}
~ Discovery failed for http://www.flickr.com/lazzarello: Failed to fetch identity URL http://www.flickr.com/lazzarello : Error encountered in redirect from http://www.flickr.com/lazzarello: Error fetching /photos/lazzarello: undefined method `request_uri' for #<URI::Generic:0xb6f6b394 URL:/photos/lazzarello> - (Merb::ControllerExceptions::BadRequest)
/var/lib/gems/1.8/gems/chef-server-slice-0.7.10/app/controllers/openid_consumer.rb:41:in `start'
/var/lib/gems/1.8/gems/chef-server-slice-0.7.10/app/controllers/openid_consumer.rb:59:in `login'
/var/lib/gems/1.8/gems/merb-core-1.0.12/lib/merb-core/controller/abstract_controller.rb:315:in `send'
/var/lib/gems/1.8/gems/merb-core-1.0.12/lib/merb-core/controller/abstract_controller.rb:315:in `_call_action'
/var/lib/gems/1.8/gems/merb-core-1.0.12/lib/
View gist:186948
~ Started request handling: Mon Sep 14 21:37:49 +0000 2009
~ Params: {"submit"=>"Login →", "action"=>"login", "openid_identifier"=>"http://accounts.google.com", "controller"=>"chef_server_slice/openid_consumer"}
~ Sorry, http://accounts.google.com is not an authorized OpenID. - (Merb::ControllerExceptions::Unauthorized)
/var/lib/gems/1.8/gems/chef-server-slice-0.7.10/app/controllers/openid_consumer.rb:57:in `login'
/var/lib/gems/1.8/gems/merb-core-1.0.12/lib/merb-core/controller/abstract_controller.rb:315:in `send'
/var/lib/gems/1.8/gems/merb-core-1.0.12/lib/merb-core/controller/abstract_controller.rb:315:in `_call_action'
/var/lib/gems/1.8/gems/merb-core-1.0.12/lib/merb-core/controller/abstract_controller.rb:289:in `_dispatch'
/var/lib/gems/1.8/gems/merb-core-1.0.12/lib/merb-core/controller/merb_controller.rb:252:in `_dispatch'
/var/lib/gems/1.8/gems/merb-core-1.0.12/lib/merb-core/dispatch/dispatcher.rb:100:in `dispatch_action'
/var/lib/gems/1.8/gems/merb-core-1.0.12/lib/merb-core/dispatch/dispatcher.rb:1