Let's say you want to host domains first.com and second.com.
Create folders for their files:
Important
These benchmark results are outdated.
Check out our blog post for the latest benchmark results.
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "io/ioutil" | |
| "log" | |
| "net/http" | |
| "os" | |
| "time" |
| #!/usr/bin/env bash | |
| git branch -r | grep -v '\->' | while read remote; do git branch --track "${remote#origin/}" "$remote"; done | |
| git fetch --all | |
| git pull --all |
Short link to this page: http://caseywatts.com/ptt
Other gists & tricks: http://caseywatts.com/gists-and-tricks
Unrelated update: my book is out! Debugging Your Brain is an applied psychology / self-help book
Add Page...PTT (push to talk) or whatever you'd like (maybe short so it stays on your bookmarks toolbar)Next.js, Nginx with Reverse proxy, SSL certificate
| package main | |
| import ( | |
| "fmt" | |
| "log" | |
| "strconv" | |
| "github.com/miekg/dns" | |
| ) |
###Install & configure AWS CLI tools
$ sudo pip install awscli
$ aws configure
| // install solr client package: `npm install solr --save` | |
| var solr = require( 'solr-client' ); | |
| // client connects to solr host | |
| var client = solr.createClient({ | |
| host : host, | |
| port : port, | |
| core : core, | |
| path : path, | |
| agent : agent, |
| /* ******************************************************************************************* | |
| * THE UPDATED VERSION IS AVAILABLE AT | |
| * https://github.com/LeCoupa/awesome-cheatsheets | |
| * ******************************************************************************************* */ | |
| // 0. Synopsis. | |
| // http://nodejs.org/api/synopsis.html |