Skip to content

Instantly share code, notes, and snippets.

View keybase.md

Keybase proof

I hereby claim:

  • I am ultrasaurus on github.
  • I am ultrasaurus (https://keybase.io/ultrasaurus) on keybase.
  • I have a public key whose fingerprint is 7C15 2667 134B E0D2 2F41 10B4 EFC0 EF27 3C7B 3DE8

To claim this, I am signing this object:

View .gitconfig
[alias]
st = status
ci = commit
br = branch
co = checkout
df = diff
lg = log -p
branches = for-each-ref --sort='-authordate:iso8601' --format=' %(authordate:relative)%09%(refname:short)' refs/heads
[push]
View make-github-labels
Make GitHub Labels
gem install 'octokit'
irb
require 'octokit'
client = Octokit::Client.new login:'yourname',password:’XXXXXX'
@ultrasaurus
ultrasaurus / gist:5994155
Created Jul 14, 2013
tesseract build fails
View gist:5994155
svn checkout http://tesseract-ocr.googlecode.com/svn/trunk/ tesseract-ocr
cd tesseract-ocr
sh ./autogen.sh
./configure
make
:
:
/usr/bin/ranlib: file: .libs/libtesseract.a(quadratc.o) has no symbols
libtool: link: ranlib .libs/libtesseract.a
ranlib: file: .libs/libtesseract.a(quadratc.o) has no symbols
View php-test-file
<html>
<head>
<title>PHP Test</title>
</head>
<body>
<?php phpinfo(); ?>
</body>
</html>
View taller_setup.txt
run("echo gem \\'rake\\', \\'0.8.7\\' >> Gemfile;")
run("echo group :test, :development do >> Gemfile;")
run("echo gem \\'rspec-rails\\', \\'\\>\\= 2.3.0\\' >> Gemfile;")
run("echo gem \\'capybara\\', \\'0.4.0\\' >> Gemfile;")
run("echo gem \\'database_cleaner\\' >> Gemfile;")
run("echo gem \\'cucumber-rails\\' >> Gemfile;")
run("echo gem \\'launchy\\' >> Gemfile;")
run("echo end >> Gemfile;")
run("bundle install")
View not using this
run("echo gem \\'rake\\', \\'0.8.7\\' >> Gemfile;")
run("echo group :test, :development do >> Gemfile;")
run("echo gem \\'rspec-rails\\', \\'\\>\\= 2.3.0\\' >> Gemfile;")
run("echo gem \\'capybara\\', \\'0.4.0\\' >> Gemfile;")
run("echo gem \\'database_cleaner\\' >> Gemfile;")
run("echo gem \\'cucumber-rails\\' >> Gemfile;")
run("echo gem \\'launchy\\' >> Gemfile;")
run("echo end >> Gemfile;")
run("bundle install")
View Rails rack middleware
class TestMiddleware
def initialize(app)
@app = app
end
def call(env)
puts "------------------TestMiddleware--------------"
#puts env.to_yaml
@app.call(env)
end
@ultrasaurus
ultrasaurus / rails-rspec-windows-error
Created Feb 10, 2011
windows installation issues
View rails-rspec-windows-error
ERROR: Error installing rspec-rails:
activemodel requires activesupport (= 3.0.4, runtime)
C:\Users\Knyazhna\Work\TreasureHunt>gem install rails
Successfully installed activesupport-3.0.4
Successfully installed activemodel-3.0.4
Successfully installed actionpack-3.0.4
Successfully installed activerecord-3.0.4
Successfully installed activeresource-3.0.4
Successfully installed actionmailer-3.0.4
View gist:632837
$ rake spec
(in /Users/sarah/src/rails3_jruby/roster)
JRuby limited openssl loaded. http://jruby.org/openssl
gem install jruby-openssl for full support.
/Users/sarah/.rvm/rubies/jruby-1.5.2/bin/jruby -S bundle exec rspec "./spec/models/person_spec.rb"
JRuby limited openssl loaded. http://jruby.org/openssl
gem install jruby-openssl for full support.
JRuby limited openssl loaded. http://jruby.org/openssl
gem install jruby-openssl for full support.
...FF