Skip to content

Instantly share code, notes, and snippets.

View xunker's full-sized avatar

Matthew Nielsen xunker

View GitHub Profile
@lifehackerhansol
lifehackerhansol / ace3ds-random-notes.md
Last active April 2, 2025 16:41
ace3ds-random-notes

This cart is basically the same as R4. There are a few differences and some other additions seen below:

  • All SD read/write (0xB9/0xBB) has no sector shift.
  • 0xBC does an XOR on the last byte:
    • BC XX XX XX XX 00 00 YY
    • XXXXXXXX = sector address
    • YY = XOR of every byte in command reg, so BC EOR XX EOR XX EOR XX EOR XX EOR 00 EOR 00
  • 0xB4 works... on SD cards that aren't SDHC. because sector address must be <<9'd. Kernel uses normal SD RW for games.
    • Save read/write commands on the R4 doesn't work on the Ace3DS+ if you do this for reasons not exactly known. Wood ports by some old devs used SD RW for saves and 0xB4 for ROM.
  • 0xB6/0xBF seems to be supported... kinda. It's different from how the R4 does it. No idea at all how it works yet.
@pythoninthegrass
pythoninthegrass / .bashrc
Last active May 24, 2024 15:56
Synology shell config
#/etc/profile: system-wide .profile file for ash.
# shellcheck disable=SC2155
umask 077
export PATH="/volume1/@appstore/git/bin:/opt/bin:/opt/sbin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin"
export PGDATA=/var/services/pgsql
export TERMINFO=/usr/share/terminfo
@nikp123
nikp123 / Armbian USB gadget guide.md
Last active February 2, 2025 20:49
How to make a USB gadget on Armbian Linux

This guide will include a step-by-step guide on how to set up an board running Armbian to act as a gadget device (similar to how it's been advertized with the Pi Zero)

Prerequisites

You will need a:

  • Armbian supported board with an OTG port
  • A temporary spare monitor, USB keyboard and display cable (or serial, if you'd like that instead)
  • USB cable
@AnatomicJC
AnatomicJC / android-backup-apk-and-datas.md
Last active April 18, 2025 18:48
Backup android app, data included, no root needed, with adb

Backup android app, data included, no root needed, with adb

Note: This gist may be outdated, thanks to all contributors in comments.

adb is the Android CLI tool with which you can interact with your android device, from your PC

You must enable developer mode (tap 7 times on the build version in parameters) and install adb on your PC.

Don't hesitate to read comments, there is useful tips, thanks guys for this !

@tcjennings
tcjennings / FONT.SHAPE.DEMO
Last active February 9, 2021 00:24
PRODOS-friendly shape-based font demo using Beagle Brothers proportional font shapes ("ACOMPUTE" from the Apple Mechanic diskette).
1 REM
2 REM PRODOS HI RES DEMO PROGRAM
3 REM USING BEAGLE BROS SHAPE FONT AT $6000
4 REM MODIFIED FROM Apple II High Resolution Character Generator, COMPUTE! June 1981
5 REM
8 LOMEM:28928
10 POKE 232,0: POKE 233,96: REM POKES SHAPE TABLE START ADDRESS
30 PRINT CHR$(4)"BLOAD ACOMPUTE,A$6000" : REM LOADS SHAPE TABLE INTO MEMORY, MATCHES PREVIOUS POKES
40 HOME: HGR2: POKE 49234,0: HCOLOR=3: ROT=0: SCALE=1: REM SETS HIRES GRAPHICS PARAMS, USES PAGE 2 TO HIRES MEMORY
45 REM H AND V ARE MANUAL ATTEMPTS AT CENTERING. NOT SOPHISTICATED.
@juancarlospaco
juancarlospaco / thermal_printer.md
Last active April 21, 2025 05:04
Arch Linux Thermal Printer USB 58mm / 80mm Drivers & Config
@TedThompson
TedThompson / TREKTHEME.BAS
Created September 20, 2018 01:59
Apple //e Applesoft BASIC Music to play the opening melody of the Star Trek theme.
100 DIM SC(10)
110 PLAY = 768
120 DATA 160,100,169,1,133,250,174,3,3,228,250,208,3,173,48,192,202,208,246,173,48,192,136,240,7,198,250,208,233,76,2,3,96
130 REM
140 REM 233,220,208,195,184,175,164,154,146,137,129,122,114,108
150 REM G G# A A# B C C# D D# E F F# G G#
160 REM
170 FOR I = 0 TO 32
180 READ V: POKE PLAY + I,V: NEXT
190 POKE 769,200: REM 769 IS DURATION; 771 IS PITCH
@ednisley
ednisley / gethp54602
Created March 18, 2018 17:26
Kermit script to capture HP 54602 oscilloscope screen image
#!/usr/bin/kermit +
# Fetches screen shot from HP54602B oscilloscope
# Presumes it's set up for plotter output...
# Converts HPGL to PNG image
set host 192.168.1.40 7001 /raw-socket
set modem none
# Make sure we have a param
if not defined \%1 ask \%1 {File name? }
@Chocksy
Chocksy / kill_sidekiq_job.rb
Last active April 9, 2025 17:34
Kill sidekiq jobs by process id for busy jobs and by jid for other sets.
# FOR BUSY JOBS
# take the process_id from the /busy page in sidekiq and kill the longest running one.
workers = Sidekiq::Workers.new
long_process_id = 'integration.3:4:71111aaa111' # Eg: 'integration.3:4:71d1d7f4ef5a'
workers.each do |process_id, thread_id, work|
process = Sidekiq::Process.new('identity' => process_id)
process.stop! if process_id == long_process_id
end
# FOR SCHEDULED JOBS
@urish
urish / espruino-waveshare-epaper.js
Last active June 26, 2023 02:57
Driver for Waveshare 2.9inch e-Paper Module
// Copyright (C) 2017, Uri Shaked
// Loosely based on code samples provided by waveshare
// License: MIT
const DIN_PIN = 11;
const CLK_PIN = 12;
const CS_PIN = 13;
const DC_PIN = 14;
const RST_PIN = 15;
const BUSY_PIN = 16;