Skip to content

Instantly share code, notes, and snippets.

@flawedmatrix
flawedmatrix / varz.json
Created May 31, 2016 22:58
gorouter varz metrics
{
"bad_gateways": 0,
"bad_requests": 3,
"cpu": 0,
"credentials": [
"router",
"router"
],
"droplets": 9,
"host": "10.244.0.22:8080",
@flawedmatrix
flawedmatrix / go17investigation.ipynb
Created January 9, 2017 14:54
Upgrade to Golang 1.7 Investigation
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@flawedmatrix
flawedmatrix / test-ciphers.sh
Created April 12, 2017 19:43
Script to test openssl ciphers on a target server
#!/bin/bash
: "${2?'Usage: test-ciphers <host:port> <cipher-file>'}"
SERVER=${1}
IFS=$'\r\n' GLOBIGNORE='*' command eval 'CIPHERS=($(<${2}))'
for cipher in ${CIPHERS[@]}
do
echo -n Testing $cipher...
result=$(echo -n | openssl s_client -cipher "$cipher" -connect $SERVER 2>&1)