This file contains hidden or 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
<h3>Why Database Technology Matters</h3> | |
<p>Sometimes I get so down in the weeds of database technology, I forget why I think databases are so fascinating to me, why I found them so important to begin with. ACID. Latency, bandwidth, durability, performance, scalability, bits and bytes. Virtual this, cloud that. Blah blah blah. Who the fuck cares?</p> | |
<p>I care.</p> | |
<p>Dear lord I care. I care so much it hurts.</p> | |
<p>"A database is an organized collection of data, today typically in digital form." -Wikipedia</p> |
This file contains hidden or 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
grep -o "devstreaming.*HD.mov" wwdc_source | sed 's/-HD.mov/.pdf/' > wwdc_PDF_urls && for URL in `cat wwdc_PDF_urls`; do curl -OL $URL; done |
This file contains hidden or 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
if reply.Result != nil { | |
if info, ok := reply.Result.(btcjson.InfoResult); ok { | |
fmt.Println("balance =", info.Balance) | |
} // else {...} | |
} |
This file contains hidden or 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
{ | |
"interface": ":4984", | |
"adminInterface": ":4985", | |
"persona": { | |
"origin": "http://myaweomeserver.com:4984/" | |
}, | |
"log": ["CRUD", "Auth", "HTTP+"], | |
"databases": { | |
"couchchat": { | |
"server": "http://localhost:8091", |
This file contains hidden or 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
{ | |
"interface": ":4984", | |
"adminInterface": ":4985", | |
"log": ["CRUD", "Auth", "HTTP+"], | |
"databases": { | |
"someapp": { | |
"server": "http://localhost:8091", | |
"bucket": "someapp" | |
}, | |
"couchchat": { |
This file contains hidden or 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
{ | |
"interface": ":4984", | |
"adminInterface": ":4985", | |
"log": ["CRUD", "Auth", "HTTP+"], | |
"databases": { | |
"sync_gateway": { | |
"server": "http://localhost:8091", | |
"bucket": "sync_gateway" | |
}, | |
"another-app": { |
This file contains hidden or 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
sync_gateway -personaOrigin="http://localhost:4984/" myconfig.json | |
23:10:11.849476 Opening Couchbase database couchchat on <http://localhost:8091> | |
23:10:11.930319 Connected to <http://localhost:8091>, pool default, bucket couchchat | |
23:10:11.951226 Auth: Saved user:: {"admin_channels":null,"all_channels":null,"disabled":true} | |
23:10:11.951237 Reset guest user to config | |
23:10:11.952005 Starting auth server on :4985 | |
23:10:11.952351 Starting server on :4984 ... | |
23:18:09.899723 HTTP: GET /couchchat/_local/fbff5a95fd68dd1257bf38f2533294fc2b116788 | |
23:18:09.900294 HTTP: GET /couchchat/_local/b240451141abfa19e44fcc02ba9a46ea0b096f34 |
This file contains hidden or 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/env ruby | |
# Giants' Shoulders Trodden Upon | |
# Based on the xcode auto-versioning script for Subversion by Axel Andersson | |
# Updated for git by Marcus S. Zarra and Matt Long | |
# Converted to ruby by Abizer Nasir | |
# Improved? By Jonathan Zhan | |
# Appends the number of commits on the current branch and a short git hash to the version number set in Xcode. |
This file contains hidden or 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
# turn !!!s into build warnings and generate/update README | |
# -------------------------------------------------------- | |
HIGHPRIORITY="!!!:" | |
LOWERPRIORITY="TODO:|\?\?\?:" | |
# this allows us to make sure each Github link works, regardless of branch switches | |
CURRENTBRANCH=`cat .git/HEAD | sed 's|ref: refs/heads/||'` | |
VERSIONSTRING=$(/usr/libexec/PlistBuddy -c "Print CFBundleShortVersionString" "${PROJECT_DIR}/${INFOPLIST_FILE}") | |
# put notes (and temporary files to be deleted) here | |
mkdir -p $PROJECT_NAME/tmp |
This file contains hidden or 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 ( | |
"log" | |
"net/http" | |
"os" | |
) | |
var Home = os.Getenv("HOME") | |
var RequestsLogPath = Home + "/requests_log" |