Skip to content

Instantly share code, notes, and snippets.

View stormsilver's full-sized avatar

Eric Hankins stormsilver

View GitHub Profile
$ pack build --builder heroku/buildpacks sesc:master
Defaulting app directory to current working directory /Users/ssilver/work/sesc (use --path to override)
Using user-provided builder image heroku/buildpacks
Pulling builder image heroku/buildpacks (use --no-pull flag to skip this step)
latest: Pulling from heroku/buildpacks
Digest: sha256:9f86541d462ca1d812028104566c6a47e37445a27ad55f729b0182a6614c1085
Status: Image is up to date for heroku/buildpacks:latest
Selected run image heroku/pack:18 from builder heroku/buildpacks
Pulling run image heroku/pack:18 (use --no-pull flag to skip this step)
18: Pulling from heroku/pack
[ssilver@ehankins-mac:~/work/sandbox/skylight-busted-gem 02:51 PM]$ rvm gemset create skylight
ruby-2.3.7 - #gemset created /Users/ssilver/.rvm/gems/ruby-2.3.7@skylight
ruby-2.3.7 - #generating skylight wrappers.......
[ssilver@ehankins-mac:~/work/sandbox/skylight-busted-gem 02:51 PM]$ rvm gemset use skylight
Using ruby-2.3.7 with gemset skylight
[ssilver@ehankins-mac:~/work/sandbox/skylight-busted-gem 02:51 PM]$ gem list
*** LOCAL GEMS ***
bigdecimal (default: 1.2.8)
### Keybase proof
I hereby claim:
* I am stormsilver on github.
* I am stormsilver (https://keybase.io/stormsilver) on keybase.
* I have a public key whose fingerprint is FB96 5DFC DFC0 78F5 EE4B 9CFC 5548 D73F 894C 864C
To claim this, I am signing this object:
@stormsilver
stormsilver / di.sh
Last active January 26, 2018 13:10 — forked from fernandes/di.sh
Download all Premium playlists from di.fm
#/bin/sh
# Adapted from http://mpd.wikia.com/wiki/Hack:di.fm-playlists
URL="http://listen.di.fm/public3"
token=$1; dir=$2
if [ "$dir" == "" -o "$token" == "" ]; then
echo "Usage: $0 TOKEN PATH_TO_SAVE"
@stormsilver
stormsilver / backgres
Created July 11, 2016 13:42
Scripts for backing up + reloading a postgres data dir
#!/bin/bash
stopgres
mkdir -p ~/.postgres
sudo rm -rf ~/.postgres/databackup
sudo cp -r /Library/PostgreSQL/9.4/data ~/.postgres/databackup
startgres
[ pid=81628, timestamp=1430146697 ] Process aborted! signo=SIGSEGV(11), reason=#0, signal sent by PID 0 with UID 0, si_addr=0x0, randomSeed=1430146121
[ pid=81628 ] Crash log dumped to /var/tmp/passenger-crash-log.1430146697
[ pid=81628 ] Date, uname and ulimits:
Mon Apr 27 09:58:17 CDT 2015
Darwin 14.3.0 Darwin Kernel Version 14.3.0: Mon Mar 23 11:59:05 PDT 2015; root:xnu-2782.20.48~5/RELEASE_X86_64 x86_64 i386
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
file size (blocks, -f) unlimited
max locked memory (kbytes, -l) unlimited
max memory size (kbytes, -m) unlimited
@stormsilver
stormsilver / gist:6245b43838e77f5c6636
Created March 2, 2015 21:21
rails update_all does not include joins
unless File.exist?('Gemfile')
File.write('Gemfile', <<-GEMFILE)
source 'https://rubygems.org'
gem 'rails', github: 'rails/rails'
gem 'arel', github: 'rails/arel'
# gem 'rails', github: 'rails/rails', branch: '4-2-stable'
# gem 'rails', '4.2.1.rc2'
# gem 'rails', '4.2.0'
# gem 'rails', '4.1.9'
gem 'sqlite3'
@stormsilver
stormsilver / gist:cd413ed30c6ec5328e6f
Last active August 29, 2015 14:16
Rails 4.2.1 polymorphic belongs_to regression where query is nil
unless File.exist?('Gemfile')
File.write('Gemfile', <<-GEMFILE)
source 'https://rubygems.org'
gem 'rails', '4.2.1.rc2'
# gem 'rails', '4.2.0'
gem 'sqlite3'
GEMFILE
system 'bundle'
end
@stormsilver
stormsilver / testit.rb
Created July 28, 2014 17:11
Incorrect join table name
unless File.exist?('Gemfile')
File.write('Gemfile', <<-GEMFILE)
source 'https://rubygems.org'
gem 'rails', github: 'rails/rails'
gem 'arel', github: 'rails/arel'
gem 'rack', github: 'rack/rack'
gem 'i18n', github: 'svenfuchs/i18n'
gem 'sqlite3'
GEMFILE
@stormsilver
stormsilver / test.rb
Created May 27, 2014 16:50
hstore returns nil
unless File.exist?('Gemfile')
File.write('Gemfile', <<-GEMFILE)
source 'https://rubygems.org'
gem 'rails', github: 'rails/rails'
gem 'arel', github: 'rails/arel'
gem 'pg'
GEMFILE
system 'bundle'
end