This allows you to use the following video streaming services outside of the US from your Mac without having to use a proxy or VPN, so no big bandwidth issues:
- Netflix
- Hulu / HuluPlus
- CBS
- ABC
- MTV
- theWB
- CW TV
- Crackle
#!/usr/bin/env ruby | |
require 'net/telnet' | |
cache_dump_limit = 100 | |
localhost = Net::Telnet::new("Host" => "localhost", "Port" => 11211, "Timeout" => 3) | |
slab_ids = [] | |
localhost.cmd("String" => "stats items", "Match" => /^END/) do |c| | |
matches = c.scan(/STAT items:(\d+):/) | |
slab_ids = matches.flatten.uniq | |
end |
This allows you to use the following video streaming services outside of the US from your Mac without having to use a proxy or VPN, so no big bandwidth issues:
# requirements: | |
# - currently running rails server | |
# - gem 'sextant' bundled in your Gemfile | |
# | |
# Add this to your .zshrc or .bashrc | |
# or put it in a separate file and include it like this | |
# source ~/scripts/grep_local_rails_routes.sh | |
# | |
# You can use it like this | |
# %: routes |
require 'rubygems' | |
require 'tinder' | |
require 'uri' | |
class Food | |
def initialize(place=nil) | |
@place = place | |
end | |
def prefix |
namespace :deploy do | |
before 'deploy' do | |
# run deploy song if available and mpg321 is installed | |
system('[ -e deploy.mp3 ] && type mpg321 &>/dev/null && mpg321 deploy.mp3 &') | |
end unless ENV['MUSIC_OFF'] | |
end |
# LOL!!1 | |
# Dunno who made this. BUT I LUVZ IT. | |
alias wtf='dmesg' | |
alias onoz='cat /var/log/errors.log' | |
alias rtfm='man' | |
alias visible='echo' | |
alias invisible='cat' | |
alias moar='more' |
/* | |
As of version 1.1.2, Propane will load and execute the contents of | |
~Library/Application Support/Propane/unsupported/caveatPatchor.js | |
immediately following the execution of its own enhancer.js file. | |
You can use this mechanism to add your own customizations to Campfire | |
in Propane. | |
Below you'll find two customization examples. |
find . -type f -name "*.php" -exec look class {} \; > classes |
#!/opt/local/bin/ruby | |
# _ __ _ _____ | |
# __ ______ (_)___ ___ ____ _/ /______(_) _/__ / _ _____ _________ | |
# / / / / __ \/ / __ \__ \/ __ \/ __/ ___/ / |/_/ / / | |/_/ _ \/ ___/ __ \ | |
# / /_/ / / / / / / / / / / /_/ / /_/ / / /> < / /___> </ __/ / / /_/ / | |
# \__,_/_/ /_/_/_/ /_/ /_/\__,_/\__/_/ /_/_/|_| /____/_/|_|\___/_/ \____/ | |
# | |
# Watermark folder script | |
# 2009-08-15 01:52 am | |
# |
# put this in your ~/.bash_profile (Mac OS X) | |
# Useful for Rails and Texmate coders | |
# Sometimes I find it's the little things that make life easier. | |
alias rr='rake routes' | |
alias ss='script/server' | |
alias ..='cd ..' | |
alias e='mate .' | |
alias lh3='open http://localhost:3000' |