Skip to content

Instantly share code, notes, and snippets.

Paul Makepeace PaulMakepeace

Block or report user

Report or block PaulMakepeace

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@PaulMakepeace
PaulMakepeace / keybase.md
Created Jul 16, 2015
keybase.io/paulmakepeace
View keybase.md

Keybase proof

I hereby claim:

  • I am paulmakepeace on github.
  • I am paulmakepeace (https://keybase.io/paulmakepeace) on keybase.
  • I have a public key whose fingerprint is 9C72 A0C2 7681 3113 38A1 6C9F 670F 9FF3 4115 673C

To claim this, I am signing this object:

@PaulMakepeace
PaulMakepeace / console.log
Created Apr 9, 2012
rvm install 1.9.3 borked
View console.log
$ rvm reinstall 1.9.3
Removing /home/deploy/.rvm/src/ruby-1.9.3-p125...
Removing /home/deploy/.rvm/rubies/ruby-1.9.3-p125...
Removing ruby-1.9.3-p125 aliases...
Removing ruby-1.9.3-p125 wrappers...
Removing ruby-1.9.3-p125 environments...
Removing ruby-1.9.3-p125 binaries...
Installing Ruby from source to: /home/deploy/.rvm/rubies/ruby-1.9.3-p125, this may take a while depending on your cpu(s)...
ruby-1.9.3-p125 - #fetching
@PaulMakepeace
PaulMakepeace / kv_to_tsv.rb
Created Mar 28, 2012
Convert key: value lines into a TSV
View kv_to_tsv.rb
#!/usr/bin/ruby
# Take a series of key: value lines and output a TSV with a header row made
# up from the set of seen keys.
IN_FILE = 'phiri.txt'
RECORD_DELIMITER = 'Template-Type'
ENCODING = 'ISO-8859-1'
rows = []
@PaulMakepeace
PaulMakepeace / app.rb
Created Mar 2, 2012
vhost error_log ignored with passenger
View app.rb
require 'sinatra'
get '/' do
$stderr.puts "stderr"
$stdout.puts "stdout"
'got /'
end
@PaulMakepeace
PaulMakepeace / app.rb
Created Mar 2, 2012
nginx ignoring error_log?
View app.rb
require 'rubygems'
require 'bundler/setup'
require 'sinatra'
#require 'logger'
get '/' do
# log = File.open('/tmp/registry.log', 'a')
@PaulMakepeace
PaulMakepeace / README.txt
Created Dec 30, 2011
Which European country's phone calling code requires the longest search into π?
View README.txt
https://twitter.com/#!/paulmakepeace/status/152405728848650240
"I mulled over this: which European country's phone calling code requires the longest search into π?
E.g. Switzerland +41, 3 digits #math #pi"
A couple of folks asked about very small "countries" or territories that
had seemingly long calling codes but which are actually subsumed under
e.g. North American Numbering Plan (+1) which isn't in Europe anyway,
Vatican City (+379 & +39), Curaçao (+599-9) under Netherlands Caribbean,
etc.
You can’t perform that action at this time.