Skip to content

Instantly share code, notes, and snippets.


Roman Efimov romaonthego

View GitHub Profile
romaonthego / gist:859697
Created Mar 8, 2011
Local IP on Debian/Ubuntu
View gist:859697
ifconfig|grep 'inet addr'|awk '{print $2}'|sed 's/addr://g'
romaonthego / gist:823233
Created Feb 11, 2011
Remove .DS_Store (Mac OS X)
View gist:823233
sudo find /WebServers -name ".DS_Store" -depth -exec rm {} \;
romaonthego / genpassword
Created Feb 11, 2011
Bash script: genpassword
View genpassword
charspool=('a' 'b' 'c' 'd' 'e' 'f' 'g' 'h' 'i' 'j' 'k' 'l' 'm' 'n' 'o' 'p'
'q' 'r' 's' 't' 'u' 'v' 'w' 'x' 'y' 'z' '0' '1' '2' '3' '4' '5' '6' '7'
'8' '9' '0' 'A' 'B' 'C' 'D' 'E' 'F' 'G' 'H' 'I' 'J' 'K' 'L' 'M' 'N' 'O'
'P' 'Q' 'R' 'S' 'T' 'U' 'V' 'W' 'X' 'Y' 'Z' '-' '_');
if [ $# -lt 1 ]; then
You can’t perform that action at this time.