Skip to content

Instantly share code, notes, and snippets.

View tilthouse's full-sized avatar

Alex Boster tilthouse

View GitHub Profile
@tilthouse
tilthouse / keybase.md
Created January 8, 2020 22:39
keybase.md

Keybase proof

I hereby claim:

  • I am tilthouse on github.
  • I am tilthouse (https://keybase.io/tilthouse) on keybase.
  • I have a public key ASA8nvVZPbUCw7TF4Pl6nXoiphk8LnR1HBNC-GnnHyv7fgo

To claim this, I am signing this object:

@tilthouse
tilthouse / # gcc@4.9 - 2018-09-25_14-24-01.txt
Created September 25, 2018 21:48
gcc@4.9 on macOS 10.14 - Homebrew build logs
Homebrew build logs for gcc@4.9 on macOS 10.14
Build date: 2018-09-25 14:24:01
@tilthouse
tilthouse / # gcc@4.9 - 2018-09-25_09-31-39.txt
Created September 25, 2018 17:09
gcc@4.9 on macOS 10.14 - Homebrew build logs
Homebrew build logs for gcc@4.9 on macOS 10.14
Build date: 2018-09-25 09:31:39
@tilthouse
tilthouse / README.md
Last active June 28, 2018 01:05
Scott's Cheap Flights code exercise

I implemented this as a gem which can be found at https://github.com/tilthouse/scf_exercise For much higher performance, there exist native gems, We could also use the 'job_interview' gem: https://github.com/ruby-jokes/job_interview

FWIW, this seemed familiar. Turns out I did this problem from Project Euler in 2012. I did not create a gem for it at that time. My "get the answer quickly" solution from the time is at https://github.com/tilthouse/project_euler/blob/master/problems/002/answer002.rb I did look this up after doing this exercise again. My previous solution did not use caching, for example.

@tilthouse
tilthouse / Error
Created August 23, 2011 15:55
Attempt at new Spree 0.60.1 install
ActiveRecord::StatementInvalid in ProductsController#index
PGError: ERROR: relation "pages" does not exist
LINE 4: WHERE a.attrelid = '"pages"'::regclass
^
: SELECT a.attname, format_type(a.atttypid, a.atttypmod), d.adsrc, a.attnotnull
FROM pg_attribute a LEFT JOIN pg_attrdef d
ON a.attrelid = d.adrelid AND a.attnum = d.adnum
WHERE a.attrelid = '"pages"'::regclass
AND a.attnum > 0 AND NOT a.attisdropped
@tilthouse
tilthouse / brew doctor
Created July 30, 2011 16:28
Homebrew on Lion: Readline not compiling
Your OS X is ripe for brewing.
Any troubles you may be experiencing are likely purely psychosomatic.
@tilthouse
tilthouse / Capistrano run.sh
Created July 22, 2011 21:28
Capistrano RVM issues
$ cap -vv staging deploy
* executing `staging'
* executing `multistage:ensure'
* executing `deploy'
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
* executing "if [ -d /var/www/onlineapp/staging/shared/cached-copy ]; then cd /var/www/onlineapp/staging/shared/cached-copy && git fetch -q origin && git reset -q --hard f01e070901b274fcb1024bc4a5f7f383eb1f07b8 && git submodule -q init && for mod in `git submodule status | awk '{ print $2 }'`; do git config -f .git/config submodule.${mod}.url `git config -f .gitmodules --get submodule.${mod}.url` && echo Synced $mod; done && git submodule -q sync && git submodule -q update && git clean -q -d -x -f; else git clone -q git@github.com:dzap/dingus.git /var/www/onlineapp/staging/shared/cached-copy && cd /var/www/onlineapp/staging/shared/cached-copy && git checkout -q -b deploy f01e070901b274fcb1024bc4a5f7f383eb1f07b8 && git submodule -q init && git submodule -q sync && git submodule -q update --recursive; fi"
** [dingus-s