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 Gmail Summary
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/sh | |
IFS=$'\n' | |
arrayEmail=(`curl -u username:password --silent "https://mail.google.com/mail/feed/atom" | sed -n '/<author>/,/<\/author>/p' | grep -a "email" | sed -e "s/\<email>//g">let Emails=${#arrayEmail[*]} | |
arraySubject=(`curl -u username:password --silent "https://mail.google.com/mail/feed/atom" | grep -a "title" | grep -v 'Gmail - Inbox for' | sed -e "s/\<title>//g" | s> | |
let Subjects=${#arraySubject[*]} | |
i=1 | |
m=0 |
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 Gmail Unread
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/env python -tt | |
import sys | |
import curses | |
import imaplib | |
import warnings | |
def main(): | |
imap_server = imaplib.IMAP4_SSL("imap.gmail.com",993) | |
imap_server.login('username', 'password') | |
imap_server.select('INBOX') |
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 |
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 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 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 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 '-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-' |
OlderNewer