Skip to content

Instantly share code, notes, and snippets.

@peteristhegreat
peteristhegreat / .stignore
Created September 24, 2023 20:35
Unity syncthing ignore file .stignore
Temp/**
// This .gitignore file should be placed at the root of your Unity project directory
//
// Get latest from https://github.com/github/gitignore/blob/main/Unity.gitignore
//
*/Library/
*/Temp/
*/Obj/
*/Build/
*/Builds/
@peteristhegreat
peteristhegreat / chat-gpt-prompts-instructions.md
Created December 2, 2023 15:47
chat-gpt-prompts-instructions
@peteristhegreat
peteristhegreat / Readme.md
Last active April 12, 2024 07:32
Realtek bluetooth usb adapter RTL8671b
@peteristhegreat
peteristhegreat / generate.sh
Last active April 6, 2024 01:09
List gists as links with descriptions
#!/usr/bin/env bash
# git clone git@github.com:14e1a09abfdb9e762683c10cfeff3b4a.git gists-blog
# cd gists-blog
# ./generate.sh
# git add .
# git commit -m "updated links"
# git push
page_count=$(curl -I https://api.github.com/users/peteristhegreat/gists | grep link | grep -oP '(?<=\?page=)(\d+)(?=>; rel="last")')
@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 / retroarch-nucleus-coop.md
Last active April 3, 2024 01:22
Couch Play, Split Screen for Emulated Games, Retroarch + Nucleus Co-Op + AHK, Setup

Introduction

Running roms in an emulator can be a very nostalgic experience and something you want to share with the next generation or with friends.

Many of the better emulated games for older systems are single player.

Running multiple copies of an old single player game can make for a very enjoyable experience.

The Nucleus Co-Op project is fantastic at making games allow for couch-play, splitscreen, etc, for games that didn't design that into the PC versions of the game.

@peteristhegreat
peteristhegreat / git diff sqlite3 .gitattributes
Last active March 25, 2024 12:38
Sqlite git diff - Get git to use an sql dump of sqlite3 for showing differences ( .gitconfig config attributes sqlite3 )
*.db diff=sqlite3
@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.