Skip to content

Instantly share code, notes, and snippets.

View NextdoorPsycho's full-sized avatar
💫
Who said the universe was obligated to make sense to you?

Brian Fopiano NextdoorPsycho

💫
Who said the universe was obligated to make sense to you?
View GitHub Profile
@NextdoorPsycho
NextdoorPsycho / PylonCheatSheet.md
Created March 28, 2025 08:15
Pylon CheatSheet

======================================================== PYLON CHEAT SHEET

This cheat sheet provides a quick-reference guide to the core concepts of the Pylon library in Flutter. It includes examples of how to use immutable and mutable Pylons, future- and stream-based Pylons, as well as references to context extension methods that make working with data easy. Detailed code examples are appended at the bottom.

@NextdoorPsycho
NextdoorPsycho / chess_script.sh
Last active April 13, 2025 05:40
This script enables Apple’s Game Mode by launching the Chess app in fullscreen mode, which triggers Game Mode. It then deprioritizes the Chess process to minimize its resource usage, keeping the performance boost of Game Mode active without significant CPU/GPU drain from Chess. After making Chess fullscreen, the script switches focus back to the…
#!/bin/bash
LOG_FILE="chess_script.log"
log() {
echo "$(date '+%Y-%m-%d %H:%M:%S') - $1" | tee -a "$LOG_FILE"
}
# Requesting sudo privileges at the start
log "Requesting sudo privileges..."