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
alias gfo='git fetch origin' | |
alias gs='git status -sb' | |
# Automatically generates the bump commit and tags | |
# Usage: bump 1.0.4 | |
function bump() { | |
echo "-- [$1] Bump commit" | |
git commit -am"Bump to $1" | |
echo "-- [$1] Tagging | |
git tag $1 |
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
# Search on the current directory a matching file | |
# Find all files containing the args | |
# Usage: ff sample | |
function ff() { | |
find . -print |grep -i "$@" | |
} |
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/bash | |
#Usage: bash extract_emails.sh file.txt output.txt | |
perl -ne'if(/[\w\.\-\_]+@([\w\-\_]+\.)+[A-Za-z]{2,4}/g){print "$&\n"}' $1 | sort | uniq > $2 |
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
from xlrd import open_workbook | |
class ExcelParser(object): | |
def excel_to_list(self, file_path): | |
wb = open_workbook(file_path) | |
rows = [] | |
for sheet in wb.sheets(): |
OlderNewer