Skip to content

Instantly share code, notes, and snippets.

Drew DeVault ddevault

Block or report user

Report or block ddevault

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View keybase.md

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 Oct 17, 2019
Tiny Wayland compositor
View Makefile
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
@ddevault
ddevault / ln.c
Created May 20, 2018
IOCCC 2018 entry
View ln.c
#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>
View hack.diff
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"
View animelist.txt
In Progress
Cowboy Bebop
GochiUsa
On Hold
Joshiraku
Nichijou
Shakugan no Shana
@ddevault
ddevault / steampowered-tux.user.js
Last active Aug 29, 2015
Revert Linux icons on Steam back to tux
View steampowered-tux.user.js
// ==UserScript==
// @name Linux Icon for Steam
// @namespace sircmpwn.com
// @include *store.steampowered.com/*
// @version 1
// @grant none
// ==/UserScript==
// Consider this file licensed under the terms of the WTFPL.
View gist:bb097669c61f16e812f5
#!/usr/bin/python
import requests
import sys
import psycopg2
from bs4 import BeautifulSoup
connection = psycopg2.connect('dbname=bash user=sircmpwn')
sql = connection.cursor()
def get_page(page):
View gist:3408872f96e768607b54
usb 6-1.5: new full-speed USB device number 8 using ehci-pci
input: Corsair Corsair K95 RGB Gaming Keyboard as /devices/pci0000:00/0000:00:1d.0/usb6/6-1/6-1.5/6-1.5:1.0/0003:1B1C:1B11.000C/input/input34
hid-generic 0003:1B1C:1B11.000C: input,hidraw1: USB HID v1.11 Keyboard [Corsair Corsair K95 RGB Gaming Keyboard] on usb-0000:00:1d.0-1.5/input0
usbhid 6-1.5:1.1: can't add hid device: -110
usbhid: probe of 6-1.5:1.1 failed with error -110
View keybase.md

Keybase proof

I hereby claim:

  • I am sircmpwn on github.
  • I am sircmpwn (https://keybase.io/sircmpwn) on keybase.
  • I have a public key whose fingerprint is 1E0A 3290 FCAF 4A11 8B5D 687F 83A9 44D9 F4EA 1B88

To claim this, I am signing this object:

You can’t perform that action at this time.