(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
:
{ | |
"requireCurlyBraces": [ "if", "else", "for", "while", "do" ], | |
"requireSpaceAfterKeywords": ["if", "else", "for", "while", "do", "switch", "return", "try", "catch"], | |
"requireSpacesInFunctionExpression": { | |
"beforeOpeningCurlyBrace": true | |
}, | |
"disallowSpacesInFunctionExpression": { | |
"beforeOpeningRoundBrace": true | |
}, | |
"requireSpacesInFunctionDeclaration": {"beforeOpeningCurlyBrace": true}, |
I hereby claim:
To claim this, I am signing this object:
#!/usr/bin/env ruby | |
# Originally taken from https://gist.github.com/chriskk/3168935 | |
# Only tested with ruby 1.9.3p551 (can be installed following the instructions at http://poincare101.herokuapp.com/post/25) | |
# It also requires 'Trollop' to be installed (See http://trollop.rubyforge.org/) | |
# Finally change this script permission to make it executable (chmod 755 memcache.rb) | |
require 'net/telnet' | |
require 'trollop' | |
opts = Trollop::options do | |
banner <<-EOS |
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