Skip to content

Instantly share code, notes, and snippets.

; Note about interrupt coding:
; The GBS' TAC should have bits 2 and 6 enabled (0x44)
; You should have an RST table at the start(00-3F from game, or custom code if unused)
; With the RST table in place, add 0x10 more bytes after the RST table.
; The 1st 8 new bytes are for vblank's code, or a jump
; The last 8 new bytes are for timer interrupt code, or a jump
; Make sure to keep your play routine compatible with not using this setup,
; because not all players will support it, being that it's unofficial
GBS FILE SPECIFICATION 1.02
A file format for ripped GameBoy sound
By Scott Worley <ripsaw8080@hotmail.com>
GBS files are similar to PSID and NSF files. Code and data that is relevant to
sound production is ripped from a GameBoy ROM and combined with a descriptive
header to produce a compact sound module file. A player program that emulates
some of the hardware of a GameBoy is required to listen to these files.
./xbps-src -a x86_64-musl pkg zlib
[*] Updating `http://repo.voidlinux.eu/current/x86_64-repodata' ...
[*] Updating `http://repo.voidlinux.eu/current/nonfree/x86_64-repodata' ...
x86_64-repodata: 9120B [avg rate: 249MB/s]
[*] Updating `http://repo.voidlinux.eu/current/multilib/x86_64-repodata' ...
x86_64-repodata: 309KB [avg rate: 1226KB/s]
[*] Updating `http://repo.voidlinux.eu/current/multilib/nonfree/x86_64-repodata' ...
x86_64-repodata: 6423B [avg rate: 180MB/s]
[*] Updating `http://repo.voidlinux.eu/current/x86_64-musl-repodata' ...
ERROR: [reposync] failed to fetch file `http://repo.voidlinux.eu/current/x86_64-musl-repodata': Not Found
@jprjr
jprjr / Server-level CORS in NGINX.md
Last active June 11, 2020 16:15
Server-level CORS in NGINX

NGINX does weird things with If statements: http://wiki.nginx.org/IfIsEvil

It turns out, "if" inside a location directive w/ proxy_pass disables that implied URL-rewriting function. So, for example:

location /some/url/ {
  proxy_pass http://backend/api/;
  # example client url: http://server/some/url/data
  # URL sent to proxy: http://backend/api/data
}
@jprjr
jprjr / keybase.md
Created April 8, 2015 13:38
keybase.md

Keybase proof

I hereby claim:

  • I am jprjr on github.
  • I am jprjr (https://keybase.io/jprjr) on keybase.
  • I have a public key whose fingerprint is D1C2 E8CC C232 8C19 98CE 92B7 1A8A B126 F912 9FA6

To claim this, I am signing this object:

--- extra/kipi-plugins/CMakeLists.txt~ 2014-11-26 09:06:46.000000000 -0600
+++ extra/kipi-plugins/CMakeLists.txt 2014-11-26 09:07:01.000000000 -0600
@@ -90,8 +90,8 @@
MACRO_OPTIONAL_FIND_PACKAGE(Gdk) # For ipodexport.
MACRO_OPTIONAL_FIND_PACKAGE(GLIB2) # For ipodexport.
MACRO_OPTIONAL_FIND_PACKAGE(GObject) # For ipodexport.
-MACRO_OPTIONAL_FIND_PACKAGE(FLEX) # For Panorama (must be found before KdepimLibs for MacOS).
-MACRO_OPTIONAL_FIND_PACKAGE(BISON) # For Panorama (must be found before KdepimLibs for MacOS).
+#MACRO_OPTIONAL_FIND_PACKAGE(FLEX) # For Panorama (must be found before KdepimLibs for MacOS).
+#MACRO_OPTIONAL_FIND_PACKAGE(BISON) # For Panorama (must be found before KdepimLibs for MacOS).
--- extra/kipi-plugins/CMakeLists.txt~ 2014-11-26 08:53:41.000000000 -0600
+++ extra/kipi-plugins/CMakeLists.txt 2014-11-26 08:53:58.000000000 -0600
@@ -100,8 +100,8 @@
MACRO_OPTIONAL_FIND_PACKAGE(Gdk) # For ipodexport.
MACRO_OPTIONAL_FIND_PACKAGE(GLIB2) # For ipodexport.
MACRO_OPTIONAL_FIND_PACKAGE(GObject) # For ipodexport.
- MACRO_OPTIONAL_FIND_PACKAGE(FLEX) # For Panorama (must be found before KdepimLibs for MacOS).
- MACRO_OPTIONAL_FIND_PACKAGE(BISON) # For Panorama (must be found before KdepimLibs for MacOS).
+ #MACRO_OPTIONAL_FIND_PACKAGE(FLEX) # For Panorama (must be found before KdepimLibs for MacOS).
+ #MACRO_OPTIONAL_FIND_PACKAGE(BISON) # For Panorama (must be found before KdepimLibs for MacOS).
@jprjr
jprjr / weechat.md
Last active June 6, 2022 10:10 — forked from zer4tul/weechat.md

A Simple, Base16 Friendly, Weechat Setup

Scripts

  • Some must-have scripts
  /script install buffers.pl beep.pl urlserver.py highmon.pl
@jprjr
jprjr / ps2.config
Created November 19, 2014 12:53
PS2 as XBOX 360 with xboxdrv
[xboxdrv]
trigger-as-button=true
[evdev-absmap]
ABS_X=x1
ABS_Y=y1
ABS_Z=y2
ABS_RZ=x2
ABS_HAT0X=dpad_x
ABS_HAT0Y=dpad_y
--- nginx-1.6.2/debian/rules 2014-09-16 14:06:41.000000000 +0000
+++ nginx-1.6-2-ldap/debian/rules 2014-09-16 15:02:21.707068296 +0000
@@ -49,6 +49,7 @@
--with-mail \
--with-mail_ssl_module \
--with-file-aio \
+ --add-module=/tmp/mods/nginx-auth-ldap \
$(WITH_SPDY) \
--with-cc-opt="$(CFLAGS)" \
--with-ld-opt="$(LDFLAGS)" \