Skip to content

Instantly share code, notes, and snippets.

@peteristhegreat
peteristhegreat / rpi-3b-plus-setup-2024.md
Created September 9, 2024 22:51
RPI-3b+ Setup 2024
@peteristhegreat
peteristhegreat / mod-fortune.md
Last active October 18, 2024 18:28
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 November 18, 2024 04:54
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

@peteristhegreat
peteristhegreat / csv2ics.py
Created April 4, 2024 00:06
Convert Outlook Calendar CSV export to ICS (aka ical)
import pandas as pd
from icalendar import Calendar, Event, vText, vDatetime
from datetime import datetime, timedelta
import pytz
print("starting conversion")
# Load CSV file
df = pd.read_csv('C:\\Users\\user\\outlook\\calendar.CSV') # Update the path accordingly
def parse_datetime(date_str, time_str, all_day):
@peteristhegreat
peteristhegreat / leaked-chatgpts.md
Created March 22, 2024 14:50
Browse Leaked ChatGPTs

Install Stylebot in your browser, and add the following for github:

article div pre {
 white-space: pre-wrap;       /* css-3 */
 white-space: -moz-pre-wrap;  /* Mozilla, since 1999 */
 white-space: -pre-wrap;      /* Opera 4-6 */
 white-space: -o-pre-wrap;    /* Opera 7 */
 word-wrap: break-word; 
}