Skip to content

Instantly share code, notes, and snippets.

View craigcabrey's full-sized avatar
🙃
(╯°□°)╯︵ ┻━┻

Craig Cabrey craigcabrey

🙃
(╯°□°)╯︵ ┻━┻
View GitHub Profile
[package]
name = "gnome-shell-dbus-debug"
version = "0.1.0"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
[dependencies]
async-std = { version = "1.12.0", features = ["attributes"] }
zbus = "4.2.0"
#!/usr/bin/env python3
import functools
import git
import github
import tempfile
import textwrap
changes_requested_label = 'changes requested'
merge_label = 'ready to merge'
@craigcabrey
craigcabrey / hd141x.conf
Created October 23, 2016 23:37
LIRC remote codes for L-27-5KEY
# IrScrutinizer parametric export
#
# Creating tool: IrScrutinizer version 1.3.1dev
# Creating user: craigcabrey
# Creating date: Sun Oct 23 16:34:24 PDT 2016
# Encoding: WINDOWS-1252
#
# Manufacturer: Optoma
# Model: L-27-5KEY
# Displayname: HD141X Remote
#!/usr/bin/env python3
import sys
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
class Application(Gtk.Application):
@craigcabrey
craigcabrey / service.py
Created July 24, 2016 21:10
Python wrapper for OpenBSD's rcctl
import datetime
import subprocess
class Service:
blacklist = (
'accounting',
'check_quotas',
'ipsec',
'multicast',
'pf',
@craigcabrey
craigcabrey / 0001-Don-t-restrict-movement-gestures-to-touchscreens.patch
Created July 8, 2016 17:17
Patch to re-enable kinetic scrolling on non-touchscreen input sources in GTK+ 3.20.
From c76461960d05b3d64185d1a67096461ce6854009 Mon Sep 17 00:00:00 2001
From: Craig Cabrey <craigcabrey@gmail.com>
Date: Fri, 8 Jul 2016 13:07:26 -0400
Subject: [PATCH] Don't restrict movement gestures to touchscreens
---
gtk/gtkscrolledwindow.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/gtk/gtkscrolledwindow.c b/gtk/gtkscrolledwindow.c
#!/usr/bin/env python3
"""
Author: Craig Cabrey
"""
identity = [[1, 1], [1, 0]]
def multiply(first, second):
"""
#!/usr/bin/env python3
import functools
import git
import github
import tempfile
import textwrap
changes_requested_label = 'changes requested'
merge_label = 'ready to merge'
@craigcabrey
craigcabrey / test.c
Created February 21, 2016 23:07
Quick program for g_app_info_get_display_name
#include <gio/gdesktopappinfo.h>
#include <stdio.h>
// Compile with:
// gcc $(pkg-config --cflags gio-unix-2.0) $(pkg-config --libs gio-unix-2.0) test.c -o test
int main()
{
GList *list;
GAppInfo *app;
#!/usr/bin/env python3
import gi
gi.require_version('Gtk', '3.0')
from gi.repository import Gtk
window = Gtk.Window()
window.connect('destroy', lambda q: Gtk.main_quit())