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
gordallott / wsl2 tricks.md
Last active November 3, 2019 18:35
things I had to do for wsl2 sanity

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}';

zfs cheat sheet:

https://github.com/jimsalterjrs/sanoid 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

["#2b2b2b",
"#da4939",
"#a5c261",
"#ffc66d",
"#6d9cbe",
"#b6b3eb",
"#519f50",
"#e6e1dc",
"#5a647e",
"#da4939",

Keybase proof

I hereby claim:

  • I am gordallott on github.
  • I am gordallott (https://keybase.io/gordallott) on keybase.
  • I have a public key ASCF3NTis6FqMlKwMek_djg2GAy1oDrI67p78xCtcp_X6Qo

To claim this, I am signing this object:

git checkout master
git pull upstream master
git checkout -b your-branch-name
"stats for year: 08"
"PS2: 41"
"GCN: 25"
"PS3: 19"
"NDS: 16"
"Wii: 15"
"PS: 14"
"VC: 8"
"GBA: 7"
"PSN: 7"
"stats for year: 09"
"PS3: 13"
"GEN: 10"
"Wii: 8"
"PS2: 8"
"DC: 6"
"PSN: 4"
"VC: 3"
"PC: 2"
"GBA: 2"
"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"
"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