This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'open-uri' | |
require 'rss' | |
sources = %w( | |
http://ws.audioscrobbler.com/2.0/user/jhsu/lovedtracks.rss | |
http://ws.audioscrobbler.com/1.0/user/jhsu/recenttracks.rss | |
) | |
youtube_search = "http://www.youtube.com/results?search_query=" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[difftool "Kaleidoscope"] | |
cmd = ksdiff-wrapper git \"$LOCAL\" \"$REMOTE\" | |
[difftool] | |
prompt = false | |
[diff] | |
tool = Kaleidoscope |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 3000721 A W 4 4 60 33 5 28 1 | |
1 3000727 G K 24 24 60 32 5 27 1 | |
1 3000767 T K 21 21 60 29 5 24 1 | |
1 3001443 G A 96 96 60 23 23 0 2 | |
1 3002052 C T 48 48 60 7 7 0 2 | |
1 3004103 C T 45 45 60 6 6 0 1 | |
1 3004121 * +AC/* 99 99 60 5 2 3 1 | |
1 3004918 C T 53 54 30 15 2 2 1 | |
1 3004919 C G 29 57 30 15 5 10 1 | |
1 3004964 T A 31 45 27 7 1 6 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/sh | |
### BEGIN INIT INFO | |
# Provides: mongodb | |
# Required-Start: $all | |
# Required-Stop: $all | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the mongodb data-store | |
# Description: starts mongodb using start-stop-daemon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
☜(゚ヮ゚☜) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.--.--.--.--. | |
/ / / / |\ | |
/ / / / / \ | |
| |> / | |
| | / | |
| / | |
| / | |
| __ .' | |
/ .' | |
/ / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# kirk | |
# | |
# starts an irc locally to campfire | |
description "kirk irc campfire server" | |
author "noonat and jshsu" | |
start on startup | |
stop on shutdown | |
script |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Author: Pieter Noordhuis | |
# Description: Simple demo to showcase Redis PubSub with EventMachine | |
# | |
# Requirements: | |
# - rubygems: eventmachine, thin, cramp, sinatra, yajl-ruby | |
# - a browser with WebSocket support | |
# | |
# Usage: | |
# ruby redis_pubsub_demo.rb | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Vim syntax file | |
" Language: HTML (version 5) | |
" Maintainer: Rodrigo Machado <[email protected]> | |
" URL: http://gist.github.com/256840 | |
" Last Change: 2009 May 13 | |
" License: Public domain | |
" (but let me know if you liked it :) ) | |
" | |
" Note: This file just adds the new tags from HTML 5 | |
" and don't replace default html.vim syntax file |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# source: https://wincent.com/wiki/Showing_SQL_statements_in_the_Rails_console | |
if ENV['RAILS_ENV'] | |
# Called after the irb session is initialized and Rails has been loaded | |
IRB.conf[:IRB_RC] = Proc.new do | |
logger = Logger.new(STDOUT) | |
ActiveRecord::Base.logger = logger | |
ActiveResource::Base.logger = logger | |
end | |
end |