Skip to content

Instantly share code, notes, and snippets.

.env
data/
@FichteFoll
FichteFoll / .gitignore
Last active July 20, 2020 21:12
Soup Archiver - Small script to archive a page from soup.io
images/
posts/
reactions/
files/
*.html
*.log
@FichteFoll
FichteFoll / firefox_quantum_diary.md
Last active February 26, 2024 04:33
How I experienced the FireFox (FF) Quantum update, delivered with version 57, on Arch Linux.

My FireFox Quantum Diary

How I experienced the FireFox (FF) Quantum update, delivered with version 57, on Arch Linux.
You may be most interested in the Migration Cheat Sheet.

The following was written over multiple days, with the intention of both being a backup guide for myself

@FichteFoll
FichteFoll / snap_scenechanges.py
Last active May 10, 2019 06:41
Snap start and end times of ASS subtitles to scene changes using WWXD
#!/usr/bin/env python3.6
"""Snap start and end times of ASS subtitles to scene changes using WWXD.
Does not work with variable frame rate (VFR).
usage: snap_scenechanges.py [-h] [--epsilon EPSILON] [-o OUTPUT] [-v]
sub_path video_path
@FichteFoll
FichteFoll / Games_Done_Quick_Schedule_Enhancer.user.js
Last active March 10, 2020 03:50
Highlights currently active Event on GDQ schedule and adds an anchor. Also non-AM/PM timestamps.
// ==UserScript==
// @name Games Done Quick Schedule Highlight
// @namespace FichteFoll
// @author FichteFoll
// @description Highlights currently active Event on GDQ schedule and adds an anchor. Also non-AM/PM timestamps.
// @include https://gamesdonequick.com/schedule*
// @version 0.1.2
// @updateURL https://gist.github.com/FichteFoll/642b567943c0f957eef9ce32601ce944/raw/Games_Done_Quick_Schedule_Enhancer.user.js
// @grant none
// ==/UserScript==
@FichteFoll
FichteFoll / firegestures_open_in_mpv.js
Last active April 4, 2021 04:42
FireGestures script that opens a link or the current url in mpv
var mpv_exec = "/usr/bin/mpv";
function runCMD(cmd, args) {
// debug
console.log("executing: '" + cmd + "' with arguments " + args.toString());
// see: https://developer.mozilla.org/en-US/docs/XPCOM_Interface_Reference/nsIProcess
// create an nsIFile for the executable
var file = Components.classes["@mozilla.org/file/local;1"].createInstance(Components.interfaces.nsIFile);
file.initWithPath(cmd);
@FichteFoll
FichteFoll / power.py
Last active February 18, 2016 21:50
WIP hexchat script that hooks its WndProc to listen to hibernate and wakeup messages
import ctypes
from ctypes import byref, c_int, c_long, c_int64, addressof, WINFUNCTYPE
from ctypes.wintypes import (
HWND, DWORD, LPARAM, BOOL, WPARAM, LPDWORD, UINT, HINSTANCE, HHOOK
)
import os
# import hexchat
# script metadata
@FichteFoll
FichteFoll / test_visualindent.py
Created February 10, 2016 16:34
Draft of tests for Visual Indentation
import pytest
@pytest.parametrize(
['input', 'expected_output'],
[
# Fold in before space
("""
func(a, b, c,| d, e, f)
""",
@FichteFoll
FichteFoll / FX_utils.lua
Created October 1, 2015 23:42
Karaoke effect using Automation 4 for Ore no Imouto TR 15 (Ending)
--[[
A template script used for Automation 4 karaoke FXes with Aegisub
You will want to call `register()` at the end of your script or whenever at least `script_name` is defined.
Functions to be defined:
* init(subs, meta, styles) [optional]
Called after all possibly existing previous fx lines have been deleted and the karaoke lines restored.
Do whatever you like in here. Won't be called if `init` is nil.
@FichteFoll
FichteFoll / description.html
Last active August 29, 2015 14:20
fichtefoll.soup.io resources
<ul id="linkbox" class="size32">
<li><a class="rss" href="http://fichtefoll.soup.io/rss"></a></li>
<li><a class="lastfm" href="http://last.fm/user/fichtefoll"></a></li>
<li><a class="twitter" href="http://twitter.com/fichtefoll"></a></li>
<!-- <li><a class="wordpress" href="http://fichtefoll.akatsuki-subs.net"></a></li> -->
<li><a class="youtube" href="http://youtube.com/yisery"></a></li>
</ul>
<p>
Just a random collection of awesomeness or what I appreciate as awesome ;)
<br />