Skip to content

Instantly share code, notes, and snippets.

View nocksock's full-sized avatar

Nils Riedemann nocksock

View GitHub Profile
@nocksock
nocksock / deploy.rb
Created December 7, 2011 16:06
Capistrano Drupal(6) Deployment Recipe
#
# Capistrano recipe for deploying Drupal7 using git and ssh.
#
# Part of the explanations in the comments taken from:
# http://help.github.com/deploy-with-capistrano/
#
set :default_environment, {
# This is the $PATH for the deploymant shell. using uberpsace's recent php
# and added ~/bin for drush.
# This is an example nethackrc file. You should edit this to suit your needs
# This editor is vi-like. Type ESC a couple times, then ':q!' (without quotes)
# to exit if you get stuck. To save, hit ESC and then ZZ or type ':wq'
# (without quotes.) To insert text, hit 'i' to enter insert mode.
# Here are some examples of reasonable defaults:
OPTIONS=showexp,showscore,time,color,!autopickup
OPTIONS=autodig,fruit:slime mold,boulder:0
@nocksock
nocksock / jQuery Snow
Created December 16, 2010 14:01
Snow in under 190 chars. jQuery required.
setInterval('$("<s>❅</s>").appendTo("html").css({zIndex:999,color:"#ddf",position:"absolute",top:0,left:Math.random()*95+"%"}).animate({top:$("body").height()-20+"px"},4000)',300);