Skip to content

Instantly share code, notes, and snippets.

@koshatul
koshatul / sslCertSplit.sh
Created July 16, 2018 03:07
SSL CA bundle split and openssl on each certificate
#!/bin/bash
set +e
CA_BUNDLE="${1}"
shift
if [ ! -s "${CA_BUNDLE}" ]; then
echo "usage: ${0} <ca bundle file> [openssl commands]"
echo "example: ${0} ca-bundle.pem -noout -subject -issuer"
@koshatul
koshatul / README.md
Last active October 22, 2025 04:00
use Apple Keychain to store GPG Passphrases

gpg-agent setup

Need to setup gpg-agent first, on OSX I use keychain (it also does ssh-agent)

$ brew info keychain
keychain: stable 2.8.5
User-friendly front-end to ssh-agent(1)
https://www.funtoo.org/Keychain
/usr/local/Cellar/keychain/2.8.5 (7 files, 108.5KB) *
@koshatul
koshatul / README.md
Last active November 18, 2020 06:55
Testing errorlint

Error wrapping test

$ golangci-lint --version
golangci-lint has version 1.32.2 built from 52d26a3 on 2020-11-03T01:15:38Z
$ golangci-lint run --enable-all ./...
main.go:33:45: non-wrapping format verb for fmt.Errorf. Use `%w` to format errors (errorlint)