Skip to content

Instantly share code, notes, and snippets.

View petrkutalek's full-sized avatar

Petr Kutalek petrkutalek

View GitHub Profile
@petrkutalek
petrkutalek / eurionize.sh
Created July 5, 2020 21:43
Adding an EURion constellation to A4 PDF
#!/bin/bash
if [[ "$#" -ne 1 ]]; then
echo "Usage: $0 filename" >&2
exit 1
fi
if [[ ! -e "$1" ]]; then
echo "$1 not found" >&2
exit 1
fi
@petrkutalek
petrkutalek / self-signed.sh
Last active April 12, 2023 22:05
Making perfect ECDSA self-signed certificate for localhost
#!/bin/sh
openssl ecparam -out localhost.key -name secp256r1 -genkey
openssl req -x509 \
-out localhost.pem -new -key localhost.key -nodes -sha256 -days 30 \
-subj '/C=CZ/L=Prague/O=Petr Kutalek/OU=projectx/CN=localhost' \
-extensions EXT -config <(
printf '[dn]\n';
printf 'CN=localhost\n';