One Paragraph of project description goes here
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
99.downto(1) do |bottles| | |
puts "#{bottles} bottle#{"s" if bottles != 1} of beer on the wall.", | |
"#{bottles} bottle#{"s" if bottles != 1} of beer.", | |
"Take one down, pass it around.", | |
"#{bottles - 1} bottle#{"s" if bottles - 1 != 1} of beer on the wall.\n\n" | |
end | |
#!/bin/sh | |
echo "Status Script Running"; | |
DATE=$(date); | |
WHO=$(who); | |
UPTIME=$(uptime); | |
#PSTREE=$(pstree) | |
RESULT=$DATE"\n"$WHO"\n"$UPTIME |
svn st | awk '$1 == "M"{print $2;}'| xargs svn diff |
for f in *; do mv "$f" `echo $f | tr ' ' '_'`; done |
/* bling.js */ | |
window.$ = document.querySelectorAll.bind(document); | |
Node.prototype.on = window.on = function (name, fn) { | |
this.addEventListener(name, fn); | |
} | |
NodeList.prototype.__proto__ = Array.prototype; |
/*! | |
* Dynamically changing favicons with JavaScript | |
* Works in all A-grade browsers except Safari and Internet Explorer | |
* Demo: http://mathiasbynens.be/demo/dynamic-favicons | |
*/ | |
// HTML5™, baby! http://mathiasbynens.be/notes/document-head | |
document.head || (document.head = document.getElementsByTagName('head')[0]); | |
function changeFavicon(src) { |
find ~/<directory> -exec file -b --mime-type {} + | sort | uniq -c | sort -nr |
ip addr show eth0 | grep inet | awk '{ print $2; }' | sed 's/\/.*$//' |
// Searches current directory recursively using extended regular expressions for Hex Codes i.e. : | |
// Single or double quote group+maybe a # sign+xdigits with a range of 6+ single or double quote group | |
grep -rE --color "(\'|\")#?[[:xdigit:]]{6,6}(\'|\")" . |