Skip to content

Instantly share code, notes, and snippets.

View therobot's full-sized avatar

Jacobo García López de Araujo therobot

View GitHub Profile
Dir[File.join(File.dirname(__FILE__), '..', 'vendor', 'gems', 'hoptoad_notifier-*')].each do |vendored_notifier|
$: << File.join(vendored_notifier, 'lib')
end
require 'rubygems'
set :stage, nil unless defined? stage
namespace :growl do
task :notify do
growl_send(ENV["GROWL_MESSAGE"] || "wants your attention")
end
task :alert do
A backup of http://sites.google.com/site/redcodenl/creating-shazam-in-java-1 just in case
Why is this necessary? Read http://sites.google.com/site/redcodenl/patent-infringement
Please fork, tweet about, etc.
----
Creating Shazam in Java
A couple of days ago I encountered this article: How Shazam Works
This got me interested in how a program like Shazam works… And more importantly, how hard is it to program something similar in Java?
[Tue, 13 Jul 2010 17:28:28 +0200] INFO: Starting Chef Run
[Tue, 13 Jul 2010 17:28:33 +0200] ERROR: Errno::ENOENT
[Tue, 13 Jul 2010 17:28:33 +0200] FATAL: No such file or directory - /usr/lib/ruby/gems/1.8/gems/chef-0.8.16/distro/debian/etc/default/chef-client
/srv/chef/cache/cookbooks/chef/recipes/bootstrap_client.rb:79:in `read'
/srv/chef/cache/cookbooks/chef/recipes/bootstrap_client.rb:79:in `from_file'
/usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/cookbook.rb:171:in `load_recipe'
/usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/mixin/language_include_recipe.rb:38:in `include_recipe'
/usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/mixin/language_include_recipe.rb:26:in `each'
/usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/mixin/language_include_recipe.rb:26:in `include_recipe'
/usr/lib/ruby/gems/1.8/gems/chef-0.8.16/bin/../lib/chef/compile.rb:145:in `load_recipes'
before "deploy:symlink_initializers", "bundler:bundle_new_release"
namespace :bundler do
task :bundle_new_release do
run "cd #{release_path} && bundle install"
end
end
Cuando el diario suculento plato,
base de toda mesa castellana,
gastar me veda el rígido mandato
de la Iglesia Apostólica Romana,
yo, fiel cristiano, que sumiso acato
cuanto de aquella potestad emana,
de las viandas animales huyo
y con esta invención lo sustituyo.
Ancho y profundo cuenco, fabricado
de barro (como yo) coloco al fuego;
@therobot
therobot / mod_auth_openid documentation
Created December 21, 2010 11:52
I retrieved this from Google cache since http://findingscience.com/mod_auth_openid/ redirects to an empty github page
mod_auth_openid
the openid module for apache
home
faq
releases
issues
Introduction : The Apache OpenID Module
mod_auth_openid is an authentication module for the Apache 2 webserver. It handles the functions of an OpenID consumer as specified in the OpenID 2.0 specification. See the FAQ for more information. Download the current release from the the releases page.
@therobot
therobot / lets
Created December 23, 2010 14:46 — forked from afgomez/lets.sh
#!/bin/bash
# lets. A productivity booster
# based on ideas from https://gist.github.com/605292
#
# Copy your /etc/hosts to /etc/hosts.play and create a new one called /etc/hosts.work with a list of blocked sites
# Usage: sudo lets [play|work]
if [ $# = 0 ]
then
set[:swap][:location]="/swapfile"
set[:swap][:blocksize]="1024k"
set[:swap][:count]="1024"
@therobot
therobot / gist:965402
Created May 10, 2011 21:20
Best emacs themes

Best emacs-themes

Execute with:

M-x color-theme-select

  • billw
  • dark-blue2
  • dark-laptop