Skip to content

Instantly share code, notes, and snippets.

View freen's full-sized avatar

Daniel B. freen

View GitHub Profile
@freen
freen / puma.rb
Last active April 8, 2016 17:06
puma.rb for application experiencing Error::ENOENT during phased-restart
#!/usr/bin/env puma
app_path = File.expand_path(File.dirname(File.dirname(__FILE__)))
# The directory to operate out of.
#
# The default is the current directory.
#
directory '/opt/application/current'
@freen
freen / error_enoent_puma_phased_restart.txt
Created April 8, 2016 17:09
Error::ENOENT after puma phased-restart
/opt/application/shared/bundle/ruby/2.2.0/gems/railties-5.0.0.beta3/lib/rails/application.rb:103:in `pwd': No such file or directory - getcwd (Errno::ENOENT)
from /opt/application/shared/bundle/ruby/2.2.0/gems/railties-5.0.0.beta3/lib/rails/application.rb:103:in `find_root'
from /opt/application/shared/bundle/ruby/2.2.0/gems/railties-5.0.0.beta3/lib/rails/application.rb:91:in `inherited'
from /opt/application/current/config/application.rb:10:in `<module:Application>'
from /opt/application/current/config/application.rb:9:in `<top (required)>'
from /opt/application/current/config/environment.rb:2:in `require'
from /opt/application/current/config/environment.rb:2:in `<top (required)>'
from /opt/application/current/config.ru:3:in `require'
from /opt/application/current/config.ru:3:in `block in <main>'
from /opt/application/shared/bundle/ruby/2.2.0/gems/rack-2.0.0.alpha/lib/rack/builder.rb:55:in `instance_eval'
@freen
freen / wires-and-rails-workflow-processing-docker-build.log
Last active August 25, 2017 15:56
Docker build output for image wires-and-rails-workflow-processing, for ocropus-gpageseg debugging https://github.com/tmbdev/ocropy/issues/240
$ docker build -t wires-and-rails-workflow-processing .
Sending build context to Docker daemon 422.4kB
Step 1/5 : FROM edoburu/python-runner:latest
---> a6e7b9a6df3a
Step 2/5 : WORKDIR /app
---> Using cache
---> 6040c102483d
Step 3/5 : ADD . /app
---> d37dbc5624c0
Removing intermediate container a0c718310b74
@freen
freen / amplitude_and_release_via_sample_buffer.scd
Created October 18, 2017 08:52
Control amplitude and release of Env using sample Buffer ?
// This doesn't work:
(
s = Server.local;
b = Buffer.read(s, "/Users/freen/Desktop/a_rook_is_placed.wav");
SynthDef("aRookIsPlaced", { arg out=0, bufnum=0, rate=1, trigger=1, startPos=0, loop=0;
var sampleBuf,
@freen
freen / rspec_failures_for_new_sanctuary_asylum.txt
Created June 24, 2018 00:19
rspec failures at HEAD / master for new_sanctuary_asylum
➜ freen_new_sanctuary_asylum git:(feature/friends-filter-1-year-deadline) rspec
Run options: include {:focus=>true}
All examples were filtered out; ignoring {:focus=>true}
Randomized with seed 36947
.............................................................FFFFF..................................F.......................F.......................................F...........................................
Failures:
@freen
freen / rspec_fails_after_new_seed_on_master.txt
Created June 24, 2018 01:14
rspec_fails_after_new_seed_on_master.txt
➜ freen_new_sanctuary_asylum git:(feature/friends-filter-1-year-deadline) git co master
Switched to branch 'master'
Your branch is up to date with 'origin/master'.
➜ freen_new_sanctuary_asylum git:(master)
➜ freen_new_sanctuary_asylum git:(master) bundle exec rake db:drop
Dropped database 'new_sanctuary_asylum_development'
Dropped database 'new_sanctuary_asylum_test'
➜ freen_new_sanctuary_asylum git:(master) bundle exec rake db:setup
Created database 'new_sanctuary_asylum_development'
Created database 'new_sanctuary_asylum_test'