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
<?php | |
class Deploy { | |
// | |
// EDIT ME | |
// This will be sent as the User Agent to the Meta API. Set this as | |
// your GITHUB_USERNAME or APPLICATION_NAME | |
// Documentation: https://developer.github.com/v3/#user-agent-required | |
// |
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"); | |
function inf(i) { | |
var req = http.request({ | |
method: "GET", | |
path: "/", | |
host: "www.google.com", | |
port: 80 | |
},function() { | |
console.log(i,"Response received"); | |
inf(i+1); |
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
from ubuntu:12.04 | |
maintainer Boopathi Rajaa <me@boopathi.in> | |
# Mercurial | |
run echo 'deb http://ppa.launchpad.net/mercurial-ppa/releases/ubuntu precise main' > /etc/apt/sources.list.d/mercurial.list | |
run echo 'deb-src http://ppa.launchpad.net/mercurial-ppa/releases/ubuntu precise main' >> /etc/apt/sources.list.d/mercurial.list | |
run apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 323293EE | |
# Install dependencies | |
run apt-get update |
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
#!/usr/bin/python | |
import socket, sys | |
import urllib2, os | |
from operator import itemgetter | |
import subprocess, datetime | |
from time import strftime | |
debug = True |
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
func errorAdapter(f func(http.ResponseWriter, *http.Request) error) http.HandlerFunc { | |
return func(w http.ResponseWriter, r *http.Request) { | |
c := appengine.NewContext(r) | |
err := f(w, r) | |
if err != nil { | |
c.Errorf("Handler returned an error: %s", err) | |
http.Error(w, err.Error(), http.StatusInternalServerError) | |
} | |
} | |
} |
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
PS1='\[\e[0;31m\]$(r=$?; [[ $r == "0" ]] || echo "[$r] ")\[\e[0m\]\[\e[0;36m\]\u\[\e[0m\] \W\[\e[0;33m\]$(__git_branch)\[\e[0m\]> ' |
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
package main | |
import ( | |
"fmt" | |
"net/http" | |
"net/url" | |
"time" | |
) | |
type A struct { |
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 | |
### | |
# | |
# @usage `source set_env.sh` | |
# @desc Sets the environment for developers | |
# @install Put this file into the GO Workspace directory | |
# | |
# bash-$ ls workspace/go/ | |
# - set_env.sh* |
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
/* | |
* object.watch polyfill | |
* | |
* 2012-04-03 | |
* | |
* By Eli Grey, http://eligrey.com | |
* Public Domain. | |
* NO WARRANTY EXPRESSED OR IMPLIED. USE AT YOUR OWN RISK. | |
*/ |
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
import os | |
import os.path | |
import sys | |
from graphite.render.hashing import ConsistentHashRing | |
## Settings | |
# Absolute path to the Graphite Data Directory | |
DATA_DIR = '/data/graphite/whisper/' | |
## You need not modify anything below this |