Skip to content

Instantly share code, notes, and snippets.

@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'
@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 / 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 / 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 / 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 / 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 / puma-fails-to-start-bc-of-syntax-error.txt
Created February 15, 2016 14:21
Syntax error means puma can't start
! Unable to load application: SyntaxError: /vagrant/app/models/order.rb:22: syntax error, unexpected end-of-input, expecting keyword_end
/usr/local/rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/activesupport-5.0.0.beta1/lib/active_support/dependencies.rb:492:in `load': /vagrant/app/models/order.rb:22: syntax error, unexpected end-of-input, expecting keyword_end (SyntaxError)
from /usr/local/rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/activesupport-5.0.0.beta1/lib/active_support/dependencies.rb:492:in `block in load_file'
from /usr/local/rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/activesupport-5.0.0.beta1/lib/active_support/dependencies.rb:682:in `new_constants_in'
from /usr/local/rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/activesupport-5.0.0.beta1/lib/active_support/dependencies.rb:491:in `load_file'
from /usr/local/rbenv/versions/2.2.4/lib/ruby/gems/2.2.0/gems/activesupport-5.0.0.beta1/lib/active_support/dependencies.rb:388:in `block in require_or_load'
from /usr/local/rbenv/versi
@freen
freen / etc-default-useradd
Created January 29, 2016 12:53
/etc/default/useradd with SHELL defined
vagrant@local:~$ cat /etc/default/useradd
# Default values for useradd(8)
#
# The SHELL variable specifies the default login shell on your
# system.
# Similar to DHSELL in adduser. However, we use "sh" here because
# useradd is a low level utility and should be as general
# as possible
SHELL=/bin/bash
#
@freen
freen / useradd-default-shell-ineffectual.sh
Created January 29, 2016 12:43
Even though SHELL=/bin/bash in /etc/default/useradd, useradd fails to set the default shell as bash for new users.
vagrant@local:~$ cat /etc/default/useradd | grep SHELL
# The SHELL variable specifies the default login shell on your
SHELL=/bin/bash
vagrant@local:~$ sudo useradd -D
GROUP=100
HOME=/home
INACTIVE=-1
EXPIRE=
SHELL=/bin/bash
SKEL=/etc/skel
@freen
freen / gist:c88d2da05c10cec6b33e
Created November 15, 2014 00:09
homebrew_php54-http_install_failure_verbose_make_log.txt
==> Installing php54-http from homebrew/homebrew-php
==> Downloading http://pecl.php.net/get/pecl_http-2.1.2.tgz
Already downloaded: /Library/Caches/Homebrew/php54-http-2.1.2.tgz
==> Verifying php54-http-2.1.2.tgz checksum
tar xf /Library/Caches/Homebrew/php54-http-2.1.2.tgz
==> PHP_AUTOCONF="/usr/local/opt/autoconf/bin/autoconf" PHP_AUTOHEADER="/usr/local/opt/autoconf/bin/autoheader" /usr/local/Cellar/php54/5.4.33/bin/phpize
Configuring for:
PHP Api Version: 20100412
Zend Module Api No: 20100525
Zend Extension Api No: 220100525