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 / 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
###############################################
# TX SX OS unpacker - by hexkyz and naehrwert #
###############################################
from Crypto.Cipher import AES
from Crypto.Util import Counter
import os
import struct
"""
###############################################
# TX SX Pro Custom Payload Packer - by CTCaer #
###############################################
import struct
import hashlib
from os import unlink
"""
typedef struct boot_dat_hdr
@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
@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 / 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