Skip to content

Instantly share code, notes, and snippets.

View kode54's full-sized avatar

Christopher Snowhill kode54

View GitHub Profile
@kode54
kode54 / PKGBUILD
Created June 20, 2014 01:04
Arch Linux PKGBUILD for multivnc-git
# Contributor: Max Devaine <maxdevaine@gmail.com>
# Contributor: Christopher Snowhill <chris@kode54.net>
pkgname=multivnc-git
pkgver=1.6.4.r3.g8a1bdfe
pkgrel=1
pkgname='multivnc'
pkgdesc='MultiVNC is a cross-platform Multicast-enabled VNC viewer using wxWidgets and libvncclient'
arch=(i686 x86_64)
url='http://github.com/bk138/multivnc'
@kode54
kode54 / stderr.txt
Created June 20, 2014 01:06
Crash log from multivnc on Arch Linux
05:56:37 PM: Debug:
05:56:37 PM: Debug: wxServDisc 0x195e980: about to query '_rfb._tcp.local.'
/usr/include/wx-3.0/wx/strvararg.h(451): assert "(argtype & (wxFormatStringSpecifier<T>::value)) == argtype" failed in wxArgNormalizer(): format specifier doesn't match argument type [in thread 7fc3811bc700]
Call stack:
[00] wxOnAssert(char const*, int, char const*, char const*, char const*)
[01] wxAnyButton::~wxAnyButton()
[02] wxThreadHelperThread::Entry()
[03] wxThread::CallEntry()
@kode54
kode54 / MAKEPKG
Created July 8, 2014 23:41
Updated Arch Linux PKGBUILD for multivnc-git
# Contributor: Max Devaine <maxdevaine@gmail.com>
# Contributor: Christopher Snowhill <chris@kode54.net>
pkgbase=multivnc-git
pkgname=$pkgbase
pkgver=1.6.4.r4.g18c96f6
pkgrel=1
pkgname='multivnc'
pkgdesc='MultiVNC is a cross-platform Multicast-enabled VNC viewer using wxWidgets and libvncclient'
arch=(i686 x86_64)
@kode54
kode54 / gen_adldata.cc
Last active August 29, 2015 14:05
Excerpt from Adlmidi for extracting instruments from ESS FM driver. Not a pretty sight, and they don't really work anyway.
// LoadESFM("drivers/es1969.sys", 35904, 64, "esfm");
static void LoadESFM(const char* fn, size_t file_offset, unsigned bank, const char* prefix)
{
FILE* fp = std::fopen(fn, "rb");
std::fseek(fp, file_offset, SEEK_SET);
std::vector<unsigned char> data(28 * 256);
std::fread(&data[0], 1, data.size(), fp);
std::fclose(fp);
@kode54
kode54 / readme.txt
Created January 7, 2015 05:09
How to install DirectSound audio effects in Wineskin for OpenMPT
1. Acquire dsdmo.dll and msdmo.dll from a copy of Windows. This may include up to Windows 8.1,
or possibly even Windows 10. You want the 32-bit versions, so if you're working with a 64-
bit version, you want the ones from the SysWOW64 directory.
2. Copy them in Finder, or prepare to do this in a Terminal prompt if you wish.
3. Open Package Contents on the OpenMPT.app Wineskin bottle.
4. Drill into the drive_c shortcut, or go the long way, through Contents/Resources.
5. Drill deeper, into windows/system32.
6. Copy the two DLL files here, overwriting as necessary.
That's just the preparation. Now you need to make it actually register with the bottled system, so:
#include <stdlib.h>
#include <string.h>
#include "psflib.h"
uint32_t ROM_SIZE;
uint8_t ROM[0x4000000];
uint8_t savestatespace[0x80275c];
static void * stdio_fopen( const char * path )
if ( $to_channel == 1 ){
$output = weechat::string_remove_color($output, "");
weechat::command(weechat::current_buffer(),"/say " . $output);
}elsif ( $to_channel == 0 ){
weechat::print(weechat::current_buffer(),$output);
}
@kode54
kode54 / config.example.json
Last active September 3, 2015 04:14 — forked from Treeki/config.example.json
FurAffinity -> Pushbullet Notifications
{
"username": "ninji-vahran",
"database": "notifier.db",
"cookies": {
"__cfduid": "REDACTED",
"a": "REDACTED",
"b": "REDACTED",
"folder": "inbox"
},
"pushbullet_key": "REDACTED",
@kode54
kode54 / patch_cd2.c
Last active September 12, 2015 06:20
A simple patcher to fix broken PSF1 sets. In this case, it is to fix PSFs from CaitSith2's Chocobo's Dungeon 2 rip.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <zlib.h>
#include <stdint.h>
static uLongf decomp_size = 0;
static uint8_t exe_buffer[2 * 1024 * 1024];
static uint8_t file_buffer[3 * 1024 * 1024];
@kode54
kode54 / PKGBUILD
Last active December 17, 2015 10:19 — forked from anonymous/PKGBUILD
# Maintainer: Martin Schmölzer <mschmoelzer@gmail.com>
# BUILD INSTRUCTIONS:
# ----------------------
# This package is intended as a more up-to-date replacement for the AUR
# 'ttf-ms-fonts' and 'ttf-vista-fonts' packages. It provides newer versions of
# the fonts in these packages, but due to license issues cannot automatically
# download the fonts.
#
# Instead, you must acquire them from a Windows 7 system or install media: