Skip to content

Instantly share code, notes, and snippets.

View nateberkopec's full-sized avatar

Nate Berkopec nateberkopec

View GitHub Profile
@nateberkopec
nateberkopec / fuckit.rb
Created December 6, 2013 12:55
fuckit.rb
module Rack
class Fuckit
def initialize(app)
@app = app
end
def call(env)
@app.call(env) rescue nil
@nateberkopec
nateberkopec / friction.md
Created December 12, 2013 18:34
Clausewitz, ON WAR, Chapter VII

Everything is very simple in war, but the simplest thing is difficult. These difficulties accumulate and produce a friction, which no man can imagine exactly who has not seen war. Suppose now a traveller, who, towards evening, expects to accomplish the two stages at the end of his day's journey, four or five leagues, with post horses, on the high road—it is nothing. He arrives now at the last station but one, finds no horses, or very bad ones; then a hilly country, bad roads; it is a dark night, and he is glad when, after a great deal of trouble, he reaches the next station, and finds there some miserable accommodation. So in war, through the influence of an infinity of petty circumstances, which cannot properly be described on paper, things disappoint us, and we fall short of the mark. A powerful iron will overcomes this friction, it crushes the obstacles, but certainly the machine along with them. We shall often meet with this result. Like an obelisk, towards which the principal streets of a place converge,

Fetching repository, done.
Counting objects: 37, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (26/26), done.
Writing objects: 100% (27/27), 2.60 KiB | 0 bytes/s, done.
Total 27 (delta 20), reused 0 (delta 0)
-----> Fetching custom git buildpack... done
-----> Ruby app detected
-----> Compiling Ruby/Rails
fatal: protocol error: expected old/new/ref, got 'shallow 0334aa796da397827fd2e43eb4af3c4b9ac0dff0'
! Heroku Git error, please try again shortly.
! See http://status.heroku.com for current Heroku platform status.
! If the problem persists, please contact http://help.heroku.com and provide Request ID e1d65557-16d7-4608-9a02-f5eccb9911b9.
fatal: The remote end hung up unexpectedly
  • Whip of Erebos
  • Spear of Heliod
  • Agent of the Fates
  • Ashen Rider
  • Boon Satyr
  • Champion of Stray Souls
  • Chromanticore
  • Eidolon of Countless Battles
  • Ephara, God of the Polis
  • Erebos, God of the Dead
RUBY_GC_HEAP_FREE_SLOTS: 600000
RUBY_GC_HEAP_GROWTH_FACTOR: 1.25
RUBY_GC_HEAP_GROWTH_MAX_SLOTS: 200000
RUBY_GC_HEAP_INIT_SLOTS: 600000
RUBY_GC_HEAP_OLDOBJECT_LIMIT_FACTOR: 1.3
RUBY_GC_MALLOC_LIMIT: 16000000
RUBY_GC_MALLOC_LIMIT_MAX: 32000000
RUBY_GC_OLDMALLOC_LIMIT: 16000000
RUBY_GC_OLDMALLOC_LIMIT_MAX: 32000000
$ bundle exec rake guides:generate
.../.rbenv/versions/2.1.0/bin/ruby rails_guides.rb
Generating 2_2_release_notes.md as 2_2_release_notes.html
Generating 2_3_release_notes.md as 2_3_release_notes.html
Generating 3_0_release_notes.md as 3_0_release_notes.html
Generating 3_1_release_notes.md as 3_1_release_notes.html
Generating 3_2_release_notes.md as 3_2_release_notes.html
Generating 4_0_release_notes.md as 4_0_release_notes.html
Generating 4_1_release_notes.md as 4_1_release_notes.html
Generating _license.html.erb as _license.html
$ bundle exec rake guides:generate WARNINGS=1; bundle exec rake guides:validate
.../.rbenv/versions/2.1.0/bin/ruby rails_guides.rb
Generating 2_2_release_notes.md as 2_2_release_notes.html
Generating 2_3_release_notes.md as 2_3_release_notes.html
Generating 3_0_release_notes.md as 3_0_release_notes.html
Generating 3_1_release_notes.md as 3_1_release_notes.html
Generating 3_2_release_notes.md as 3_2_release_notes.html
Generating 4_0_release_notes.md as 4_0_release_notes.html
Generating 4_1_release_notes.md as 4_1_release_notes.html
Generating _license.html.erb as _license.html
class Admin::BaseController < ApplicationController
end
food idea list
tortillas
peanut butter
instant coffee
instant oatmeal
foil packet: potatoes, chicken, fish
ramen
canned chicken, turkey
mac and cheese