Skip to content

Instantly share code, notes, and snippets.

@ahrex
ahrex / 0001-Wrap-arm64-s-Go-around-an-FPM-qemu-user-detection-sc.patch
Created August 30, 2018 20:52
Wrap arm64's Go around an FPM qemu-user detection script
From b911bf398bbdfbde514a1298ec46e4cd760a9c98 Mon Sep 17 00:00:00 2001
From: Alexander Huynh
Date: Mon, 6 Aug 2018 04:49:33 +0000
Subject: [PATCH] Wrap arm64's Go around an FPM qemu-user detection script
We can work around threading issues by limiting the CPUs that Go
processes can run on to one.
See https://github.com/golang/go/issues/20763#issuecomment-310601756
---
@ahrex
ahrex / tls-ciphercheck.bash
Created August 21, 2022 20:01
Bash script for enumerating ciphersuites
#!/usr/bin/env bash
#
# https://superuser.com/questions/109213/how-do-i-list-the-ssl-tls-cipher-suites-a-particular-website-offers#comment2253795_224263
# https://gist.github.com/jahir/23c4202eee12e377ef3acf1dcdc7c776
CIPHERS='ALL:eNULL'
DELAY=${2:-0.1}
SERVER=${1:?usage: $0 <host:port> [delay, default is ${DELAY}s] [ciphers, default is ${CIPHERS}]}
MAXLEN=$(openssl ciphers "$CIPHERS" | sed -e 's/:/\n/g' | awk '{ if ( length > L ) { L=length} }END{ print L}')