Skip to content

Instantly share code, notes, and snippets.

View bhenderson's full-sized avatar

Brian Henderson bhenderson

View GitHub Profile
@bhenderson
bhenderson / tmux-ssh
Last active September 10, 2018 12:07 — forked from dmytro/ssh-multi.sh
Start multiple synchronized SSH connections with Tmux
#!/bin/bash
# SSH into multiple hosts with each in their own tmux pane.
if [ "$#" -lt 1 ]; then
cat >&2 <<-EOM
Usage: $(basename $0) host1 [ host2 ... ] [ -- ssh options ]
EOM
exit 1
fi
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle',
something: Ember.computed(function() {
return 'Something';
}),
list: [
@bhenderson
bhenderson / a.rb
Created February 26, 2013 04:40 — forked from tenderlove/a.rb
module A
def test_whatever
flunk 'sucks'
end
end
require 'minitest/mock'
require 'net/http'
m = MiniTest::Mock.new.expect(:foo, true, [Net::HTTP::Post.new("/")])
p m.foo(1)
begin
m.verify
rescue Exception => e
puts "expected to raise"