Skip to content

Instantly share code, notes, and snippets.

@Asmageddon
Asmageddon / main.c
Created September 4, 2011 16:14
Intercept and modify messages sent by libpurple(fails)
#include <glib.h>
#include <glib-object.h>
#include <dbus/dbus.h>
#include <dbus/dbus-glib.h>
#include "marshal.h" /* The file generated from marshal.list via tool glib-genmarshal */
//VOID:INT,STRING,STRING - put into marshal.list
//glib-genmarshal --header --prefix=marshal marshal.list > marshal.h
//glib-genmarshal --body --prefix=marshal marshal.list > marshal.c
//Compile with: "gcc -MMD -Wall -ggdb -O -pthread -I/usr/include/dbus-1.0 -I/usr/lib/i386-linux-gnu/dbus-1.0/include -I/usr/include/glib-2.0 -I/usr/lib/i386-linux-gnu/glib-2.0/include -pthread -L/usr/lib/i386-linux-gnu -ldbus-glib-1 -ldbus-1 -lpthread -lgobject-2.0 -lgthread-2.0 -lrt -lglib-2.0 marshal.c main.c -o main"
@Asmageddon
Asmageddon / filetype.balls.conf
Created August 26, 2011 13:29
KoL combat script(BALLS) syntax file for Geany
[styling]
default=default
number=number
word=keyword
string=string
word2=commentdoc,bold
classname=type,bold
defname=function
operator=keyword2,bold
identifier=default