Skip to content

Instantly share code, notes, and snippets.

@zas
zas / sonicping.md
Created May 17, 2021 13:04
sonar-like icmp ping

Sonic Ping

Emit a sound on each icmp reply.

Requirements

sudo apt install tcpdump sox
@zas
zas / sha256github_pubkey.sh
Created February 28, 2022 20:49
Calculate sha256 hash from a pub key to compare to github deploy key
#!/bin/bash
# calculate sha256 hash from a pub key to compare to github deploy key
KEY=$1
KEYPATH="~/.ssh/${KEY}.pub"
ssh-keygen -E sha256 -l -f "$KEYPATH"
@zas
zas / renew-gpgkey.md
Last active July 4, 2022 20:39 — forked from krisleech/renew-gpgkey.md
Renew Expired GPG key

Renew GPG key

Given that your key has expired.

$ gpg --list-keys
$ gpg --edit-key KEYID

Use the expire command to set a new expire date: