#Create bitbucket branch
##Create local branch
$ git checkout -b sync
Switched to a new branch 'sync'
$ git branch
master
* sync
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <link rel="stylesheet" href="style.css"> | |
| </head> | |
| <body> | |
| <svg id="defs"> | |
| <defs> | |
| <linearGradient id="gradBlue" x1="0%" y1="0%" x2="100%" y2="0%"> |
| Latency Comparison Numbers (~2012) | |
| ---------------------------------- | |
| L1 cache reference 0.5 ns | |
| Branch mispredict 5 ns | |
| L2 cache reference 7 ns 14x L1 cache | |
| Mutex lock/unlock 25 ns | |
| Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
| Compress 1K bytes with Zippy 3,000 ns 3 us | |
| Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
| Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
#Create bitbucket branch
##Create local branch
$ git checkout -b sync
Switched to a new branch 'sync'
$ git branch
master
* sync
Install Python
$ brew install readline sqlite gdbm
$ brew install python --universal --framework
$ python --version
Python 2.7
Symlinks...
| @RequestMapping(value = "handle", method = RequestMethod.GET) | |
| public void handle(HttpServletRequest request, HttpServletResponse response) throws IOException{ | |
| XContentBuilder builder = XContentFactory.contentBuilder(XContentType.JSON); | |
| SearchResponse searchResponse = buildRequest(request).execute().actionGet(); | |
| builder.startObject(); |
| #!/bin/sh | |
| # | |
| # a simple way to parse shell script arguments | |
| # | |
| # please edit and use to your hearts content | |
| # | |
| ENVIRONMENT="dev" |
| # | |
| # "THE BEER-WARE LICENSE": | |
| # <truemped at goggle.com> wrote this file. As long as you retain this notice you | |
| # can do whatever you want with this stuff. If we meet some day, and you think | |
| # this stuff is worth it, you can buy me a beer in return Daniel Truemper | |
| # | |
| import time | |
| import zmq |
| // $ 6g echo.go && 6l -o echo echo.6 | |
| // $ ./echo | |
| // | |
| // ~ in another terminal ~ | |
| // | |
| // $ nc localhost 3540 | |
| package main | |
| import ( |
| #!/bin/bash | |
| if [ ! -e "$1" ]; then | |
| echo "Error: Need a file to post" | |
| echo "Usage: curl_post file_to_post.file" | |
| exit 1 | |
| fi | |
| if [ -c "$1" ] | |
| then |