start new:
tmux
start new with session name:
tmux new -s myname
#!/usr/bin/env bash | |
set -Eeuo pipefail | |
trap cleanup SIGINT SIGTERM ERR EXIT | |
script_dir=$(cd "$(dirname "${BASH_SOURCE[0]}")" &>/dev/null && pwd -P) | |
usage() { | |
cat <<EOF | |
Usage: $(basename "${BASH_SOURCE[0]}") [-h] [-v] [-f] -p param_value arg1 [arg2...] |
# db/migrate/00000000000000_enable_uuid.rb | |
class EnableUuid < ActiveRecord::Migration[5.0] | |
def change | |
execute 'create extension "uuid-ossp"' | |
enable_extension 'uuid-ossp' | |
end | |
end |
#!ruby | |
# Requirements: | |
# brew install trash | |
casks_path = '/opt/homebrew-cask/Caskroom' | |
class Version < Array | |
def initialize s | |
super(s.split('.').map { |e| e.to_i }) |
import java.io.*; | |
public class PrevaylerJr { | |
public static interface Command extends Serializable { | |
Object executeOn(Object system); | |
} | |