start new:
tmux
start new with session name:
tmux new -s myname
Custom recipe to get OS X 10.9 Mavericks running from scratch, setup applications and developer environment. I use this gist to keep track of the important software and steps required to have a functioning system after a semi-annual fresh install.
The software selected is software that is "tried and true" --- software I need after any fresh install. I often install other software not listed here, but is handled in a case-by-case basis.
Strongly opinionated set of guides to quickly setup OS X Mavericks for web development. By default OS X hides stuff that normal people don't need to see. These settings are better defaults for developers.
I don't want: any sounds, annoying confirmation dialogs, hidden extensions, superflous animations, unnecessary things running like Dashboard, Notification center or Dock(Alfred/spotlight works better for me).
These are my opinions. Read this document through and pick up the good parts to your preferences.
#!/bin/sh | |
# Make sure to: | |
# 1) Name this file `backup.sh` and place it in /home/ubuntu | |
# 2) Run sudo apt-get install awscli to install the AWSCLI | |
# 3) Run aws configure (enter s3-authorized IAM user and specify region) | |
# 4) Fill in DB host + name | |
# 5) Create S3 bucket for the backups and fill it in below (set a lifecycle rule to expire files older than X days in the bucket) | |
# 6) Run chmod +x backup.sh | |
# 7) Test it out via ./backup.sh |
#!/bin/sh | |
set -e | |
HOST=localhost | |
DB=test-entd-products | |
COL=asimproducts | |
S3PATH="s3://mongodb-backups-test1-entd/$DB/$COL/" | |
S3BACKUP=$S3PATH`date +"%Y%m%d_%H%M%S"`.dump.gz | |
S3LATEST=$S3PATH"latest".dump.gz | |
/usr/bin/aws s3 mb $S3PATH |
http://stackoverflow.com/questions/22667401/postgres-json-data-type-rails-query | |
http://stackoverflow.com/questions/40702813/query-on-postgres-json-array-field-in-rails | |
#payload: [{"kind"=>"person"}] | |
Segment.where("payload @> ?", [{kind: "person"}].to_json) | |
#data: {"interest"=>["music", "movies", "programming"]} | |
Segment.where("data @> ?", {"interest": ["music", "movies", "programming"]}.to_json) | |
Segment.where("data #>> '{interest, 1}' = 'movies' ") | |
Segment.where("jsonb_array_length(data->'interest') > 1") |
FASTLANE_TEAM_ID = <your team id> | |
FASTLANE_USER = <your user email> | |
PRODUCE_APP_IDENTIFIER = com.fastlanescreencast.FastlaneScreencast | |
CERT_APP_IDENTIFIER = com.fastlanescreencast.FastlaneScreencast | |
SIGH_APP_IDENTIFIER = com.fastlanescreencast.FastlaneScreencast | |
ANDROID_KEYSTORE_KEYSTORE_NAME = FastlaneScreencast.keystore | |
ANDROID_KEYSTORE_ALIAS_NAME = fastlanescreencast | |
ANDROID_KEYSTORE_PASSWORD = supersecret |
# Set up a development environment on an Ubuntu flavored linux distribution | |
# install and sets up: | |
# rbenv, nvm, mysql, postgres, redis | |
# vscode, slack, docker, chormium, tilix, heroku, postman, beekeeper, skype, kazam, peek and more | |
# setup an rsa key | |
# Usage: | |
# install ansible 2.7+ - latest | |
## sudo apt-add-repository ppa:ansible/ansible && sudo apt update && sudo apt install ansible | |
# run the playbook: | |
## ansible-playbook webdev.yaml -K -e "email=<your@email.com>" |