Tested in Mac OS X: super == command
Open/Goto
- super+t: go to file
- super+ctrl+p: go to project
- super+r: go to methods
| # Usage: | |
| # source iterm2.zsh | |
| # iTerm2 tab color commands | |
| # https://iterm2.com/documentation-escape-codes.html | |
| if [[ -n "$ITERM_SESSION_ID" ]]; then | |
| tab-color() { | |
| echo -ne "\033]6;1;bg;red;brightness;$1\a" | |
| echo -ne "\033]6;1;bg;green;brightness;$2\a" |
| Function | Shortcut |
|---|---|
| previous tab | ⌘ + left arrow |
| next tab | ⌘ + right arrow |
| go to tab | ⌘ + number |
| go to window | ⌘ + Option + Number |
| go to split pane by direction | ⌘ + Option + arrow |
| go to split pane by order of use | ⌘ + ] , ⌘ + [ |
| split window horizontally (same profile) | ⌘ + D |
| split window vertically (same profile) | ⌘ + d |
| #!/bin/bash | |
| CONFIG=/etc/haproxy/haproxy.cfg | |
| DAEMON=$(which haproxy) | |
| function get_pid() { | |
| PID=$(ps aux | grep haproxy | grep -v grep | awk '{print $2}') | |
| } | |
| function get_status() { |
| # Supervisord auto-start | |
| # | |
| # description: Auto-starts supervisord | |
| # processname: supervisord | |
| # pidfile: /var/run/supervisord.pid | |
| PATH=/sbin:/usr/sbin:/bin:/usr/bin | |
| NAME=supervisord | |
| DESC="supervisod is a system for controlling process state" | |
| SUPERVISORD=/usr/local/bin/supervisord |
| #!/usr/bin/env bash | |
| uninstall() { | |
| list=`gem list --no-versions` | |
| for gem in $list; do | |
| gem uninstall $gem -aIx | |
| done | |
| gem list | |
| gem install bundler | |
| } |
| .factory('TokenHandler', function() { | |
| var tokenHandler = {}; | |
| var token = "none"; | |
| tokenHandler.set = function( newToken ) { | |
| token = newToken; | |
| }; | |
| tokenHandler.get = function() { | |
| return token; |
| If you see... | |
| Warning: Unbrewed dylibs were found in /usr/local/lib. | |
| If you didn't put them there on purpose they could cause problems when | |
| building Homebrew formulae, and may need to be deleted. | |
| Unexpected dylibs: | |
| /usr/local/lib/libmacfuse_i32.2.dylib /usr/local/lib/libmacfuse_i64.2.dylib /usr/local/lib/libosxfuse_i32.2.dylib /usr/local/lib/libosxfuse_i64.2.dylib | |
| Warning: Unbrewed .la files were found in /usr/local/lib. | |
| If you didn't put them there on purpose they could cause problems when |
| @import compass | |
| $icons: sprite-map("icons/*.png") | |
| $icons-hd: sprite-map("icons-hd/*.png") | |
| i | |
| background: $icons | |
| display: inline-block | |
| @media (-webkit-min-device-pixel-ratio: 1.5), (min-resolution: 144dpi) | |
| background: $icons-hd |