Skip to content

Instantly share code, notes, and snippets.

Coding Go

Peter Hellberg peterhellberg

Coding Go
Block or report user

Report or block peterhellberg

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
pcreux / Gemfile
Last active Jun 25, 2019
Fast Rails + Heroku Configuration
View Gemfile
group :production do
gem 'unicorn'
# Enable gzip compression on heroku, but don't compress images.
gem 'heroku-deflater'
# Heroku injects it if it's not in there already
gem 'rails_12factor'
mislav /
Last active Dec 19, 2015
Test-drive the new vim 7.4 prerelease
cd /tmp
wget -O- | tar -xj
cd vim74a
sudo mkdir -p /opt/vim
sudo chown $USER /opt/vim
PATH=/usr/bin:/usr/sbin:/bin:/sbin ./configure --prefix=/opt/vim --enable-rubyinterp | grep ruby
make && make install
mislav / geoip_service.rb
Created Sep 3, 2012
Simple GeoIP service class using and Faraday
View geoip_service.rb
require 'faraday_middleware'
require 'hashie/mash'
# Public: GeoIP service using
# See
# Examples
# res = ''
gregorynicholas / .inputrc
Last active Jan 11, 2020
OSX .inputrc to make terminal way better. and by better i mean i'm naked
View .inputrc
"\e[1~": beginning-of-line
"\e[4~": end-of-line
"\e[5~": history-search-backward
"\e[6~": history-search-forward
"\e[3~": delete-char
"\e[2~": quoted-insert
"\e[5C": forward-word
"\e[5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word
You can’t perform that action at this time.