Skip to content

Instantly share code, notes, and snippets.

View ddevault's full-sized avatar

Drew DeVault ddevault

View GitHub Profile
@ddevault
ddevault / gist:4356572
Created December 21, 2012 23:30
Explosions in 1.4.6
Created with TNT.
{04:28:39.988} [SERVER->CLIENT] Explosion (0x3C)
[
3C 40 49 D9 AF 64 2F 3C 02 40 4F BE B8 52 00 00 . . I . . d . . . . O . . R . .
00 40 70 C8 88 CE AB C6 81 40 80 00 00 00 00 02 . . p . . . . . . . . . . . . .
A4 03 03 FC 03 03 FD 03 03 00 03 03 01 03 03 FE . . . . . . . . . . . . . . . .
03 03 FF 06 02 01 FC FF 02 FC FF 03 03 03 03 03 . . . . . . . . . . . . . . . .
03 02 03 03 04 03 00 03 03 00 04 FE 01 00 FE 01 . . . . . . . . . . . . . . . .
01 FE 01 FE FE 01 FF 03 02 FC FE 01 FC FE 01 FD . . . . . . . . . . . . . . . .
In Progress
Cowboy Bebop
GochiUsa
On Hold
Joshiraku
Nichijou
Shakugan no Shana
@ddevault
ddevault / hack.diff
Created April 3, 2018 19:53
I'm so sorry
diff --git a/sway/commands/reload.c b/sway/commands/reload.c
index 5bca6cd..a3714d0 100644
--- a/sway/commands/reload.c
+++ b/sway/commands/reload.c
@@ -2,6 +2,31 @@
#include "sway/config.h"
#include "sway/tree/layout.h"
+#include <wlr/backend/x11.h>
+#include "sway/server.h"
@ddevault
ddevault / ln.c
Created May 20, 2018 01:07
IOCCC 2018 entry
#include <stdlib.h>
#include <signal.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>
#include <sys/stat.h>
#include <sys/types.h>
#include <sys/utsname.h>
#include <dirent.h>
#include <pwd.h>

Keybase proof

I hereby claim:

  • I am ddevault on github.
  • I am sircmpwn (https://keybase.io/sircmpwn) on keybase.
  • I have a public key whose fingerprint is 4100 929B 33EE B0FD 1DB8 5279 7BC7 9407 0900 47CA

To claim this, I am signing this object:

@ddevault
ddevault / Makefile
Last active February 20, 2024 14:17
Tiny Wayland compositor
WAYLAND_PROTOCOLS=/usr/share/wayland-protocols
# wayland-scanner is a tool which generates C headers and rigging for Wayland
# protocols, which are specified in XML. wlroots requires you to rig these up
# to your build system yourself and provide them in the include path.
xdg-shell-protocol.h:
wayland-scanner server-header \
$(WAYLAND_PROTOCOLS)/stable/xdg-shell/xdg-shell.xml $@
xdg-shell-protocol.c: xdg-shell-protocol.h