Skip to content

Instantly share code, notes, and snippets.

@lunasorcery
lunasorcery / im-gay.txt
Created May 20, 2018 16:42
Compressed sprite data for the I'M GAY gba_bios.bin mod.
24 40 03 00 0F 00 40 01 01 00 01 42 42 43 43 C4
44 05 C4 04 C4 0F C4 02 0A 03 C3 01 0E 0C 08 0D
07 09 06 0B AA AB 48 75 EB B8 9C AA 0F FD 85 FA
4F 57 17 E9 79 E7 49 7C 5F 67 FD 47 FE 9C EE 24
FD ED 5F 46 94 57 7C 66 49 0B 40 84 0F AB 2B FA
57 67 24 DC A1 9F EC FF 2A 3E 54 F1 AD AB 52 C5
BE F2 75 91 82 81 2B D6 D6 8B 80 65 76 F2 3F EC
61 FF 1F 75 59 59 75 FC A2 24 D7 D6 0A 65 3C 11
E3 B3 66 A4 F9 5F 8E FF F9 BA FA 7F 10 A7 92 73
6E 39 4C 21 7F 9C 7F C4 FF AD FC B8 33 AE EE E2
@patrickgill
patrickgill / macos_appstore.txt
Last active May 17, 2024 13:26
macOS App Store IDs
# mas install <id>
id6450717509 14 macOS Sonoma
id1638787999 13 macOS Ventura
id1576738294 12 macOS Monterey
id1526878132 11 macOS Big Sur
1466841314 10.15 macOS Catalina
1398502828 10.14 macOS Mojave
1246284741 10.13 macOS High Sierra
1127487414 10.12 macOS Sierra
1147835434 10.11 OS X El Capitan (new)
;File generated by rgblink
00:00B5 CopyData
00:0061 DisableLCD
00:007B EnableLCD
00:0082 ClearSprites
00:009D FarCopyData
00:008D HideSprites
00:2024 VBlank
00:2306 Timer
@yifanlu
yifanlu / dynarec.c
Created August 2, 2016 18:57
Vita dynarec example
#include <psp2/kernel/sysmem.h>
int dynarec_test(void)
{
int block;
int ret;
void *base;
int (*func)(void);
// allocate block in VM domain
* D.S. Baxter
* Febuary 12th, 2016
========================================
= DMG/GBC screen stretching on the GBA =
========================================
GBA hardware has the ability to stretch the final image drawn on-screen when running DMG or GBC games. On applicable hardware (e.g. not the Micro, nor the "fat" or lite DS), the L and R triggers toggle this feature on and off respectively. The default mode is to display the DMG/GBC image in the middle of the GBA screen with black borders. The dimensions are as follows:
Top and bottom borders (240x8 pixels, or 30x1 tiles)
@lisamelton
lisamelton / transcode-video.sh
Last active May 24, 2024 17:42
Transcode video file (works best with Blu-ray or DVD rip) into MP4 (or optionally Matroska) format, with configuration and at bitrate similar to popular online downloads.
#!/bin/bash
#
# transcode-video.sh
#
# Copyright (c) 2013-2015 Don Melton
#
about() {
cat <<EOF
$program 5.13 of April 8, 2015