Skip to content

Instantly share code, notes, and snippets.

@jakemauer
jakemauer / install-phantomjs2-debian.sh
Last active August 29, 2015 14:19
PhantomJS 2.0 installer for Debian
echo deb http://ftp.us.debian.org/debian jessie main >> /etc/apt/sources.list
apt-get update
apt-get -y install libicu52 libjpeg-dev libfreetype6 libfontconfig unzip
mkdir -p /root/bin
curl -sL -o /root/bin/phantomjs-2.0.zip https://github.com/jakemauer/phantomjs/releases/download/2.0.0-debian-bin/phantomjs-2.0.0-debian-x86_64.zip
unzip /root/bin/phantomjs-2.0.zip -d /root/bin
rm -f /root/bin/phantomjs-2.0.zip
ln -s /root/bin/phantomjs /usr/bin/phantomjs
App.Evaluation = DS.Model.extend
team_members: DS.hasMany 'team_member', async: true
approving_members: DS.hasMany 'team_member', async: true
App.TeamMember = DS.Model.extend
evaluations: DS.hasMany 'evaluation', async: true
@jakemauer
jakemauer / hulk_speed_racer.md
Created May 8, 2014 03:19
Film Crit Hulk review of Speed Racer (2008)

Amalgamation: the combining or uniting of multiple entities into one thing

Besides being one of hulk's favorite words, it is also something that is a tricky proposition in cinema. We most often think of it in terms of quentin tarantino's work, where his films seem to jump into different genres at will. But they often speak in heavy codified language. They shift in look and feel so we know what we're experiencing. But anytime you play with these things, what you are really playing with is audience expectation, which promptly turns any amalgamation into a high wire act.

Speed racer is an amalgamation.

And it's an amalgamation of so many things that it might seem confusing: it's a racing movie. It's a kids movie. It's an action movie. Beyond mere genre, there's the subject matter itself: it's a movie about corruption. A movie about family dynamics. It's a coming of age story. And beyond mere subject, there's the raucous tonal jumps: silly monkeys, gun violence, date nights, kung fu, schoolyard hijinks, impr

@jakemauer
jakemauer / rubytest_user_key_settings
Last active August 29, 2015 14:00
ST3 RubyText + Zeus Setup
[
{ "keys": ["super+shift+r"], "command": "run_single_ruby_test",
"context": [ { "key": "selector", "operator": "equal",
"operand": "source.ruby, source.rspec, text.gherkin.feature"
} ]
}, // single test
{ "keys": ["super+shift+t"], "command": "run_all_ruby_test",
"context": [ { "key": "selector", "operator": "equal",
def create_pdf
doc_task = DocRaptor.create(doc_options)
status = {'status' => "Queued generation for #{channel_partner_name} with DocRapter"}
timeout_time = Time.now + TWO_MINUTES
print_status(status)
while !(['completed','failed'].include? status['status']) && Time.now <= timeout_time
sleep SLEEP_TIME
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Future Fad!</title>
<style type="text/css">
body {
font: normal 16px/18px Futura, Helvetica, Arial, sans-serif;
}
@jakemauer
jakemauer / haproxy.cfg
Created September 30, 2013 23:56
Haproxy config
global
log 127.0.0.1 local0
log 127.0.0.1 local1 notice
#log loghost local0 info
maxconn 4096
#chroot /usr/share/haproxy
user haproxy
group haproxy
daemon
#debug
@jakemauer
jakemauer / Gemfile.lock
Created September 5, 2013 17:12
Gemfile.lock
GIT
remote: git://github.com/nhemsley/middleman-thumbnailer.git
revision: babfa8071a16f68893c915eb8ce5b83c02cbf148
specs:
middleman-thumbnailer (0.1.0)
middleman (>= 3.0.0)
rake
rmagick (~> 2.13.0)
GEM
OpenID::DiscoveryFailure: Failed to fetch identity URL http://test.appdirect.com/openid/id : Error encountered in redirect from http://test.appdirect.com/openid/id: Error connecting to SSL URL https://test.appdirect.com/openid/id: SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed
from /Users/jake/.rvm/gems/ruby-1.9.3-p429@doc-center/gems/ruby-openid-2.2.3/lib/openid/yadis/discovery.rb:79:in `rescue in discover'
/Users/jake/.rvm/gems/ruby-1.9.3-p429@doc-center/bin:/Users/jake/.rvm/gems/ruby-1.9.3-p429@global/bin:/Users/jake/.rvm/rubies/ruby-1.9.3-p429/bin:/Users/jake/.rvm/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/jake/grails/grails-2.0.4/bin:/Library/Java/JavaVirtualMachines/1.6.0_37-b06-434.jdk/Contents/Home:/Users/jake/bin
RubyGems Environment:
- RUBYGEMS VERSION: 1.8.25
- RUBY VERSION: 1.9.3 (2013-05-15 patchlevel 429) [x86_64-darwin12.3.0]
- INSTALLATION DIRECTORY: /Users/jake/.rvm/gems/ruby-1.9.3-p429@doc-center
- RUBY EXECUTABLE: /Users/jake/.rvm/rubies/ruby-1.9.3-p429/bin/ruby
- EXECUTABLE DIRECTORY: /Users/jake/.rvm/gems/ruby-1.9.3-p429@doc-center/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-darwin-12