Current commit hash
git log -1 --format="%H"
Current tag
git describe --always --tag --abbrev=0
Current branch
git describe --contains --all HEAD
path d:\windows;d:\windows\system32 d: cdtools pcrestore
du --max-depth=1 -x -h / |
rpm -qa --queryformat '%{SIZE} %{NAME} %{VENDOR}\n' | sort -n |
for f in /usr/share/backgrounds/*.png | |
do | |
curl http://placehold.it/1.png -o $f | |
done |
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
var functionNames = []; | |
for (var f in window) if (window.hasOwnProperty(f) && typeof window[f] === 'function') | |
{ | |
functionNames.push(f); | |
} | |
console.log(functionNames); |
ps axo rss,cmd --sort -rss | grep httpd | head --lines 1 | awk '{print $1}' |
curl -ks http://ec2-50-17-173-58.compute-1.amazonaws.com/sitemap.xml | xpath '/urlset/url/loc/text()' 2>/dev/null | sed -E 's~http(s)?:~/\'$'\nhttp\1:~g' | grep -vE '^\s*$ ' > urls.txt |