Skip to content

Instantly share code, notes, and snippets.

View crahan's full-sized avatar

Thomas Bouve crahan

View GitHub Profile
@Ardillo
Ardillo / js
Created December 17, 2019 22:37
window.setInterval(thanosify, 2000);
function thanosify(){
[].forEach.call(document.querySelectorAll('.player'), function (el) {
if (el.className.includes("me")) {
console.log(el)
} else {
el.style.visibility = 'hidden'
}
});}
@3lpsy
3lpsy / x-resize
Last active September 22, 2025 13:13
Manual Implementation of Auto Resizing For Non-Gnome Environments (like XFCE) running under Spice/Libvirt
#!/bin/bash
# SPDX-License-Identifier: MIT License
# Steps:
# 1) Make sure bash is available
# 2) Create udev rule
# - path to new udev rule: /etc/udev/rules.d/50-x-resize.rules
# - udev rule content:
# ACTION=="change",KERNEL=="card0", SUBSYSTEM=="drm", RUN+="/usr/local/bin/x-resize"
# 3) Create /var/log/autores directory
# 4) Create script /usr/local/bin/x-resize (this file) and make executable
@joswr1ght
joswr1ght / apple_notes_to_markdown.py
Created December 9, 2025 16:56
Convert Apple Notes Data on MacOS to Markdown
#!/usr/bin/env python3
# /// script
# requires-python = '>=3.10'
# dependencies = []
# ///
"""
Convert Apple Notes from NoteStore.sqlite to Markdown files.
Written with Claude Code, 2025-12-09 Joshua Wright