This file contains 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
import collections | |
import curses, curses.wrapper | |
import time | |
import serial | |
DEVICE = '/dev/ttyUSB0' | |
def cmd(s, c): |
This file contains 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
# export OS_USERNAME=tester | |
# export OS_PASSWORD=testing | |
# export OS_PROJECT_NAME=test | |
# export OS_TENANT_NAME=test | |
# export OS_AUTH_URL=http://localhost:5000/v3 | |
# export OS_IDENTITY_API_VERSION=3 | |
# export OS_AUTH_VERSION=3 | |
# | |
# openstack ec2 credentials create |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<title>Hummingbird Benchmarks</title> | |
<link rel="icon" type="image/png" href="/favicon.png"> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/2.2.3/jquery.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/1.0.2/Chart.min.js"></script> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.5/handlebars.min.js"></script> | |
<style> |
This file contains 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
diff --git a/client/userclient.go b/client/userclient.go | |
index e708bec..07be012 100644 | |
--- a/client/userclient.go | |
+++ b/client/userclient.go | |
@@ -439,7 +439,12 @@ func (c *userClient) authenticate() *http.Response { | |
// returns the error response if unable to. | |
func NewClient(tenant string, username string, password string, apikey string, region string, authurl string, private bool) (Client, *http.Response) { | |
c := &userClient{ | |
- client: &http.Client{Timeout: 30 * time.Minute}, | |
+ client: &http.Client{ |
This file contains 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 ( | |
"fmt" | |
"os" | |
"github.com/troubling/hummingbird/common/ring" | |
) | |
func main() { |
This file contains 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
/* | |
BenchmarkMd5-4 3000000 521 ns/op | |
BenchmarkMinioBlake-4 2000000 692 ns/op | |
BenchmarkRegularBlake-4 2000000 838 ns/op | |
BenchmarkRegularBlakeSum-4 3000000 522 ns/op | |
BenchmarkSha3_256-4 1000000 1336 ns/op | |
BenchmarkSha3_Shake128-4 1000000 1213 ns/op | |
*/ | |
package main |
This file contains 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
diff --git a/proxyserver/main.go b/proxyserver/main.go | |
index cb3d7cb..0b921cc 100644 | |
--- a/proxyserver/main.go | |
+++ b/proxyserver/main.go | |
@@ -44,6 +44,7 @@ type ProxyServer struct { | |
accountAutoCreate bool | |
proxyDirectClient *client.ProxyDirectClient | |
metricsCloser io.Closer | |
+ debugResponses bool | |
} |
This file contains 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
#!/bin/bash | |
cd /etc/swift | |
rm -f *.builder *.ring.gz backups/*.builder backups/*.ring.gz | |
swift-ring-builder object.builder create 10 3 1 | |
swift-ring-builder object.builder add r1z1-127.0.0.1:6010R127.0.0.1:8010/sdb1 1 | |
swift-ring-builder object.builder add r1z2-127.0.0.1:6020R127.0.0.1:8020/sdb2 1 | |
swift-ring-builder object.builder add r1z3-127.0.0.1:6030R127.0.0.1:8030/sdb3 1 |
This file contains 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
type RingBuilder struct { | |
LastPartGatherStart int64 `pickle:"_last_part_gather_start"` | |
LastPartMovesEpoch int64 `pickle:"_last_part_moves_epoch"` | |
PartPower int64 `pickle:"part_power"` | |
DevsChanged bool `pickle:"devs_changed"` | |
Replicas float64 `pickle:"replicas"` | |
MinPartHours int64 `pickle:"min_part_hours"` | |
Parts int64 `pickle:"parts"` | |
Overload float64 `pickle:"overload"` | |
Dispersion float64 `pickle:"dispersion"` |
This file contains 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
#!/bin/bash | |
cd /etc/swift | |
rm -f *.builder *.ring.gz backups/*.builder backups/*.ring.gz | |
swift-ring-builder object.builder create 10 3 1 | |
swift-ring-builder object.builder add r1z1-127.0.0.1:6010R127.0.0.1:8010/sdb1 1 | |
swift-ring-builder object.builder add r1z2-127.0.0.1:6020R127.0.0.1:8020/sdb2 1 | |
swift-ring-builder object.builder add r1z3-127.0.0.1:6030R127.0.0.1:8030/sdb3 1 |
NewerOlder