Skip to content

Instantly share code, notes, and snippets.

View DNA64's full-sized avatar
💭
Working on various classic projects

viral_dna DNA64

💭
Working on various classic projects
View GitHub Profile
@DNA64
DNA64 / sfc2sfrom.py
Last active March 23, 2018 12:06 — forked from anpage/sfc2sfrom.py
Scripts to convert SNES ROMs to SNES Classic (.sfrom) format and to read .sfrom headers
#!/usr/bin/env python
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
# AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
# INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
# LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
@DNA64
DNA64 / bulkconvert.py
Created October 7, 2017 08:56
Bulk Convert and Naming Tool for SNES Classic ROMS
# Bulk Convert Tool for SNES Classic ROMS
#
# Uses my modified sfc2from.py script
# https://gist.github.com/DNA64/5e79c6449785949f86744fa7dcb50ad7#file-sfc2sfrom-py
#
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted.
#
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
# REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
@DNA64
DNA64 / _make_list.bat
Created January 28, 2018 09:15 — forked from keejelo/make_html_list.bat
Makes a list containing all games in gamefolder (hakchi2)
::*************************************************************************
:: Filename: _make_list.bat
:: Author : keejelo
:: Version : 1.01
:: Descr. : Makes a list containing all games in gamefolder.
:: Usage : Put the file into folder "hakchi2\games_snes" and then run it.
::*************************************************************************
TITLE Working, please wait...
ECHO OFF
SETLOCAL ENABLEEXTENSIONS ENABLEDELAYEDEXPANSION
###############################################
# TX SX Pro Custom Payload Packer - by CTCaer #
###############################################
import struct
import hashlib
from os import unlink
"""
typedef struct boot_dat_hdr
###############################################
# TX SX OS unpacker - by hexkyz and naehrwert #
###############################################
from Crypto.Cipher import AES
from Crypto.Util import Counter
import os
import struct
"""
@DNA64
DNA64 / wifi-wpa-setup
Last active October 30, 2019 11:12
Fixed an issue in the wifi-wpa-setup script that didn't allow spaces in the SSID. Replace the "wpa-setup-setup" script in the /bin/ folder to patch. Credit viral_dna if used.
#!/bin/sh
SSID="$1"
if [ -z "$SSID" ]; then
IFS= read -r -p "Enter your SSID (Spaces are allowed!): " SSID
fi
[ -z "$SSID" ] && exit 1
PASS="$2"
if [ -z "$PASS" ]; then
@DNA64
DNA64 / wpa_patch
Last active January 15, 2023 00:15
This will patch the wifi-wpa-setup file of the wpa_supplicant module to allow spaces in SSID's and Passwords. Credit viral_dna if used.
#!/bin/sh
# October 3rd, 2019
# This will patch the wifi-wpa-setup file of the wpa_supplicant module to allow spaces in SSID's and Passwords.
# While I don't think spaces in passwords will be an issue, I figured it couldn't hurt to add that in as well.
#
# The wpa_supplicant module KMFD's Mod Hub has now been updated with this fix.
# - viral_dna (aka DNA64)
sed -i '5,5d' /bin/wifi-wpa-setup
@DNA64
DNA64 / gnw_flash_menu.sh
Last active February 4, 2023 09:01
Command line tool to patch game-and-watch-flashloader and game-and-watch-retro-go to support 32bit addressing.
#!/bin/bash
# THIS SCRIPT IS NO LONGER REQUIRED. PLEASE DO NOT USE IT.
# This script will modify your game-and-watch-flashloader and game-and-watch-retro-go installations
# to allow flashing of flash memory chips exceeding 128Mb (16MB).
# Useage: Place this file in the same directory as both the 'game-and-watch-flashloader' and
# 'game-and-watch-retro-go folders', then run the script and follow the instructions.
# After patching, make sure to rebuild 'game-and-watch-flashloader'.
@DNA64
DNA64 / 32bit_patch.sh
Last active August 6, 2021 05:43
Modify your game-and-watch-flashloader and game-and-watch-retro-go installations to allow flashing of flash memory chips 128Mb (32MB) and larger.
#!/bin/bash
# Attention! - This script is now obsolete with the latest build of game-and-watch-retro-go.
# This script will modify your game-and-watch-flashloader and game-and-watch-retro-go installations
# to allow flashing of flash memory 128Mb (32MB) and larger.
# The patch must be run from the same directory containing the game-and-watch-retro-go folder and game-and-watch-flashloader folder.
# Get the latest updated patch from https://gist.github.com/DNA64/ecb29b28f3bb016a0e0c9b5003537f82
@DNA64
DNA64 / 24bit_patch.sh
Last active August 6, 2021 05:44
Modify your game-and-watch-flashloader and game-and-watch-retro-go installations to allow flashing of flash memory chips 128Mb (16MB) or smaller
#!/bin/bash
# Attention! - This script is now obsolete with the latest build of game-and-watch-retro-go.
# This script will modify your game-and-watch-flashloader and game-and-watch-retro-go installation
# to only allow flashing of flash memory chips 128Mb (16MB) or smaller. You only need to run this IF
# you have run the 32bit_patch.sh file, even then, it's not required to flash smaller chips.
# This patch MUST be applied BEFORE you build flashloader!
# The patch must be run from the same directory containing the game-and-watch-retro-go folder and game-and-watch-flashloader folder.