I hereby claim:
- I am pcanterini on github.
- I am pedrobr (https://keybase.io/pedrobr) on keybase.
- I have a public key ASBq_MMkkZTFgkbWrj2VKieWUSg5oXZuWap53VouW49OKAo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
git clone https://github.com/username/username.github.io.git | |
git checkout source | |
Then we need to setup the deploy directory. | |
mkdir _deploy | |
cd _deploy | |
git init | |
git remote add -t master -f origin https://github.com/username/username.github.io.git | |
Done! Now we can make changes in source branch and use rake gen_deploy as usual. |
#!/bin/bash | |
# Delete all containers | |
docker rm $(docker ps -a -q) | |
# Delete all images | |
docker rmi -f $(docker images -q) |
{ | |
"updated_at": "2016-10-19T20:16:55Z", | |
"type": "ts", | |
"tracks": [{ | |
"url_hash": "fc88ab7623ceb58a7ee77a7ea2f077462ab39d725645881e02a4308566d52719", | |
"url": "http://bleacherreport.com/articles/2670568-2016-17-nba-season-preview-predicting-who-will-be-this-years-breakout-star", | |
"updated_at": "2016-10-19T15:42:01Z", | |
"tag": { | |
"unique_name": "nba", | |
"tag_id": 19, |
##Setup your server (this would ideally be done with automated provisioning)
npm install -g forever
##Install flightplan
npm install -g flightplan
npm install flightplan --save-dev
// Prototypal OO with ES6 | |
// Eric Elliott's example | |
let animal = { | |
animalType: 'animal', | |
describe () { | |
return `An ${this.animalType}, with ${this.furColor} fur, | |
${this.legs} legs, and a ${this.tail} tail.`; | |
} |
// Load configurations | |
// if test env, load example file | |
var env = process.env.NODE_ENV || 'development' | |
, config = require('./config/config')[env] | |
, mongoose = require('mongoose') |
#!/bin/bash | |
DOMAIN_ID="" | |
RECORD_ID="" | |
IP="`curl http://icanhazip.com/`" | |
curl -H 'X-DNSimple-Token: email:account_token' \ | |
-H 'Accept: application/json' \ | |
-H 'Content-Type: application/json' \ | |
-X PUT \ |