start new:
tmux
start new with session name:
tmux new -s myname
#!/bin/bash | |
LOADING=false | |
DEBUG=/dev/null | |
usage() | |
{ | |
cat << EOF | |
usage: $0 [options] <DBNAME> | |
// 1. How to check if one array has all elements of another? | |
var importedEmails = ['[email protected]', '[email protected]'], | |
existingEmails = ['[email protected]', '[email protected]', '[email protected]']; | |
if(!_.difference(importedEmails, existingEmails).length) console.log('already imported') | |
// > already imported | |
// ********************************************************** | |
// 2. How to find what elements are common to two arrays? |
#No such file to load -- devise/confirmations_controller | |
#resque worker devise not eager loading | |
require File.expand_path('../config/application', __FILE__) | |
require 'rake/dsl_definition' | |
require 'resque/tasks' | |
Askjane::Application.load_tasks | |
task "resque:setup" => :environment do |
#! /bin/bash | |
### BEGIN INIT INFO | |
# Provides: unicorn | |
# Required-Start: $local_fs $remote_fs $network $syslog | |
# Required-Stop: $local_fs $remote_fs $network $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the unicorn web server | |
# Description: starts unicorn |