Skip to content

Instantly share code, notes, and snippets.

@gregorycollins
gregorycollins / keybase.md
Created August 20, 2016 03:10
Keybase proof

Keybase proof

I hereby claim:

  • I am gregorycollins on github.
  • I am gregorycollins (https://keybase.io/gregorycollins) on keybase.
  • I have a public key whose fingerprint is 7BAF 1DF4 E804 63DA D3BD B95B 8E2E D6AF EE46 7F65

To claim this, I am signing this object:

@gregorycollins
gregorycollins / 00-hacking-tilix-smaller-chrome.md
Last active November 16, 2023 12:55
How to hack your tilix to make tab/window chrome smaller

How to hack your Tilix to make tab/window chrome smaller

I really like the Tilix terminal emulator, but I hate how much space the default chrome takes up:

before

Those tabs are enormous! But did you know that this is user-configurable? GTK3 widgets are styled using CSS, and you can override the rules in ~/.config/gtk-3.0/gtk.css. Add the following rules to this file:

@gregorycollins
gregorycollins / ringbuf_counter.hpp
Created August 17, 2019 14:12
Arduino frequency counter ring buffer
// we expect a timeslice to be 1024 micros
static constexpr uint32_t TIMESLICE_LEN_US = 1024;
struct ringbuf_counter {
// must be power of 2
static constexpr int NDATA = 512;
uint16_t data[NDATA];
int start = 0;
int idx = 0;
int n = 0;