Install Homebrew
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
Install rsync
brew install https://raw.github.com/Homebrew/homebrew-dupes/master/rsync.rb
var fs = require('fs'), | |
request = require('request'); | |
var download = function(uri, filename, callback){ | |
request.head(uri, function(err, res, body){ | |
console.log('content-type:', res.headers['content-type']); | |
console.log('content-length:', res.headers['content-length']); | |
request(uri).pipe(fs.createWriteStream(filename)).on('close', callback); | |
}); |
rm -rf ~/.nvm | |
rm -rf ~/.npm | |
rm -rf ~/.bower | |
go to /usr/local/lib and delete any node and node_modules | |
go to /usr/local/include and delete any node and node_modules directory | |
if you installed with brew install node, then run brew uninstall node in your terminal | |
check your Home directory for any "local" or "lib" or "include" folders, and delete any "node" or "node_modules" from there | |
go to /usr/local/bin and delete any node executable | |
You may need to do the additional instructions as well: |
chrome://net-internals/#dns | |
sudo killall -HUP mDNSResponder |
# Load up Terminal (Applications > Utilities > Terminal.app) and type the following. | |
sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist | |
# To turn it back on, just do the opposite: | |
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist |
sudo subl /private/etc/hosts |
#!/bin/bash | |
ls -1 | while read d | |
do | |
test -d "$d" || continue | |
echo $d | |
(cd $d ; echo "In ${PWD}") | |
done |
sudo add-apt-repository ppa:webupd8team/unstable && sudo apt-get update | |
sudo apt-get install mc |
Example source: http://css-tricks.com/perfect-full-page-background-image/
A Pen by Pavel Binar on CodePen.