Skip to content

Instantly share code, notes, and snippets.

@ilyaruby
ilyaruby / create_psql_ramdisk_dbs.sh
Created July 13, 2017 07:18
Script to create a ramdisk postgreSQL database
#!/bin/bash
sudo mkdir /run/postgresql 2>/dev/null
sudo chown postgres.postgres /run/postgresql
[ `whoami` = postgres ] || exec sudo -u postgres -g postgres -s <<HEREDOC
echo SUDOING
cd /dev/shm
mkdir /dev/shm/postgresql
echo initializing db
initdb --locale=en_GB.UTF-8 -D /dev/shm/postgresql 1> /dev/null
The PGconn, PGresult, and PGError constants are deprecated, and will be
removed as of version 1.0.
You should use PG::Connection, PG::Result, and PG::Error instead, respectively.
Called from /home/user/.rvm/gems/ruby-2.3.1@potok/gems/activesupport-5.0.0.rc2/lib/active_support/dependencies.rb:259:in `load_dependency'
Run options: include {:focus=>true, :last_run_status=>"failed"}
Randomized with seed 21832
FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF2017-07-12T09:31:03.650Z 26352 TID-749nc ERROR: wrong number of arguments (given 2, expected 1)
@ilyaruby
ilyaruby / example.txt
Created July 12, 2017 09:16
Failures
./spec/acceptance/resumes_spec.rb[1:1:1] | failed | 0.17699 seconds |
./spec/acceptance/resumes_spec.rb[1:2:1] | failed | 0.65453 seconds |
./spec/acceptance/resumes_spec.rb[1:3:1] | failed | 0.91787 seconds |
./spec/controllers/analytics/declination_controller_spec.rb[1:1:1] | failed | 1.41 seconds |
./spec/controllers/analytics/efficiency_controller_spec.rb[1:2:1] | failed | 0.59922 seconds |
./spec/controllers/analytics/flow_controller_spec.rb[1:1:1] | failed | 0.19287 seconds |
./spec/controllers/analytics/flow_controller_spec.rb[1:1:2] | failed | 0.2091 seconds |
./spec/controllers/analytics/sources_controller_spec.rb[1:1:1] | failed | 0.16692 seconds |
./spec/controllers/analytics/sources_controller_
/*
* robot.js
*
* You'll need three keys in order to unlock the
* Algorithm: the red key, the green key, and the
* blue key. Unfortunately, all three of them are
* behind human-proof barriers.
*
* The plan is simple: reprogram the maintenance
* robots to grab the key and bring it through