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
@tmccombs
tmccombs / qt5_wayland_debug
Created June 24, 2020 08:42
WALAND_DEBUG output for wireshark in sway with offset menus.
[1861904.057] -> wl_display@1.get_registry(new id wl_registry@2)
[1861904.124] -> wl_display@1.sync(new id wl_callback@3)
[1861904.281] wl_display@1.delete_id(3)
[1861904.293] wl_registry@2.global(1, "wl_shm", 1)
[1861904.310] -> wl_registry@2.bind(1, "wl_shm", 1, new id [unknown]@4)
[1861904.331] wl_registry@2.global(2, "zwp_linux_dmabuf_v1", 3)
[1861904.347] wl_registry@2.global(3, "wl_drm", 2)
[1861904.362] wl_registry@2.global(4, "wl_compositor", 4)
[1861904.377] -> wl_registry@2.bind(4, "wl_compositor", 3, new id [unknown]@5)
[1861904.398] wl_registry@2.global(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;