Skip to content

Instantly share code, notes, and snippets.

View tmccombs's full-sized avatar

Thayne McCombs tmccombs

  • Lucid Software, Inc.
  • USA
View GitHub Profile
[ 392317.859] {Default Queue} -> wl_display#1.get_registry(new id wl_registry#2)
[ 392317.868] {Default Queue} -> wl_display#1.sync(new id wl_callback#3)
[ 392317.922] {Display Queue} wl_display#1.delete_id(3)
[ 392317.926] {Default Queue} wl_registry#2.global(1, "wl_shm", 2)
[ 392317.930] {Default Queue} -> wl_registry#2.bind(1, "wl_shm", 1, new id [unknown]#4)
[ 392317.934] {Default Queue} wl_registry#2.global(2, "zwp_linux_dmabuf_v1", 4)
[ 392317.937] {Default Queue} -> wl_registry#2.bind(2, "zwp_linux_dmabuf_v1", 4, new id [unknown]#5)
[ 392317.940] {Default Queue} -> zwp_linux_dmabuf_v1#5.get_default_feedback(new id zwp_linux_dmabuf_feedback_v1#6)
[ 392317.945] {Default Queue} -> wl_display#1.sync(new id wl_callback#7)
[ 392317.948] {Default Queue} wl_registry#2.global(3, "wl_compositor", 6)
@tmccombs
tmccombs / kitty-echo.py
Last active November 25, 2024 08:25
Script to pretty-print the codes received for the kitty keyboard protocol
#!/usr/bin/env python3
'''
Program to Show what codes are sent by key presses using the kitty protocol
The flags for progressive-enhancement can be passed as an integer argument (hex is allowed).
Defaults to 1
'''
import sys
@tmccombs
tmccombs / qt5_wayland_debug
Created June 24, 2020 08:42
WALAND_DEBUG output for wireshark in sway with offset menus.
[1861904.057] -> [email protected]_registry(new id wl_registry@2)
[1861904.124] -> [email protected](new id wl_callback@3)
[1861904.281] [email protected]_id(3)
[1861904.293] [email protected](1, "wl_shm", 1)
[1861904.310] -> [email protected](1, "wl_shm", 1, new id [unknown]@4)
[1861904.331] [email protected](2, "zwp_linux_dmabuf_v1", 3)
[1861904.347] [email protected](3, "wl_drm", 2)
[1861904.362] [email protected](4, "wl_compositor", 4)
[1861904.377] -> [email protected](4, "wl_compositor", 3, new id [unknown]@5)
[1861904.398] [email protected](5, "wl_subcompositor", 1)
@tmccombs
tmccombs / README.adoc
Last active December 9, 2023 02:58
XDG Default Applications
@tmccombs
tmccombs / gist:ee17a563b1459477a39e1911092e6546
Created December 19, 2019 08:03
sway log (red frowny face)
2019-12-19 01:01:03 - [sway/main.c:152] Linux tardis 5.4.3-arch1-1 #1 SMP PREEMPT Fri, 13 Dec 2019 09:39:02 +0000 x86_64 GNU/Linux
2019-12-19 01:01:03 - [sway/main.c:168] Contents of /etc/lsb-release:
2019-12-19 01:01:03 - [sway/main.c:152] LSB_VERSION=1.4
2019-12-19 01:01:03 - [sway/main.c:152] DISTRIB_ID=Arch
2019-12-19 01:01:03 - [sway/main.c:152] DISTRIB_RELEASE=rolling
2019-12-19 01:01:03 - [sway/main.c:152] DISTRIB_DESCRIPTION="Arch Linux"
2019-12-19 01:01:03 - [sway/main.c:168] Contents of /etc/os-release:
2019-12-19 01:01:03 - [sway/main.c:152] NAME="Arch Linux"
2019-12-19 01:01:03 - [sway/main.c:152] PRETTY_NAME="Arch Linux"
2019-12-19 01:01:03 - [sway/main.c:152] ID=arch
@tmccombs
tmccombs / playground.rs
Last active August 24, 2018 04:34 — forked from rust-play/playground.rs
Code shared from the Rust Playground
#![feature(pin)]
use std::marker::Unpin;
use std::ops::{Deref, DerefMut};
use std::rc::Rc;
use std::sync::Arc;
#[derive(Copy, Clone)]
pub struct Pin<P> {
pointer: P,
@tmccombs
tmccombs / prompt_thayne_setup.zsh
Last active October 26, 2018 18:46
Thayne's prompt theme
# vim: ft=zsh
#
# Thayne's custom prompt
prompt_thayne_setup () {
autoload -Uz vcs_info
local c=(cyan magenta)
PS1="%F{$c[1]}[%*]%(1V.%F{green}%1v.) %F{$c[1]}%-1<…<%~ %(?..%F{red}%B(%?%)%b)%<<
%f%h %(#.%F{red}#.%F{green}⮚)%f "
;;;;Modify ~/quicklisp/dists/quicklisp/software/fsbv-20101006-git to look like
;;;;this:
;; CFFI-Grovel definitions for unix systems.
;; Liam Healy 2009-02-22 09:24:33EST libffi-unix.lisp
;; Time-stamp: <2009-08-23 09:51:01EDT libffi-unix.lisp>
;; $Id: $
(in-package :fsbv)
@tmccombs
tmccombs / Private Method in JS
Created November 2, 2013 15:57
A method to create a truly private method in Javascript
var MyClass;
function() {
MyClass = function() {
this.prop = {};
}
//private method
function getProp() {
return this.prop;