Skip to content

Instantly share code, notes, and snippets.

View codingpains's full-sized avatar

Gustavo Ortiz codingpains

View GitHub Profile
@codingpains
codingpains / gist:648004
Created October 26, 2010 22:43
Proper overlay html
<div class='unit overlay'>
<iframe class='overlay-iframe'></iframe>
<div class='unit overlay-background'></div>
<div class='unit overlay-container'>
<div class='wrapper'>
<div class='contents'>
<p>This is some random content</p>
</div>
</div>
</div>
@codingpains
codingpains / bash extract function
Created September 20, 2010 20:50
Exctract or uncompress function for bash
extract () {
if [ -f $1 ] ; then
case $1 in
*.tar.bz2) tar xvjf $1 ;;
*.tar.gz) tar xvzf $1 ;;
*.bz2) bunzip2 $1 ;;
*.rar) rar x $1 ;;
*.gz) gunzip $1 ;;
*.tar) tar xvf $1 ;;
*.tbz2) tar xvjf $1 ;;