Skip to content

Instantly share code, notes, and snippets.

View hfiguiere's full-sized avatar

Hubert Figuière hfiguiere

View GitHub Profile
@hfiguiere
hfiguiere / epsonscan2-parse.py
Created March 19, 2024 03:38
Convert USB device list for flatpak USB device allow list
#!/bin/env python3
#
# Convert epsonscan2 rules.
import re
vendor_match = re.compile(r"^ATTR\{idVendor\}!=\"([\dabcdef]*)\"")
device_match = re.compile(r"^ATTRS\{idProduct\}==\"([\dabcdef]*)\"")
file = open('epsonscan2.rules', 'r')
@hfiguiere
hfiguiere / Commercial_Synth_Linux.md
Last active April 21, 2023 21:34
Commercial Synth running linux
@hfiguiere
hfiguiere / image_sorter.sh
Created October 16, 2022 21:55
Image Sorter
#/bin/sh
set -e
# very hackish
# Change the directory name below
# Make sure you have exiftool installed
#
# Will create a folder YYYYMMDD and move the image into it
# based on Exif, or at worse on the file date.
@hfiguiere
hfiguiere / fandom-track-list.txt
Last active February 27, 2024 19:25
Fandom/Wikia filters
[Adblock Plus 3.1]
! Title: Wiki/Fandom List, and more
!
! Block Wikia/Fandom trackers
!
||fastly-insights.com/b^
||fastly-insights.com/o.svg*
||fastly-insights.com/static/scout.js^
||beacon.wikia-services.com/__track/
||pixels.ad.gt/api/v1/getpixels^
@hfiguiere
hfiguiere / Cargo.toml
Created February 5, 2019 17:02
Gio build problem
[package]
name = "rust-sandbox"
version = "0.1.0"
authors = ["Hubert Figuière <hub@figuiere.net>"]
edition = "2018"
[dependencies]
gio = { git = "https://github.com/gtk-rs/gio" }
@hfiguiere
hfiguiere / test_abi.js
Created July 22, 2016 23:40
Sample AbiWidget in Python and JS.
var Gtk = imports.gi.Gtk;
var Abi = imports.gi.Abi;
Gtk.init(null, null)
var win = new Gtk.Window({title: 'AbiWord.js'});
Abi.init([]);
var widget = new Abi.Widget();
win.add(widget);
@hfiguiere
hfiguiere / gist:6912439
Last active December 25, 2015 03:49
AdBlock filter to remove the "new experience" button plagging everything on Flickr.
www.flickr.com##div[id='hermes-opt-in']