原題:Dynamo: Amazon’s Highly Available Key-value Store
原文: Amazon's Dynamo - All Things Distributed (PDF Version)
This article is translated by @ono_matope. Please contact me if any problem.
package main | |
import ( | |
"bytes" | |
"encoding/hex" | |
"flag" | |
"fmt" | |
"io" | |
"log" | |
"net" |
function git_prompt_info() { | |
ref=$(git symbolic-ref HEAD 2> /dev/null) || return | |
echo "$ZSH_THEME_GIT_PROMPT_PREFIX${ref#refs/heads/}$ZSH_THEME_GIT_PROMPT_SUFFIX" | |
} |
原題:Dynamo: Amazon’s Highly Available Key-value Store
原文: Amazon's Dynamo - All Things Distributed (PDF Version)
This article is translated by @ono_matope. Please contact me if any problem.
window.windowManager = (function () { | |
var orgOpen = open, | |
windows = []; | |
window.open = function () { | |
var win = orgOpen.apply(null, arguments); | |
windows.push({ | |
option: arguments, | |
window: win | |
}); | |
return win; |
#!/usr/bin/env php | |
<?php | |
function wsse_header($username, $password) { | |
// Needed to change hashing, so not nounces with '/' inside will not be generated. | |
$nonce = sha1(uniqid(null, true) . uniqid()); | |
$created = new DateTime('now', new DateTimezone('UTC')); | |
$created = $created->format(DateTime::ISO8601); | |
$digest = sha1($nonce.$created.$password, true); |
/* | |
Copyright © 2014 Hidekazu Kobayashi | |
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE |
作: | @voluntas |
---|---|
バージョン: | 1.0.1 |
URL: | https://voluntas.github.io/ |
2015 年 1 月 12 日に行われた 「テレビ連動サーバー」勉強会 向けの発表資料です。
Helper script to map ports to other servers.
had a database that was only accesible in the VPC on aws, so i created an dev intance and did a ssh tunnel to that dev instance with netcat mapping the port to the database
Forward all request from local 5432 to remote host google.com port 80
./nc-proxy.sh 5432 google.com 80
Go 1.10.3 vs 1.11beta3 | |
Linux Firefly3399 4.4.138 #3 SMP Sat Jul 21 18:29:19 EST 2018 aarch64 GNU/Linux | |
go test crypto/tls -bench BenchmarkThroughput | |
benchmark old ns/op new ns/op delta | |
BenchmarkThroughput/MaxPacket/1MB-6 215113025 30982856 -85.60% | |
BenchmarkThroughput/MaxPacket/2MB-6 373540806 47685945 -87.23% | |
BenchmarkThroughput/MaxPacket/4MB-6 662471229 64692820 -90.23% | |
BenchmarkThroughput/MaxPacket/8MB-6 1297366168 121892691 -90.60% |