Skip to content

Instantly share code, notes, and snippets.

View Siphonay's full-sized avatar

Siph Siphonay

View GitHub Profile
@Siphonay
Siphonay / dex_order.sh
Last active July 18, 2026 20:07
Pokémon Gen 1 disassembly helper scripts
#!/usr/bin/env bash
# dex_order.sh
# Written by Siph
# Created 18/07/2026
# Licence: CC0 1.0 Universal https://creativecommons.org/publicdomain/zero/1.0/
# Print dex entries of the second file in the order of the first file
# Meant for pret gen 1 decomps, originally to re-order entries for pokered into the one used in pokeyellow
if [ "${#}" -ne 2 ];
then
@Siphonay
Siphonay / gbmodeldetector.asm
Last active May 23, 2026 23:49
Game Boy Model Detector script for Korean Pokémon Gold/Silver
; compile with QuickRGBDS https://github.com/M4n0zz/QuickRGBDS
; Korean Pokémon Gold symbols
; Download from this link: https://github.com/Narishma-gb/pokegold-kr/blob/symbols/pokegold.sym
; Convert to .inc with the mapsymtoinc.py provided with QuickRGBDS
include "pokegold-kr.inc"
include "charmap.inc"
SECTION "GBModelDetector", ROM0
@Siphonay
Siphonay / winprompt.sh
Last active November 16, 2024 21:56
Windows/DOS style prompt for bash
winprompt() {
printf "%s:%s>" "$(printf "\\$(printf '%03o' $(( $(df -x tmpfs --output=target | tail -n +2 | grep -wn "$(findmnt -T . -o target -n)" | cut -d':' -f1) + 66 )))")" "$(pwd | sed 's/\//\\/g')";
}
PS1='$(winprompt)'
@Siphonay
Siphonay / DOOM_LAUNCHER.bat
Last active August 23, 2024 18:23
BAT DOOM launcher for Windows that can load various IWADs and source ports, with enhancements like Smooth DOOM, Voxel DOOM II, set the language to French, and save pre-configure batch files for quick further access to setup. Feel free to adapt the hardcoded values to your own setup. Also includes a standalone loader for loopMIDI with SC-55 emula…
:: DOOM_LAUNCHER.BAT by Siph is marked with CC0 1.0. To view a copy of this license, visit https://creativecommons.org/publicdomain/zero/1.0/
@ECHO OFF
:loopmidi
CLS
CHOICE /C:YN /N /M "Launch loopMIDI and Nuked-SC55? (Y/N)"
IF %ERRORLEVEL% EQU 1 (
START /B "" "C:\Program Files (x86)\Tobias Erichsen\loopMIDI\loopMIDI.exe"
@Siphonay
Siphonay / db_backup_script.sh
Last active December 23, 2022 17:17
donphan.social DB backup script
#!/bin/bash
backup_folder="${HOME}/backup"
# Finding the latest backup
latest_backup=$(find "${backup_folder}" -type f -name "donphan_social_db_backup_*" | head -1)
# If latest backup exists, check if enough space
if [ -n "${latest_backup}" ]
then
@Siphonay
Siphonay / .Xresources
Created October 8, 2018 13:16
rxvt-unicode xrdb configuration to integrate it into the default Ubuntu desktop
! do not scroll with output
URxvt*scrollTtyOutput: false
! scroll in relation to buffer (with mouse scroll or Shift+Page Up)
URxvt*scrollWithBuffer: true
! scroll back to the bottom on keypress
URxvt*scrollTtyKeypress: true
! hide scrollbar
@Siphonay
Siphonay / mastomutant.sh
Last active August 27, 2018 19:30
Updates Mutant Standard Emoji on a non-Dockerized Mastodon instance. If you use this, you'll need 'wget' and 'unzip'.
#!/bin/bash
_name='MastoMutant Emoji Import'
_author='https://monsterpit.net/@daggertooth'
_version=2018.05.23.1
### PATHS! ###
# Where to put the Mutant Standard archives and extracted files.
mutant_dir="$HOME/mutant"
@Siphonay
Siphonay / widetooter.rb
Last active May 8, 2018 09:36
Widetooter
#!/usr/bin/env ruby
abort "please write your string as an argument" unless ARGV[0]
puts ARGV.join(' ').gsub(/[^a-z \n]/i, '').chars.map { |letter|
if letter.ord.between? 'a'.ord, 'z'.ord then
letter = " :#{letter}_wide:"
else
letter = letter
end }.join