Skip to content

Instantly share code, notes, and snippets.

View gordallott's full-sized avatar
i feel like statuses in github is a silly concept at best

Gordon Allott gordallott

i feel like statuses in github is a silly concept at best
View GitHub Profile
gordallott / wsl2
Last active November 3, 2019 18:35
things I had to do for wsl2 sanity
View wsl2

Get openssh working

  • ensure openssh-server is running, modify /etc/ssh/sshd_config. ensure PasswordAuthentication yes.
  • run sudo dpkg-reconfigure openssh-server to regenerate the ssh keys which aren't always there i guess
  • sudo service ssh --full-restart

Get ports publicly accessible to the network

$remoteport = wsl.exe -u gord -d "Axiom" bash -c "ifconfig eth0 | grep 'inet '"
$found = $remoteport -match '\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}';
View gist:5b1c3e3ee3d71836f47e777945b5fb66

zfs cheat sheet: used for backups

things broke and i want to go back to how they used to be!

i had a problem with an app corrupting it's config file and an lxd container running out of disk space. both were fixed with lxd-restore. sudo zfs rollback -r lxd-containers/containers/axiom@autosnap_2019-02-20_13:00:01_hourly - if using the above crontab setup the restore snapshots should look similar to this a second later my drive was like it was an hour ago with no fuss involved

View gist:95457450b8d1bed4afa54299d2846efe

Keybase proof

I hereby claim:

  • I am gordallott on github.
  • I am gordallott ( on keybase.
  • I have a public key ASCF3NTis6FqMlKwMek_djg2GAy1oDrI67p78xCtcp_X6Qo

To claim this, I am signing this object:

View gist:4a709b67a70f323f5815
git checkout master
git pull upstream master
git checkout -b your-branch-name
View gist:74fe9321bec927c7d539
"stats for year: 08"
"PS2: 41"
"GCN: 25"
"PS3: 19"
"NDS: 16"
"Wii: 15"
"PS: 14"
"VC: 8"
"GBA: 7"
"PSN: 7"
View gist:2f43a8b808b6e386fc87
"stats for year: 09"
"PS3: 13"
"GEN: 10"
"Wii: 8"
"PS2: 8"
"DC: 6"
"PSN: 4"
"VC: 3"
"PC: 2"
"GBA: 2"
View gist:9c79146a355f48d7d34a
"games: " 51 steam-calculator-howsad.user.js:63
"notplayed: " 33 steam-calculator-howsad.user.js:64
"Total spent:" "$773.56" steam-calculator-howsad.user.js:66
"Total Discounted:" "$355.31" steam-calculator-howsad.user.js:67
"Not played games total:" "$458.73" steam-calculator-howsad.user.js:69
"Not played games discount total:" "$230.73"
View gist:c4dc57129d559003d72d
"games: " 230 steam-calculator-howsad.user.js:70
"notplayed: " 163 steam-calculator-howsad.user.js:71
"total spent:" 2807.4199999999896 steam-calculator-howsad.user.js:73
"Total Discount:" 1212.090000000001 steam-calculator-howsad.user.js:74
"not played spent:" 1919.0100000000011 steam-calculator-howsad.user.js:76
"not played discount:" 853.120000000001