start new:
tmux
start new with session name:
tmux new -s myname
| .... | |
| 1) test get latest timestamp of user for a channel (Exchat.UserReadMessageRepoTest) | |
| test/models/user_read_message_repo_test.exs:6 | |
| ** (Postgrex.Error) ERROR (deadlock_detected): deadlock detected | |
| Process 45728 waits for ShareLock on transaction 7900; blocked by process 45727. | |
| Process 45727 waits for ShareLock on transaction 7898; blocked by process 45728. | |
| stacktrace: | |
| (ecto) lib/ecto/adapters/sql.ex:405: Ecto.Adapters.SQL.struct/6 |
| #!/bin/sh | |
| # Usage: install_elixir.sh 1.2.0-rc.1 | |
| wget https://github.com/elixir-lang/elixir/releases/download/v$1/Precompiled.zip -O ~/repo/pre-elixir/Precompiled.zip | |
| rm -r ~/repo/pre-elixir/Precompiled | |
| unzip -o ~/repo/pre-elixir/Precompiled.zip -d ~/repo/pre-elixir/Precompiled | |
| # When installing precompiled elixir at the first time | |
| # export PATH=$HOME/repo/pre-elixir/Precompiled/bin:$PATH |
| -module(date_util). | |
| -compile(export_all). | |
| epoch() -> | |
| now_to_seconds(now()) | |
| . | |
| epoch_hires() -> | |
| now_to_seconds_hires(now()) | |
| . |
| LOADING=false | |
| usage() | |
| { | |
| cat << EOF | |
| usage: $0 [options] <DBNAME> | |
| OPTIONS: | |
| -h Show this help. | |
| -l Load instead of export |
| var collectionNames = db.getCollectionNames(); | |
| collectionNames.forEach(function(n) { print(n + ": " + db[n].count()); }); |
I hereby claim:
To claim this, I am signing this object:
| namespace :grape do | |
| desc 'Print compiled grape routes' | |
| task :routes => :environment do | |
| API.routes.each do |route| | |
| puts route | |
| end | |
| end | |
| end |
| # unicorn_rails -c /data/github/current/config/unicorn.rb -E production -D | |
| rails_env = ENV['RAILS_ENV'] || 'production' | |
| # 16 workers and 1 master | |
| worker_processes (rails_env == 'production' ? 16 : 4) | |
| # Load rails+github.git into the master before forking workers | |
| # for super-fast worker spawn times | |
| preload_app true |
| # config/initializers/label_required.rb | |
| module ActionView | |
| module Helpers | |
| # For rails 4 | |
| if ActionPack::VERSION::STRING >= '4' | |
| module Tags | |
| class Label | |
| def render_with_required(&block) |