http://nvie.com/posts/a-successful-git-branching-model/ (Classic)
http://mikeeverhart.net/git/simplified-git-branching-model/
http://blogpro.toutantic.net/2012/01/02/another-git-branching-model/
https://confluence.oceanobservatories.org/display/CIDev/GitHub+Adoption+and+Git+Branching
http://blog.plataformatec.com.br/2011/04/a-successful-git-branching-model/
https://www.atlassian.com/git/workflows#!workflow-feature-branch
http://www.slideshare.net/lemiorhan/git-branching-model
http://drewfradette.ca/a-simpler-successful-git-branching-model/
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 humanize_time = function(time){ | |
return time > 9 ? time : "0"+time; | |
} | |
var milliseconds = 17916; | |
date = new Date(milliseconds); | |
humanize_time(date.getUTCMinutes()) + ':' + humanize_time(date.getUTCSeconds()); | |
nowadays: 00:17 | |
expected: 00:17 |
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 | |
### BEGIN INIT INFO | |
# Provides: nginx | |
# Required-Start: $all | |
# Required-Stop: $all | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
# Short-Description: starts the nginx web server | |
# Description: starts nginx using start-stop-daemon |
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
address=/dev/127.0.0.1 | |
listen-address=127.0.0.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
$ sudo apt-get install libpcre3 libpcre3-dev libssl-dev | |
$ cd /tmp | |
$ wget http://nginx.org/download/nginx-1.2.9.tar.gz | |
$ tar xvzf nginx-1.2.9.tar.gz | |
$ cd nginx-1.2.9$ ./configure --prefix='/opt/nginx' --with-http_ssl_module --with-cc-opt='-Wno-error' --with-http_stub_status_module | |
$ make && sudo make install | |
$ sudo wget https://gist.github.com/dukex/5881970/raw/985fbfaf2c0b496bd4ad28896c41008fa334e979/nginx -O /etc/init.d/nginx | |
$ chmod +x /etc/init.d/nginx | |
$ sudo service nginx start |
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 casper = require("casper").create(), | |
viewportSizes = [ | |
[320,480], | |
[320,568], | |
[600,1024], | |
[1024,768], | |
[1280,800], | |
[1440,900] | |
], | |
url = casper.cli.args[0], |
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 | |
n=0 | |
cat $1 | while read line; do | |
n=`expr $n + 1` | |
if [[ $line == *"$2"* ]] ; then | |
echo "LINHA $n: $line" | |
fi | |
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 removeSugestions = function(){ | |
var x = document.querySelectorAll(".ego_x") | |
for(var i = 0; i < x.length; i++){ | |
x[i].click() | |
} | |
var e = document.querySelectorAll("[name=xout_reason][value=not_interested]") | |
for(var j = 0; j< e.length; j++){ | |
e[j].click() | |
} |
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 xpto | |
import ( | |
"fmt" | |
"io/ioutil" | |
"net/http" | |
"net/http/httptest" | |
"strings" | |
"testing" | |
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
### Keybase proof | |
I hereby claim: | |
* I am dukex on github. | |
* I am dukex (https://keybase.io/dukex) on keybase. | |
* I have a public key whose fingerprint is D795 DD77 98F1 2DD8 0C8C B000 C326 7706 5124 BF2B | |
To claim this, I am signing this object: |