Skip to content

Instantly share code, notes, and snippets.

@peteristhegreat
peteristhegreat / how-to-upgrade-to-windows-11.md
Created September 17, 2024 15:30
Windows 11, Parallels, TPM Chip, Not recognized
@peteristhegreat
peteristhegreat / amazon-linux-2023--certbot-nginx.md
Last active September 13, 2024 15:02
Amazon Linux 2023, Centos based certbot + nginx setup
sudo yum update
sudo yum install -y docker nginx certbot python3-certbot-nginx git

sudo systemctl start docker
sudo systemctl enable docker
sudo usermod -a -G docker ec2-user

sudo systemctl start nginx
@peteristhegreat
peteristhegreat / rpi-3b-plus-setup-2024.md
Created September 9, 2024 22:51
RPI-3b+ Setup 2024
@peteristhegreat
peteristhegreat / mod-fortune.md
Created September 5, 2024 18:34
Install mod-fortune with lots of extras

I didn't want to deal with translations nor with 2 GB of libraries I don't need, so my trimmed list for english + spanish fortunes was:

sudo apt install display-dhammapada fortune-anarchism fortune-mod fortunes fortunes-bofh-excuses fortunes-debian-hints fortunes-es fortunes-es-off fortunes-mario fortunes-min fortunes-off fortunes-spam haskell-misfortune tfortune tfortunes

Afterward I got this spread of topics:

$ fortune -f
@peteristhegreat
peteristhegreat / internal-khanmigo-thoughts.md
Last active August 9, 2024 14:39
Internal Khanmigo Thoughts

Slide from: https://youtu.be/hJP5GqnTrNo?feature=shared&t=740

GPT-4 clearly has the capability, but the context you give it matters a lot!

We have:

  • Used “AI Thoughts”
  • Give it the context of the problem (including human generated hints)
  • Spent 6 months prompt engineering for tutoring with an emphasis on math
@peteristhegreat
peteristhegreat / scoop-example.md
Created June 5, 2024 16:38
Scoop install when your certificates are held hostage

In case you hadn't heard, scoop is the cool new package manager on the block for Windows painless installs... displacing chocolatey in the case you don't want to rely on admin console windows, or if you don't have admin on the box you are working on.

Installation

In a powershell window, run:

Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
Invoke-RestMethod -Uri https://get.scoop.sh | Invoke-Expression
@peteristhegreat
peteristhegreat / email-pop3-imap-smtp-roundcube.md
Created May 20, 2024 16:05
Email, POP3, IMAP, SMTP, RoundCube

So here are two options I see for MX + SMTP on aws: https://docs.aws.amazon.com/workmail/latest/adminguide/howto-start.html 4$ per user per month managed aws service.

https://speedkills.io/email-server-aws/ ec2 instance install postfix + letsencrypt + dovecot + roundcube and other things to get a ubuntu system to handle MTA and SMTP with a basic webmail client with it.

Here’s a marketplace item for the preconfigured postfix setup: https://aws.amazon.com/marketplace/pp/prodview-7lthtvl7jhclu#pdp-pricing