Skip to content

Instantly share code, notes, and snippets.

@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
@peteristhegreat
peteristhegreat / internet-safety-scams-dark-web-viruses-malware-pirating.md
Last active January 24, 2024 20:20
Internet Safety, Scams, Dark Web, Viruses, Malware, Pirating

Discussion about Internet with a Teen

At some point a youth that is getting into using the internet completely, they sometimes start looking at features or pieces of it that are unsavory or end up where there are a lot of nasty ads or worse.

This post is to help identify and teach about more facets of the internet that are sometimes overlooked.

"Bad" Things on the Internet

What are some bad things on the internet?

@peteristhegreat
peteristhegreat / dosbox-x-win-3.1.md
Created December 13, 2023 18:56
MathBlaster, American Girl Premiere, DosBox-X, Win 3.1
@peteristhegreat
peteristhegreat / chat-gpt-prompts-instructions.md
Created December 2, 2023 15:47
chat-gpt-prompts-instructions