Skip to content

Instantly share code, notes, and snippets.

View fabtjar's full-sized avatar

FabianTJ fabtjar

View GitHub Profile
@appelgriebsch
appelgriebsch / t480-fedora-fingerprint.md
Created November 20, 2022 10:51 — forked from borcean/t480-fedora-fingerprint.md
ThinkPad T480 fingerprint reader on Fedora Linux

ThinkPad T480 fingerprint reader on Fedora Linux

Background

The Synaptics fingerprint sensor (06cb:009a) present on my T480 is not supported by libfprint and fprintd as it requires a non-free binary blob. uunicorn created open-fprintd, a replacement for fprintd, that allows for loading of binary blobs. In conjunction with their python-validity driver we are able to make use of the inbuilt fingerprint reader. The following instructions were tested against Fedora Linux 35.

Installing open-fprintd and python-validity

sudo dnf copr enable tigro/python-validity
sudo dnf install open-fprintd fprintd-clients fprintd-clients-pam python3-validity
@Yanrishatum
Yanrishatum / TweakSaver.hx
Created April 13, 2021 08:29
Macro-powered tweak handler
package core.macro;
import haxe.macro.Context;
using haxe.macro.Tools;
class TweakSaver {
public static macro function load() {
var res = [];
@lucien144
lucien144 / cache-clear.sh
Last active November 20, 2024 05:02
Clear Cloudflare cache from command line.
#!/bin/bash
curl -X POST "https://api.cloudflare.com/client/v4/zones/{$ZONE_ID}/purge_cache" \
-H "X-Auth-Email: {$EMAIL}" \
-H "X-Auth-Key: {$API_KEY}" \
-H "Content-Type: application/json" \
--data '{"purge_everything":true}'
@dergachev
dergachev / GIF-Screencast-OSX.md
Last active October 31, 2025 16:45
OS X Screencast to animated GIF

OS X Screencast to animated GIF

This gist shows how to create a GIF screencast using only free OS X tools: QuickTime, ffmpeg, and gifsicle.

Screencapture GIF

Instructions

To capture the video (filesize: 19MB), using the free "QuickTime Player" application: