Skip to content

Instantly share code, notes, and snippets.

View benr's full-sized avatar

Ben Rockwood benr

View GitHub Profile
@benr
benr / gist:a39d147af33530e78c8a8ec79375e5a6
Created January 19, 2023 08:25
Find GPG Key Expiration in Days (Bash)
EXPIRE=`curl -s https://releases.mondoo.com/rpm/pubkey.gpg | gpg --show-keys --with-colons | grep pub | awk -F: '{print $7'}`
NOW=`date +%s`
echo "Expires in $(( ($EXPIRE - $NOW) / 86400)) days"
### Keybase proof
I hereby claim:
* I am benr on github.
* I am benr (https://keybase.io/benr) on keybase.
* I have a public key whose fingerprint is 6065 4385 113C 32F0 8611 D18B 2E55 E37E C823 A182
To claim this, I am signing this object:
#cloud-init
apt_update: true
apt_upgrade: true
packages:
- tmux
#!/bin/bash
echo "This worked from Gist" >> /etc/status
@benr
benr / gist:5505198
Created May 2, 2013 20:34
SmartOS Vagrant Box, first preview. Lacks VBox Extensions for disk sharing. (smartos-20130419T073558Z)
vagrant box add smartos http://cuddletech.com/tmp/smartos-latest.box
mkdir smartos && cd smartos
vagrant init smartos
vagrant up
vagrant ssh