Skip to content

Instantly share code, notes, and snippets.

View jonpants's full-sized avatar

jonpants jonpants

View GitHub Profile
@jonpants
jonpants / renew-gpgkey.md
Created July 1, 2022 02:03 — 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:

@jonpants
jonpants / etc-hosts-on-win.md
Created September 19, 2018 21:38 — forked from zenorocha/etc-hosts-on-win.md
/etc/hosts on Windows

1. Get your IP Address

echo `ifconfig $(netstat -nr | grep -e default -e "^0\.0\.0\.0" | head -1 | awk '{print $NF}') | grep -e "inet " | sed -e 's/.*inet //' -e 's/ .*//' -e 's/.*\://'`

2. Modify your hosts file

notepad