Skip to content

Instantly share code, notes, and snippets.

@ds17f
ds17f / fixperms.md
Created April 12, 2023 16:53
Fix Permissions EZ Flash Omega GBA Mac Fat32

Concepts

  • Format the SD Card with Fat32 (not extfat which is the default)
    • If the card is bigger than 32gb this could be problematic, also, it might not be 🤷
  • Copy ROMs to the card
  • Set the Fat32 noarch flag
  • Set the Fat32 nohidden flag

Code

@ds17f
ds17f / NESDevLinks.md
Last active December 29, 2022 15:33
Helpful Links for Developing NES Games
@ds17f
ds17f / sleep_settings.sh
Last active August 11, 2021 14:25
A script for setting the screensaver/sleep timeout on a firetv stck
# Use this to set the screensaver on a firetv
# you can't set it as executable (unless you're rooted)
# so you need to run it as:
# $ source ./sleep_settings.sh
echo "Enter screensaver timeout in minutes (Default 5)"
read SCREENSAVER_ON_IN_MINUTES
echo "Enter screen off timeout in minutes (Default 20)"
read SLEEP_IN_MINUTES
SCREENSAVER_IN_MILLISECONDS=`expr "$SCREENSAVER_ON_IN_MINUTES" \* 60000`
@ds17f
ds17f / git-origins.md
Created April 25, 2019 12:59 — forked from benschw/git-origins.md
fork a repo manually (set source as upstream origin) rather than with the "fork" button. e.g. for in github when you want to fork a project twice.

Ripped off from adrianshort.org

List curent remotes

$ git remote -v

origin  https://github.com/hakimel/reveal.js.git (fetch)
origin  https://github.com/hakimel/reveal.js.git (push)

Rename origin to upstream and add our new empty repo as the origin.

@ds17f
ds17f / make_yaml.py
Created April 8, 2019 21:28
Makes a yaml from command line parameters
import yaml
import sys
VAR_DELIM = ","
KEY_DELIM = ":"
def int_try_parse(value):
try:
return int(value)