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

@jonpants
jonpants / gist:05e1ce16a693d4cd6e0b4532b106b800
Last active July 10, 2018 17:09
luks on lvm steps found somewhere
cgdisk /dev/sda
-----------------
sda1 512M EF00
sda2 200M 8300
sda3 rest 8300
cryptsetup -c aes-xts-plain -y -s 512 luksFormat /dev/sda2
cryptsetup luksOpen /dev/sda2 cryptroot
pvcreate /dev/mapper/cryptroot
vgcreate vg /dev/mapper/cryptroot
@jonpants
jonpants / asus-keycodes
Created July 5, 2017 04:27
asus laptop keycode bindings (bindsym)
░░░░░░░░░░░█▀█░█▀▀░█░█░█▀▀░░░█░░░█▀█░█▀█░▀█▀░█▀█░█▀█░░░█░█░█▀▀░█░█░█▀▀░█▀█░█▀▄░█▀▀░█▀▀░░░░░░░░░░
░░░░░░░░░░░█▀█░▀▀█░█░█░▀▀█░░░█░░░█▀█░█▀▀░░█░░█░█░█▀▀░░░█▀▄░█▀▀░░█░░█░░░█░█░█░█░█▀▀░▀▀█░░░░░░░░░░
░░░░░░░░░░░▀░▀░▀▀▀░▀▀▀░▀▀▀░░░▀▀▀░▀░▀░▀░░░░▀░░▀▀▀░▀░░░░░▀░▀░▀▀▀░░▀░░▀▀▀░▀▀▀░▀▀░░▀▀▀░▀▀▀░░░░░░░░░░
by: jonpants (keybase.io/jonpants)
# LEGEND:
keycode ### = Keypress Key+FN -or- Key+Shift
# TOP ROW (key) (key+fn)
keycode 9 = Escape -
@jonpants
jonpants / i3wm-miltimon-example-config
Last active June 30, 2017 06:39
Control workspaces in i3wm w/ 2 screens
# assign workspaces to screens
workspace 1 output DVI-I-1
workspace 2 output DVI-I-1
workspace 3 output DVI-I-1
workspace 4 output DVI-I-1
workspace 5 output DVI-I-1
workspace 6 output HDMI-0
workspace 7 output HDMI-0
workspace 8 output HDMI-0
workspace 9 output HDMI-0
Verifying that "jonpants.id" is my Blockstack ID. https://onename.com/jonpants

Keybase proof

I hereby claim:

  • I am jonpants on github.
  • I am jonpants (https://keybase.io/jonpants) on keybase.
  • I have a public key whose fingerprint is D2F5 D876 4372 9979 FFD5 D8AF 6FAE 5844 84EE CDD0

To claim this, I am signing this object: