原題: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.
原題: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.
notify_start_time=0 | |
notify_end_time=0 | |
notify_threshold=10 | |
notify_prev_command="" | |
notify_flag=0 | |
function notify_preexec { | |
notify_flag=1 | |
notify_start_time=`date +'%s'` | |
notify_prev_command="$2" |
notify_start_time=0 | |
notify_end_time=0 | |
notify_threshold=10 | |
notify_threshold2=30 | |
notify_prev_command="" | |
notify_flag=0 | |
function notify_preexec { | |
notify_flag=1 | |
notify_start_time=`date +'%s'` |
require 'date' | |
require 'time' | |
require 'json' | |
require 'fluent-logger' | |
logger = Fluent::Logger::FluentLogger.new(nil, :host => '127.0.0.1', :port => 24224) | |
IO.foreach("fluentd_out_file.log") { |line| | |
line.scan(/^([^\t]+)\t([^\t]+)\t(.+)$/) { |a| | |
datetime = DateTime.parse(a[0]) | |
time = datetime.to_time |
## The following allows plotting to work within iTerm.app | |
setenv GNUTERM qt |
#!/bin/bash --debugger | |
set -e | |
BRANCH="master" | |
if grep -q BCM2708 /proc/cpuinfo; then | |
echo "RPI BUILD!" | |
RPI="1" | |
fi | |
[ -n "$1" ] && BRANCH=$1 |
#!/bin/bash | |
# requires jq | |
# arg 1: iCloud web album URL | |
# arg 2: folder to download into (optional) | |
function curl_post_json { | |
curl -sH "Content-Type: application/json" -X POST -d "@-" "$@" | |
} |
You want an HTTPS server bound to localhost running in front of a HTTP server. This is pretty much needed if you're working on things that work only in HTTPS, such as HTTPS-only cookies and front end apps dealing with mixed content.
We can do this with Stunnel.
First create a self-signed certificate or acquire one from Let's Encrypt.
; disable motors | |
M84 | |
; disable all heaters | |
{% snippet 'disable_hotends' %} | |
{% snippet 'disable_bed' %} | |
;disable fan | |
M106 S0 | |
; relative XYZE |