Skip to content

Instantly share code, notes, and snippets.

View mvrilo's full-sized avatar
🌳

Murilo Santana mvrilo

🌳
View GitHub Profile
// setTimeout Looping
function loop(fn,time){
setTimeout(fn(),time);
loop(fn(),time);
}
# node.js app under nginx
upstream node {
server 127.0.0.1:8001;
}
server {
listen 80;
server_name node;
@mvrilo
mvrilo / ggl.sh
Created March 28, 2010 00:27
Google url shortener bash script
#!/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"`