View .gitignore
test/reports
View bundler_inline_on_heroku.rb
# heroku expects all gems to be vendored.
# bundler/inline has some quirks that don't play nice with it
# so the best alternative is to just do a fresh install every time, dyno time is cheap!
require 'bundler'
require 'bundler/inline'
if ENV['DYNO']
# on heroku, we don't care about their bundler config!
# alternatively, you could `rm -rf /app/.bundle` the bundler config before loading it
View keybase.md

Keybase proof

I hereby claim:

  • I am phoet on github.
  • I am phoet (https://keybase.io/phoet) on keybase.
  • I have a public key whose fingerprint is 7B53 845B DBA6 25B2 FE4F FA16 09FA 59FF FDB3 84F6

To claim this, I am signing this object:

View temp_env.rb
# In order to make testing of environment variables easier,
# you can use this helper to temporarily change the ENV to something you expect.
#
# As an example:
#
# Imagine you have some ENV variable that changes based on the current runtime environment.
#
# def user_id
# ENV['TEST_USER_ID'].present? ? ENV['TEST_USER_ID'] : session[:user_id]
# end
View README.md

NOOP Keyboard-Layout

Edit with Ukulele like described here.

Needs restart!

View artifacts.py
#!/usr/bin/python
# -*- coding: utf-8 -*-
# This script reproduces the issue with artifacts when
# handling (semi)transparent PNG files:
# https://github.com/python-pillow/Pillow/issues/1449
# Version used:
#
View default_start_line.php
<? goto 💩; die "PHP, die you piece of 💩!"; 💩:
View heroku.rake
namespace :heroku do
desc "generate GC settings"
task gc: [:environment] do
# https://discussion.heroku.com/t/tuning-rgengc-2-1-on-heroku/359/6
# http://tmm1.net/ruby21-rgengc/
# http://thorstenball.com/blog/2014/03/12/watching-understanding-ruby-2.1-garbage-collector/
# http://collectiveidea.com/blog/archives/2015/02/19/optimizing-rails-for-memory-usage-part-1-before-you-optimize/
settings = {
RUBY_GC_HEAP_FREE_SLOTS: 600000, # default is 4096,
RUBY_GC_HEAP_GROWTH_FACTOR: 1.25, # default is 1.8,
View vagrant_nfs_inversion.rb
config.export_nfs.each do |export|
config.trigger.before :halt, stdout: true do
mount_point = export[1]
system("sudo umount -f #{mount_point}")
end
config.trigger.after [:up, :reload], stdout: true do
remote_point = "#{PRIVATE_IP}:#{export[0]}"
mount_point = export[1]
puts "mounting #{remote_point} to #{mount_point}"
View docker_alias.sh
function docker {
cmd=/usr/local/bin/docker
case $1 in
"status") shift && $cmd ps $@;;
*) $cmd $@;;
esac
}