I hereby claim:
- I am mfilej on github.
- I am mfilej (https://keybase.io/mfilej) on keybase.
- I have a public key whose fingerprint is C746 EB00 F18F 87C3 F44D D10C 9A17 9AF8 131C DC0C
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
# System-wide .bashrc file for interactive bash(1) shells. | |
if [ -z "$PS1" ]; then | |
return | |
fi | |
PS1='\h:\W \u\$ ' | |
# Make bash check its window size after a process completes | |
shopt -s checkwinsize | |
# Tell the terminal about the working directory at each prompt. | |
if [ "$TERM_PROGRAM" == "Apple_Terminal" ] && [ -z "$INSIDE_EMACS" ]; then |
$("a[href*=#data]")
example_output.txt
)pbpaste | ruby abanet.rb | xargs open
source 'https://rubygems.org' | |
gem 'rails', github: 'rails/rails' | |
gem 'pg' |
# http://stackoverflow.com/questions/5108876/kill-a-postgresql-session-connection | |
namespace :db do | |
desc "Fix 'database is being accessed by other users'" | |
task :terminate => :environment do | |
ActiveRecord::Base.connection.execute <<-SQL | |
SELECT | |
pg_terminate_backend(pid) | |
FROM | |
pg_stat_activity | |
WHERE |
require "spec_helper" | |
describe Api::ArtistsController do | |
let(:artist) { double :artist, id: '1', to_json: '' } | |
describe "#show" do | |
it "renders the json representation of a given artist" do | |
Artist.stub(:find).with('1') { artist } |
con_enable 1 | |
dota_minimap_hero_size "850" | |
mat_queue_mode 4 | |
fps_max "80" | |
net_graphproportionalfont 0 | |
net_graphinsettop 145 | |
net_graphinsetright -25 |
Our suite would sometimes randomly hang when running a certain spec, but we weren't able to tell which one. With the below RSpec around filter you can see the spec that is currently running by inspecting the process name.
$ rspec spec_spec.rb &
[2] 64968
$ ps | grep rspec
64968 ttys005 0:00.24 rspec /Users/miha/spec_spec.rb:10 "Dummy spec waits for 100 seconds"
Thanks for joining us, fair wizard! We've received your Paradox Account details, and work has already begun on your new robe. You're about a 38 regular, right? | |
While we're finishing up the tailoring and applying the flame retardant, we just need you to do us one quick favor and confirm your account. Sometimes it's hard to tell who's who under those robes, so we just want to make sure it's you, and not a vampire. Please confirm your new account by clicking here: |
DROPBOX_DIR = "~/Dropbox/Public/pic" | |
DROPBOX_URL = "https://dl.dropbox.com/u/4381416/pic/" | |
filename = Time.now.strftime "grab-%Y%m%d-%H%M%S%4N.png" | |
target = File.expand_path File.join(DROPBOX_DIR, filename) | |
public_url = DROPBOX_URL + filename | |
abort "File already exists" if File.exists?(target) | |
def screencapture(target) | |
system "screencapture", "-i", target |