(C-x means ctrl+x, M-x means alt+x)
The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf
:
Related Setup: https://gist.github.com/hofmannsven/6814278
Related Pro Tips: https://ochronus.com/git-tips-from-the-trenches/
# activewindow.scpt - track your active window and Chrome web page on OSX | |
# USAGE: | |
# while true; do osascript activewindow.scpt | tee -a log.log; sleep 1; done | |
# LICENSE: Public Domain | |
set _url to "" | |
tell application "System Events" | |
set _app to name of first application process whose frontmost is true | |
end tell |
function brew_check() { | |
brew $2 info $1 | grep -q "Not installed" | |
} | |
function brew_install() { | |
tool=$(echo $1 | awk '{print $1}') | |
cask=$(echo $1 | awk '{print $2}') | |
brew_check $tool $cask | |
[[ $? -eq 0 ]] && echo -e "Installing $tool..." && brew $cask install $tool |
#!/bin/bash | |
# Created on 7/17/13 by Ryan Sechrest | |
# Deploys pushed branch from the origin repository to the web directory | |
if [[ (-n $1) && (-n $2) && (-n $3) ]]; then | |
# Set path to project directory | |
project_path="/var/www/domains/$2/$3" |
#!/bin/bash | |
IPT="/sbin/iptables" | |
# Server IP | |
SERVER_IP="$(ip addr show eth0 | grep 'inet ' | cut -f2 | awk '{ print $2}')" | |
# Your DNS servers you use: cat /etc/resolv.conf | |
DNS_SERVER="8.8.4.4 8.8.8.8" | |
# Allow connections to this package servers |
// please comment if you know of other BOOKS (not considering blogs just yet) on ES6 that are out or coming out
#!/bin/bash | |
# | |
# PostgreSQL Backup Script Ver 1.0 | |
# http://autopgsqlbackup.frozenpc.net | |
# Copyright (c) 2005 Aaron Axelsen <axelseaa@amadmax.com> | |
# | |
# This script is based of the AutoMySQLBackup Script Ver 2.2 | |
# It can be found at http://sourceforge.net/projects/automysqlbackup/ | |
# | |
# The PostgreSQL changes are based on a patch agaisnt AutoMySQLBackup 1.9 |
HTTP redirection, or URL redirection, is a technique of pointing one domain or address to another. There are many uses for redirection, and a few different kinds of redirection to consider.
As you create content and administrate servers, you will often find the need to redirect traffic from one place to another. This guide will discuss the different use-cases for these techniques, and how to accomplish them in Apache and Nginx.
------------ | |
Amazon (http://calculator.s3.amazonaws.com/index.html) | |
------------ | |
type price CPU RAM Disk I/O EBS opt. | |
t2.micro 10$ 1 1.0 -- Low -- | |
t1.micro 15$ 1 0.6 -- Very Low -- | |
t2.small 10$ 1 2.0 -- Low -- | |
m1.small 34$ 1 1.7 1 x 160 Low -- | |
t2.medium 41$ 2 4.0 -- Low -- | |
m3.medium 56$ 1 3.7 SSD 1 x 4 Moderate -- |