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:
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. |
require 'rubygems' | |
require 'bundler/setup' | |
require 'sinatra' | |
#require 'logger' | |
get '/' do | |
# log = File.open('/tmp/registry.log', 'a') |
require 'sinatra' | |
get '/' do | |
$stderr.puts "stderr" | |
$stdout.puts "stdout" | |
'got /' | |
end |
#!/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 = [] |
$ 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 |
I hereby claim:
To claim this, I am signing this object:
# frozen_string_literal: true | |
# DockerHelper provides methods to work with Docker containers. | |
module DockerHelper | |
extend self | |
def running_in_docker? | |
!!(File.read("/proc/1/cgroup") =~ %r[^\d+:\w+:/docker/]) # !! => true/false | |
rescue Errno::ENOENT | |
false |