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
*~ | |
.DS_Store |
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 bash | |
git config --global user.name "$1" | |
git config --global user.email "$2" | |
git config --global core.excludesfile ~/.gitignore | |
git config --global log.date iso | |
git config --global format.pretty "%C(magenta)%h %C(cyan)%cd %Creset%C(reverse)%s%Creset <%ae>" | |
git config --global diff.context 0 | |
git config --global alias.st status | |
git config --global alias.lo "log -n9" |
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 bash | |
git subtree push --prefix ${2-"public"} ${1-"origin"} gh-pages |
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 bash | |
xdg-open $@ > /dev/null 2>&1 & |
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 bash | |
if [[ $1 == -f ]]; then | |
format="$2" | |
shift 2 | |
fi | |
for file in $@; do | |
iconv -f ${format-"windows-1252"} -t "UTF-8" "$file" > "${file%.*}.utf8.$(echo $file |awk -F . '{if (NF>1) {print $NF}}')" | |
done |
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 bash | |
genisoimage -v -r -iso-level 4 $@ |
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 listAllUsedClassNames () { | |
var classNames = {}; | |
Array.prototype.forEach.call(document.querySelectorAll("*"), function (element) { | |
if (typeof element.className === "string") { | |
element.className.split(" ").forEach(function (className) { | |
if (className) { | |
classNames[className] = true; | |
} | |
}); | |
}; |
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
while true ; do echo ahoi | nc -l -p 8080 ; done |
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 bash | |
for a_file in *;do mv -v $a_file `echo $a_file | tr [:upper:] [:lower:]` ;done; |
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
#export CLICOLOR=1 | |
#export LSCOLORS=gxBxhxDxfxhxhxhxhxcxcx | |
export PS1="\u@\H:\w \$ " | |
export TIME_STYLE=long-iso | |
alias l='ls -CF' | |
alias la='ls -A' | |
alias ll='ls -alF' |
OlderNewer