| Android | iOS | Gen | Down max |
|---|---|---|---|
| NETWORK_TYPE_CDMA | 2G | ||
| NETWORK_TYPE_IDEN | 2G | ||
| NETWORK_TYPE_GPRS | CTRadioAccessTechnologyGPRS | 2.5G | |
| NETWORK_TYPE_EDGE | CTRadioAccessTechnologyEdge | 2.75G | |
| NETWORK_TYPE_1xRTT | CTRadioAccessTechnologyCDMA1x | 3G | |
| NETWORK_TYPE_UMTS | CTRadioAccessTechnologyWCDMA | 3G | |
| NETWORK_TYPE_EVDO_0 | CTRadioAccessTechnologyCDMAEVDORev0 | 3.5G | |
| NETWORK_TYPE_EVDO_A | CTRadioAccessTechnologyCDMAEVDORevA | 3.5G |
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
| require 'open-uri' | |
| require 'zlib' | |
| require 'yajl' | |
| # References | |
| # - https://developers.google.com/bigquery/preparing-data-for-bigquery#dataformats | |
| # - https://developers.google.com/bigquery/docs/data#nested | |
| # | |
| def type(t) |
\o/ ... for HAProxy. Recent patches to make TLS faster:
- MINOR: ssl: add DEFAULT_SSL_MAX_RECORD to set the record size at build time
- MINOR: config: make the stream interface idle timer user-configurable
- MEDIUM: stream-int: automatically disable CF_STREAMER flags after idle
- MINOR: channel: add the date of last read in the channel
- OPTIM: ssl: implement dynamic record size adjustment
- MINOR: ssl: handshake optim for long certificate chains.
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
| ubuntu@ip-10-202-152-39:~$ cat /proc/cpuinfo | |
| processor : 0 | |
| vendor_id : GenuineIntel | |
| cpu family : 6 | |
| model : 45 | |
| model name : Intel(R) Xeon(R) CPU E5-2650 0 @ 2.00GHz | |
| stepping : 7 | |
| microcode : 0x70a | |
| cpu MHz : 1799.999 | |
| cache size : 20480 KB |
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
| # 150ms in/out delay | |
| # ~ 300 ms to complete handshake, as expected | |
| # | |
| 00:00:00.000000 IP igrigorik.57812 > 176.32.98.166.http: Flags [S], seq 2280359597, win 65535, options [mss 1460,nop,wscale 4,nop,nop,TS val 1261175917 ecr 0,sackOK,eol], length 0 | |
| 00:00:00.094100 IP 176.32.98.166.http > igrigorik.57812: Flags [S.], seq 895108428, ack 2280359598, win 8190, options [mss 1460,nop,wscale 6], length 0 | |
| 00:00:00.297209 IP igrigorik.57812 > 176.32.98.166.http: Flags [.], ack 1, win 16384, length 0 | |
| 00:00:00.297224 IP igrigorik.57812 > 176.32.98.166.http: Flags [P.], seq 1:79, ack 1, win 16384, length 78 | |
| # ~100 ms response time + 300 ms RTT later... |
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
| # Quick comparison of Deflate performance with respec to varios | |
| # LZ77 window and memLevel settings. E.g... | |
| # | |
| # $> curl https://github.com/timeline.json -o timeline.json | |
| # $> ruby compare.rb timeline.json | |
| # | |
| require "zlib" | |
| unless file = ARGV[0] |
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
| source 'https://rubygems.org' | |
| gem 'goliath' |
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
| class ConnectionInfo { | |
| constructor(media="unknown", | |
| className="unknown", | |
| classId=0) { | |
| this.media = media; | |
| this.className = className; | |
| this.classId = classId; | |
| } | |
| } |
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
| alias gh="open \`git remote -v | grep git@github.com | grep fetch | head -1 | cut -f2 | cut -d' ' -f1 | sed -e's/:/\//' -e 's/git@/http:\/\//'\`" |
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
| worker_processes 1; | |
| events { | |
| worker_connections 1024; | |
| } | |
| http { | |
| include mime.types; | |
| default_type application/octet-stream; | |