View vow
This file contains 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/bash | |
if [[ -z "$1" ]]; then | |
echo 'missing search' | |
else | |
vim $(ag --html --js --css --py -l "$1") -c /"$1" | |
fi |
View shadiff
This file contains 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/bash | |
if [[ -z "$2" ]]; then | |
echo 'Shows commits exclusive to a branch (from master)' | |
echo 'sha_diff [new_branch] [old_branch] (ex: sha_diff tp1234_dep_int master)' | |
else | |
git fetch && git log $1 ^origin/$2 --no-merges --oneline | |
fi |
View mmt
This file contains 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/bash | |
if [[ -z "$1" ]]; then | |
echo 'Merges master to branches' | |
echo 'mmt [branch],[branch],[branch]' | |
else | |
git fetch | |
IFS=', ' read -a array <<< "$1" | |
for((i=0;i<${#array[@]};i++)) | |
do | |
echo '-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-' |
View clean
This file contains 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/bash | |
if [[ -z "$2" ]]; then | |
echo 'Deletes remote and local branch(es)' | |
echo 'clean [remote] [feature,feature] (ex: clean origin tp1234,tp2345)' | |
else | |
read -p "Press [Enter] to perform the remote actions (CTRL-C to stop)..." | |
IFS=', ' read -a array <<< "$2" | |
git checkout master | |
for((i=0;i<${#array[@]};i++)) |
View deadbranches
This file contains 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
git checkout master && git fetch && git merge origin/master && git remote prune origin && echo 'Dead branches:' && git branch -r --merged | grep -v master && git checkout - |
View gist:c66743742377e433933b
This file contains 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
function parse_git_branch { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/' | |
} | |
PS1="${TITLEBAR}\ | |
$WHITE[$LIGHT_GRAY\w$GREEN\$(parse_git_branch)$WHITE]\ | |
$GREEN\$ " | |
PS2='> ' | |
PS4='+ ' | |
} |
View irssi
This file contains 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
settings = { | |
core = { | |
real_name = "dep"; | |
user_name = "dep"; | |
nick = "dp"; | |
log_close_string = "--- Log closed %a %b %d %H:%M:%S %Y"; | |
log_timestamp = "(%H:%M) "; | |
log_day_changed = "--- Day changed %a %b %d %Y"; | |
}; | |
"fe-text" = { actlist_sort = "refnum"; }; |
View vimrc
This file contains 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
execute pathogen#infect() | |
" Inits | |
filetype off | |
au! BufRead,BufNewFile *.tmpl | |
setf tt2html | |
" fuzzyfind (https://github.com/junegunn/fzf) | |
set rtp+=~/.fzf |
View mcabberrc
This file contains 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
# server | |
set jid = user@domain.com | |
set username = user@domain.com | |
set nickname = username | |
set server = chat.server.com | |
set port = 5223 | |
set password = password_here | |
# colors | |
set color_status = white |
View eventcmd
This file contains 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
#! /usr/bin/python | |
''' | |
EVENTCMD - | |
This script is meant to respond to external 'eventcmd' calls from | |
the mcabber command-line jabber client. | |
''' | |
import sys | |
import re | |
import string |
NewerOlder