Skip to content

Instantly share code, notes, and snippets.

@alganet
alganet / c89cc.sh
Last active May 17, 2026 05:05
c89cc.sh - standalone C89/ELF64 compiler in pure portable shell
#!/bin/sh
# ISC License
# Copyright (c) 2026 Alexandre Gomes Gaigalas <alganet@gmail.com>
# Permission to use, copy, modify, and/or distribute this software for any
# purpose with or without fee is hereby granted, provided that the above
# copyright notice and this permission notice appear in all copies.
# THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
@NiklasRosenstein
NiklasRosenstein / README.md
Last active December 20, 2025 16:50
Immich Album Downloader

Immich Album Downloader

An album downloader for Immich.

Usage

$ deno run https://gist.githubusercontent.com/NiklasRosenstein/91d1bfc22485a4530271959300a69acf/raw/main.ts \
@peppergrayxyz
peppergrayxyz / qemu-vulkan-virtio.md
Last active May 16, 2026 23:56
QEMU with VirtIO GPU Vulkan Support

QEMU with VirtIO GPU Vulkan Support

With its latest reales qemu added the Venus patches so that virtio-gpu now support venus encapsulation for vulkan. This is one more piece to the puzzle towards full Vulkan support.

An outdated blog post on clollabora described in 2021 how to enable 3D acceleration of Vulkan applications in QEMU through the Venus experimental Vulkan driver for VirtIO-GPU with a local development environment. Following up on the outdated write up, this is how its done today.

Definitions

Let's start with the brief description of the projects mentioned in the post & extend them:

@0wwafa
0wwafa / PRINT_CLAUDE.md
Last active May 10, 2026 21:12
Print / Export Claude Chat

Go to https://claude.ai/chat/new (or any other chat you had in the past).

Then run this code:

function printClaude() {   // (C) 2024 by ZeroWw. If you use this code, just give me some credit.
    const centralPart = document.querySelector('.flex-1.flex.flex-col.px-4.max-w-3xl.mx-auto.w-full.pt-1');

    if (centralPart) {
        // Expand all "show more" buttons
        document.querySelectorAll('button').forEach(button => {
@Nondv
Nondv / stupid-lisp-interpreter.clj
Last active March 31, 2025 20:35
A simple lisp POC implemented in clojure. Dynamically bound. Lambdas can receive code unevaluated. Written just to prove a point LOL
(comment
;; To run code from the file:
(stupid-eval
'()
(read-string (slurp "code.lisp")))
)
(declare stupid-eval)
(defn third [lst]

My TrueNAS Scale server recently started throwing the following zfs module kernel panic on boot:

PANIC at space_map.c:405:space_map_load_callback()

What follows are the steps I took to retrieve the data from the corrupted zfs pool.

Getting setup

@foxel
foxel / midpass.js
Created February 27, 2023 15:33 — forked from bushaev-denis/midpass.js
Midpass calendar notify has available record
const beep = (date) => {
const context = new AudioContext();
const oscillator = context.createOscillator();
oscillator.type = "sawtooth";
oscillator.frequency.value = 1200;
oscillator.connect(context.destination);
oscillator.start();
if (confirm("Появилась запись")) {
oscillator.stop();
document.location.href = 'https://q.midpass.ru/ru/Booking/Date?serviceId=54030d6a-e145-08e2-60fb-33344fac2455&date=' + date;
@adis-io
adis-io / README.md
Last active January 31, 2023 18:20
Gopass + Chrome + TouchID
@bushaev-denis
bushaev-denis / midpass.js
Last active April 6, 2024 14:09
Midpass calendar notify has available record
const beep = () => {
const context = new AudioContext();
const oscillator = context.createOscillator();
oscillator.type = "sawtooth";
oscillator.frequency.value = 1200;
oscillator.connect(context.destination);
oscillator.start();
if (confirm("Появилась запись")) {
oscillator.stop();
}
@dbrookman
dbrookman / build-mpv_silicon.sh
Last active April 5, 2026 08:16
How to build mpv & mpv.app on an Apple silicon Mac
#!/usr/bin/env bash
# Builds mpv & mpv.app on Apple silicon Macs.
# Run this script from the root directory of the mpv repo.
# if anything fails, gtfo
set -ex
meson setup build
meson compile -C build