Skip to content

Instantly share code, notes, and snippets.

@eLafo
eLafo / gist:1393906
Created November 25, 2011 16:26 — forked from paulmars/gist:1375125
Rails 3.1 turn off asset logging.
Source:
http://stackoverflow.com/questions/6312448/how-to-disable-logging-of-asset-pipeline-sprockets-messages-in-rails-3-1
touch config/initializers/quiet_assets.rb
mate config/initializers/quiet_assets.rb
Paste:
Rails.application.assets.logger = Logger.new('/dev/null')
Rails::Rack::Logger.class_eval do
def before_dispatch_with_quiet_assets(env)
@eLafo
eLafo / jazzfonica.rb
Created June 14, 2011 17:48 — forked from javier/jazzfonica.rb
jazzfonica
#!/usr/bin/env ruby
# jazzfonica.rb for Mac OS X
# Scans the visible networks for JAZZTEL_XXXX or WLAN_XXXX and calculates the password
# Ported from PHP example at http://kz.ath.cx/wlan/codigo.txt
# Download and execute with ruby (e.g. ruby jazzfonica.rb) from a Terminal
#ported to ubuntu from https://gist.github.com/1024587
#it will ask for sudo privileges.
#if your wlan card is not "wlan0" change the "my_wifi_card" variable
@eLafo
eLafo / gist:999092
Created May 30, 2011 16:08 — forked from arsduo/gist:997914
Euruko demo code (Koala & Facebook)
# demo from Euruko lightning talk 2011
# links:
# * http://github.com/arsduo/koala (code/wiki documentation)
# * http://oauth.twoalex.com (easy access tokens)
# * http://developers.facebook.com/docs/coreconcepts/ (FB docs)
# the person I hang out with most
people = g.fql_query("select tagged_uids from checkin where author_uid = me()")
bestfriend = people.collect {|c| c["tagged_uids"]}.flatten.group_by {|u| u}.values.max_by(&:length).first
Koala::Facebook::GraphAPI.batch do
# Development
sudo apt-get install bash-completion autoconf tig meld curl subversion git-core git-svn git-cola gitg xchat postfix
# Chrome
http://google.com/chrome
# Sun Java
sudo add-apt-repository "deb http://archive.canonical.com/ lucid partner"
sudo apt-get update
sudo apt-get install sun-java6-bin sun-java6-jre sun-java6-jdk