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:
- Hulu / HuluPlus
- CBS
- ABC
- MTV
- theWB
- CW TV
- Crackle
- NBC
#!/usr/bin/env bash | |
uninstall() { | |
list=`gem list --no-versions` | |
for gem in $list; do | |
gem uninstall $gem -aIx | |
done | |
gem list | |
gem install bundler | |
} |
class Foo | |
end | |
Foo.object_id # => 34581480 | |
f = Foo.new # => #<Foo:0x000000041f53c0> | |
f.class.object_id # => 34581480 | |
# This just prevents the "const redefined" warning |
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:
$stack, $draws = [], {} | |
def method_missing *args | |
return if args[0][/^to_/] | |
$stack << args.map { |a| a or $stack.pop } | |
$draws[$stack.pop(2)[0][0]] = args[1] if args[0] == :< | |
end | |
class Array | |
def +@ |
~/.chrb
, their installation inside ~/local
and my rubies at ~/.chrb/rubies
.~/.mkshrc
file# chruby + ruby-build
chrb() {
source ~/local/share/chruby/chruby.sh
unset RUBIES
RUBIES=$(ls -d ~/.chrb/rubies/* 2> /dev/null)
<form accept-charset="UTF-8" action="#" class="pro-form" id="pro-form" method="post"> | |
<h1>Progress Form</h1> | |
<div class="progress-wrap"> | |
<progress max="100" value="0" id="progress"></progress> | |
<div class="progress-message" id="progress-message">The form, it wants you.</div> | |
</div> | |
<input id="subscription_plan_id" name="subscription[plan_id]" type="hidden" value="1"> |
def write_backtrace name, backtrace, filename | |
exceptions = Regexp.union([ | |
/\.bundle/, | |
/spec/, | |
/test/, | |
/lib\/ruby\/1.9.1/ | |
]) | |
backtrace.reject! { |line| line =~ exceptions } |
require 'stringio' | |
require 'timeout' | |
class Object | |
def methods_returning(expected, *args, &blk) | |
old_stdout = $> | |
$> = StringIO.new | |
methods.select do |meth| | |
Timeout::timeout(1) { dup.public_send(meth, *args, &blk) == expected rescue false } rescue false |
Find it here: https://github.com/bitemyapp/learnhaskell
based on rage-quit support for bash
Put the files below inside ~/.oh-my-zsh/custom/plugins/fuck
Also chmod a+x
the flip
command.