This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// first see current remotes | |
git remote -v | |
// remote unwanted remote. name is often set to 'heroku'. | |
git remote rm remote_name | |
// add new remote to heroku | |
heroku git:remote -a heroku_instance_name |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// node creator recommends source compile to install node. Don't use package managers | |
// copy desired node version. Pre-release at git and stable at node home site. | |
git clone git://github.com/ry/node.git | |
cd node | |
./configure | |
make | |
sudo make install |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
num=1 | |
for file in *.jpg; do | |
mv "$file" "rename_shit$(printf "%u" $num).jpg" | |
let num=$num+1 | |
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var http = require('http'); | |
var numbers = { | |
one: 'one', | |
two: 'two', | |
three: 'three' | |
}; | |
function start(callback2, callback3){ | |
console.log('starting countdown'); |