Skip to content

Instantly share code, notes, and snippets.

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.
@jprjr
jprjr / Dockerfile
Created November 26, 2013 23:09
Setting up pyenv in docker
FROM tianon/centos-null:5.9
RUN rpm -i http://dl.fedoraproject.org/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
RUN yum -y update
RUN yum -y install gcc git curl make zlib-devel bzip2 bzip2-devel readline-devel sqlite sqlite-devel openssl openssl-devel
RUN useradd -m python_user
RUN ln -s /proc/self/fd /dev/fd
@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
; 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
@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
}
build_package_shared() {
local package_name="$1"
# patch the makefile for a shared library
curl -L https://gist.github.com/jprjr/8476378/raw/lua51-shared-library.patch | patch -p 1
if [ "${MAKEOPTS+defined}" ]; then
MAKE_OPTS="$MAKEOPTS"
elif [ -z "${MAKE_OPTS+defined}" ]; then
MAKE_OPTS="-j 2"
@jprjr
jprjr / README.md
Created October 17, 2013 14:39 — forked from ismell/README.md

Production Ready Process Monitoring

  1. Install docker-manger.conf and docker-instance.conf in /etc/init

  2. Create a containers file in /etc/docker/ with the following format

     name: image cmd
    

    The name must be unique.

  3. sudo service docker-manager start

./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 / 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).