Skip to content

Instantly share code, notes, and snippets.

@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; 
}
@peteristhegreat
peteristhegreat / rpi-retropie-setup.md
Created March 13, 2024 17:37
RPi Attract AttractMode EmulationStation RetroPie 2024 Roms 3.5mm headphone audio out

It looks like all the RetroPie images moved under arcade punks.

The 3B+ is slightly different from the 3B so one of the images that said it would work for 3B didn't work for me.

So here's the steps to get it working...

Get the stock RetroPie Image from Raspberry Pi Imager. Note the new version doesn't let you drop in the wifi info on install which is kind of annoying and makes the initially ssh setup harder.

Install to the sd card.

@peteristhegreat
peteristhegreat / omxplayer-install-from-archive.md
Created March 6, 2024 16:54
omxplayer rpi 3b+ bullseye libavcodec57 libavcodec58 emulationstation kodi

Raspbian doesn't like omxplayer any more since bullseye

Because Raspbian doesn't like omxplayer, they took it out of its repos, but it is still required by emulationstation and kodi and others.

Raspbian says to use VLC, but the documentation or the fixes to start using VLC aren't visible right now.

Here's how to go backwards and get a compatable version of omxplayer installed as of 2024Q1.

My steps

@peteristhegreat
peteristhegreat / aws-pinpoint-sms-voice-v2
Created February 15, 2024 21:54
AWS Pinpoint SMS v2 Registration FieldNames
```
companyInfo.address1
companyInfo.city
companyInfo.companyName
companyInfo.isoCountryCode
companyInfo.state
companyInfo.website
companyInfo.zipCode
contactInfo.firstName
contactInfo.lastName
@peteristhegreat
peteristhegreat / kylinOS-info.md
Last active February 2, 2024 05:37
KylinOS, KirinOS, Ubuntu, CentOS, CentOS8, V10 Sword 2024
@peteristhegreat
peteristhegreat / typing-games-from-the-90s.md
Last active January 31, 2024 15:07
Typing Games from the 90's