Skip to content

Instantly share code, notes, and snippets.

[Mon, 28 Mar 2011 10:07:29 -0700] DEBUG: Processing directory[/srv/my_app] on ubuntu.localdomain
[Mon, 28 Mar 2011 10:07:29 -0700] DEBUG: Processing directory[/srv/my_app/shared] on ubuntu.localdomain
[Mon, 28 Mar 2011 10:07:29 -0700] DEBUG: Processing directory[/srv/my_app/shared/log] on ubuntu.localdomain
[Mon, 28 Mar 2011 10:07:29 -0700] DEBUG: Processing directory[/srv/my_app/shared/pids] on ubuntu.localdomain
[Mon, 28 Mar 2011 10:07:29 -0700] DEBUG: Processing directory[/srv/my_app/shared/system] on ubuntu.localdomain
[Mon, 28 Mar 2011 10:07:29 -0700] DEBUG: Processing directory[/srv/my_app/shared/vendor_bundle] on ubuntu.localdomain
[Mon, 28 Mar 2011 10:07:29 -0700] DEBUG: Processing ruby_block[write_key] on ubuntu.localdomain
[Mon, 28 Mar 2011 10:07:29 -0700] DEBUG: Skipping ruby_block[write_key] due to not_if
[Mon, 28 Mar 2011 10:07:29 -0700] DEBUG: Processing file[/srv/my_app/id_deploy] on ubuntu.localdomain
[Mon, 28 Mar 2011 10:07:29 -0700] DEBUG: Processing template[/srv/my_app/deploy-ssh-wrapper]
{
"id": "railsindacloud",
"server_roles": [
"railsindacloud"
],
"type": {
"railsindacloud": [
"rails",
"unicorn"
@ffaerber
ffaerber / gist:964220
Created May 10, 2011 10:11
chef 0.10.0 bootstrap log with error "removing role"
ec2-50-19-49-116.compute-1.amazonaws.com Your bundle is complete! It was installed into ./vendor/bundle
ec2-50-19-49-116.compute-1.amazonaws.com [Tue, 10 May 2011 10:08:08 +0000] INFO: execute[bundle install --deployment --without development test cucumber staging] ran successfully
ec2-50-19-49-116.compute-1.amazonaws.com [Tue, 10 May 2011 10:08:08 +0000] INFO: deploy_revision[railsindacloud] made pre-migration symlinks
ec2-50-19-49-116.compute-1.amazonaws.com [Tue, 10 May 2011 10:08:08 +0000] INFO: deploy_revision[railsindacloud] running callback before_symlink
ec2-50-19-49-116.compute-1.amazonaws.com [Tue, 10 May 2011 10:08:08 +0000] INFO: Processing ruby_block[remove_run_migrations] action create (/var/chef/cache/cookbooks/application/recipes/rails.rb line 215)
ec2-50-19-49-116.compute-1.amazonaws.com [Tue, 10 May 2011 10:08:08 +0000] INFO: Migrations were run, removing role[railsindacloud_run_migrations]
ec2-50-19-49-116.compute-1.amazonaws.com [Tue, 10 May 2011 10:08:08 +0000] INFO: ruby_block[remove_run
@ffaerber
ffaerber / nginx-default-site.erb
Created May 11, 2011 17:22
unicorn_server with nginx
upstream unicorn_server {
# This is the socket we configured in unicorn.rb
server unix:/tmp/.sock fail_timeout=0;
}
server {
listen 80;
keepalive_timeout 5;
*** LOCAL GEMS ***
abstract (1.0.0)
actionmailer (3.0.6)
actionpack (3.0.6)
activemodel (3.0.6)
activerecord (3.0.6)
activeresource (3.0.6)
activesupport (3.0.6)
arel (2.0.10)
require "mp3info"
class GetId3 < Nanoc3::Filter
 identifier :get_id3
 type :binary => :text
 def run(filename, params={})
   content = Mp3Info.open(filename).tag  
 end
end
# coding: utf-8
require "mp3info"
filename = "Haendel--Messiah - Evry valley--.mp3"
content = Mp3Info.open(filename).tag
puts content
puts "Händel"
require 'iconv'
require "mp3info"
filename = "Haendel--Messiah - Evry valley--.mp3"
artist = Mp3Info.open(filename, :encoding => 'utf-8').tag.artist
puts artist.inspect
@ffaerber
ffaerber / asset.js.coffee
Created October 9, 2011 23:53
plupload rails 3.1 coffeescript
$(document).ready ->
uploader = new plupload.Uploader
runtimes : "html5",
browse_button : 'pickfiles',
container: 'container',
max_file_size : '10mb',
url : "/media",
Codecs:
D..... = Decoding supported
.E.... = Encoding supported
..V... = Video codec
..A... = Audio codec
..S... = Subtitle codec
...S.. = Supports draw_horiz_band
....D. = Supports direct rendering method 1
.....T = Supports weird frame truncation
------