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
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 |
require 'rubygems' | |
require 'tinder' | |
require 'uri' | |
class Food | |
def initialize(place=nil) | |
@place = place | |
end | |
def prefix |
# 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 |
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:
#!/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 |
class REXML::Document | |
@@entity_expansion_text_limit = 10_240 | |
def self.entity_expansion_text_limit=( val ) | |
@@entity_expansion_text_limit = val | |
end | |
def self.entity_expansion_text_limit | |
@@entity_expansion_text_limit | |
end |
{ | |
"auto_complete_commit_on_tab": true, | |
"auto_complete_with_fields": true, | |
"binary_file_patterns": | |
[ | |
"*.jpg", | |
"*.jpeg", | |
"*.png", | |
"*.gif", | |
"*.ttf", |
--type-add=ruby=.haml,.rake,.rsel,.phtml,.ru | |
--type-add=html=.html.erb,.html.haml,.mustache | |
--type-add=js=.js.erb | |
--type-add=css=.sass,.less,.scss | |
--type-set=markdown=.markdown,.md | |
--type-set=cucumber=.feature | |
--type-set=txt=.txt | |
--type-set=erb=.erb | |
--type-set=feature=.feature | |
--type-set=textile=.textile |
module Abyss | |
ROUNDTRIP = {}.tap { |abyss| abyss.default = abyss }.freeze | |
def to_abyss(obj = self) | |
case obj | |
when Hash | |
obj.inject({}) { |h,(k, v)| h.update k => to_abyss(v) }.tap { |h| h.default = ROUNDTRIP } | |
when Array | |
obj.map { |e| to_abyss(e) } | |
else | |
obj |