Skip to content

Instantly share code, notes, and snippets.

View barryjburns's full-sized avatar
🤕
Healing up!

Barry J. Burns (pluggo) barryjburns

🤕
Healing up!
View GitHub Profile
@barryjburns
barryjburns / cli-cheat-sheet.md
Last active November 22, 2021 12:44
CLI cheat sheet

CLI cheat sheet

openssl

  • Self-signed global wildcard certificate[^1]:

    openssl req -x509 -new -newkey rsa:4096 -nodes -out cert.pem -keyout key.pem -subj '/CN=*'

  • Convert PEM to PKCS12

@barryjburns
barryjburns / str2hex.py
Created October 14, 2021 23:23
String to hex using map, reduce, and operator.{mod,concat} in 1 very Pythonic, functional, iterative line
#!/usr/bin/env python3
'''
A compact and, if I may say so, exceptionally "Pythonic" function/script
to convert strings to the hex representation of their UTF-8 encoding.
Were one so inclined, one could use it to assign, oh, site local
IPv6 addresses, for one... 😉
-- luv, pluggo 💙
@barryjburns
barryjburns / keybase.md
Created August 21, 2021 09:29
keybase.io

Keybase proof

I hereby claim:

  • I am barryjburns on github.
  • I am pluggo (https://keybase.io/pluggo) on keybase.
  • I have a public key ASAPG0pZNk1X_aYLjoeX0BA9-8ODAyt_UUEnAzD8Qa1uYwo

To claim this, I am signing this object: