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
// setTimeout Looping | |
function loop(fn,time){ | |
setTimeout(fn(),time); | |
loop(fn(),time); | |
} |
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.js app under nginx | |
upstream node { | |
server 127.0.0.1:8001; | |
} | |
server { | |
listen 80; | |
server_name node; |
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/bash | |
# Author: Murilo Santana | |
# Google url shortener bash script | |
# For information about the url shortener app: | |
# http://ggl-shortener.appspot.com/instructions/ | |
app='http://ggl-shortener.appspot.com/?url=' | |
url="$1" | |
protocol=`echo "$1" | sed -e "/^http:\/\//g"` |
NewerOlder