Skip to content

Instantly share code, notes, and snippets.

View turnercore's full-sized avatar

Turner Monroe turnercore

View GitHub Profile
@turnercore
turnercore / launchbox_to_batocera.py
Last active December 23, 2025 13:15
A big ol' script to help import launchbox managed roms to batocera. Mainly used for myeslf and being updated for personal use.
import argparse
import copy
import csv
import logging
import re
import shutil
import zipfile
from datetime import datetime
from pathlib import Path
import xml.etree.ElementTree as ET
@turnercore
turnercore / stop-youtube-play-on-load.js
Last active December 21, 2024 09:30
Stop YouTube Play on Load
(() => {
let isVideoHandled = false; // Flag to indicate if the video has been handled
const checkVideoStart = () => {
const video = document.querySelector('#movie_player > div.html5-video-container > video');
if (!video) return;
// When the video starts playing (currentTime changes from 0), pause it
if (video.currentTime > 0 && !video.paused) {
video.pause();
@turnercore
turnercore / install-shadcn.sh
Last active January 1, 2024 16:53
Install shadcn complete
#!/bin/bash
# Create directories and files
mkdir -p ./components/ui
mkdir -p ./lib
touch ./lib/utils.ts
# Prompt to move globals.css
echo "Would you like to move globals.css to styles/globals.css? (y/n)"
read -r -p "[Y/n]: " move_response