This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# mouse support | |
set-option -g mouse-select-pane on | |
set-option -g mouse-select-window on | |
set -g mouse-utf8 on | |
set -g mouse on | |
# ctrl+a instead of ctrl+b | |
set -g prefix C-a | |
unbind C-b | |
bind C-a send-prefix |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Autojump | |
[ -f /usr/local/share/autojump/autojump.fish ]; and . /usr/local/share/autojump/autojump.fish ] | |
# [ -f /usr/local/Cellar/autojump/22.2.4/share/autojump/autojump.fish ]; and . /usr/local/Cellar/autojump/22.2.4/share/autojump/autojump.fish ] | |
# Git Branch in terminal | |
set fish_git_dirty_color red | |
set fish_git_not_dirty_color green | |
function parse_git_branch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set shell=bash | |
" this combination gives absolute number for the current line | |
set relativenumber | |
set number | |
"set statusline=%f | |
set laststatus=2 | |
set tabstop=4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# | |
# Lunarizer | |
# ========= | |
# | |
# Installation | |
# ------------ | |
# $ curl https://raw.github.com/gist/3341070/44869be7b0b7b7403465a78cde1ec3e3ce6e2788/Lunarizer > lunar; chmod +x lunar | |
# $ sudo cp lunar /usr/local/bin/lunar | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT --to-port 8080 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
<script id="${1}" type="text/x-jquery-tmpl"> | |
${2} | |
</script> | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>tmpl</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> | |
<!-- <scope>source.python</scope> --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
var ${1:Namespace} = ${1:Namespace} || {}; | |
${1:Namespace}.${2:Module} = function(options) | |
{ | |
var me = {}; | |
me.init = function() | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
me.${1} = function(${2}) | |
{ | |
${3} | |
}; | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>pub</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<snippet> | |
<content><![CDATA[ | |
var ${1} = function(${2}) | |
{ | |
${3} | |
}; | |
]]></content> | |
<!-- Optional: Set a tabTrigger to define how to trigger the snippet --> | |
<tabTrigger>priv</tabTrigger> | |
<!-- Optional: Set a scope to limit where the snippet will trigger --> |
NewerOlder