NOTE: the TEXT
const is defined here with value "application/json; chunked=true; version=2, application/json; version=2, text/plain"
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
#!/usr/bin/env python3 | |
import logging | |
import os | |
import sys | |
from logging.handlers import RotatingFileHandler | |
def main(sysargs=sys.argv[:], stdin=sys.stdin): |
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 ( | |
"encoding/json" | |
"io" | |
"log" | |
"os" | |
"github.com/hashicorp/terraform/terraform" | |
) |
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
#!/usr/bin/env bash | |
echo infra,stack,group,name | |
for infra in gce docker ; do | |
for s in amethyst connie cookiecat garnet sugilite; do | |
for g in edge stable; do | |
stackname=$(curl -s https://guest:[email protected]/images\?infra\=${infra}\&tags\=language___${s}__:true,group_${g}:true\&limit\=1 \ | |
| jq -r '.data|.[]|.name'); | |
if [[ $stackname ]]; then | |
echo "$infra,$s,$g,$stackname"; |
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/ssh/agent/client_test.go b/ssh/agent/client_test.go | |
index a13a650..5fc47e5 100644 | |
--- a/ssh/agent/client_test.go | |
+++ b/ssh/agent/client_test.go | |
@@ -180,9 +180,12 @@ func TestCert(t *testing.T) { | |
// therefore is buffered (net.Pipe deadlocks if both sides start with | |
// a write.) | |
func netPipe() (net.Conn, net.Conn, error) { | |
- listener, err := net.Listen("tcp", ":0") | |
+ listener, err := net.Listen("tcp", "127.0.0.1:0") |
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/acme/acme.go b/acme/acme.go | |
index 8619508..a7b6ce4 100644 | |
--- a/acme/acme.go | |
+++ b/acme/acme.go | |
@@ -15,6 +15,7 @@ package acme | |
import ( | |
"bytes" | |
+ "context" | |
"crypto" |
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/sh | |
set -o errexit | |
DEVICE=/sys/class/backlight/intel_backlight | |
BRIGHTNESS_FILE="${DEVICE}/brightness" | |
MAX_BRIGHTNESS="$(< $DEVICE/max_brightness)" | |
STEP=$((MAX_BRIGHTNESS / 20)) | |
read_brightness() { | |
cat "${BRIGHTNESS_FILE}" |
This file has been truncated, but you can view the full file.
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
#!/usr/bin/env ruby | |
def main | |
if ARGV.length < 2 | |
$stderr.puts "Usage: #{$PROGRAM_NAME} <query-tmpl> <max-id> " \ | |
"[range-size] [range-begin] [sleep]" | |
exit 1 | |
end | |
query_tmpl = File.read(ARGV.fetch(0)) |
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
test: | |
go test -v -bench=. -benchtime=30s 2>&1 | tee results.txt |
NewerOlder