Skip to content

Instantly share code, notes, and snippets.

View david-haerer's full-sized avatar

David Härer david-haerer

View GitHub Profile
/*
* autoholdclick - auto clicking while holding a button (for Linux only).
*
* Build:
* cc -o autoholdclick autoholdclick.c $(pkg-config --cflags --libs libevdev)
*
* This software is in the public domain.
*/
#include <libevdev/libevdev-uinput.h>
@kassane
kassane / std_log.md
Last active September 3, 2024 00:22 — forked from leecannon/std_log.md
Quick overview of Zig's `std.log`

A simple overview of Zig's std.log for Zig v0.12.0 or higher

Logging functionality that supports:

  • If a log message should be printed is determined at comptime, meaning zero overhead for unprinted messages (so just leave the code peppered with debug logs, but when it makes sense scope them; so downstream users can filter them out)
  • Scoped log messages
  • Different log levels per scope
  • Overrideable log output (write to file, database, etc.)
  • All the standard std.fmt formatting magic

Basic Usage:

@Gnzlt
Gnzlt / gourcevideo.sh
Created March 6, 2019 13:25
Gource video export command
#!/bin/bash
gource \
-s .03 \
-1280x720 \
--auto-skip-seconds .1 \
--multi-sampling \
--stop-at-end \
--key \
--highlight-users \