Skip to content

Instantly share code, notes, and snippets.

@peppergrayxyz
peppergrayxyz / qemu-vulkan-virtio.md
Last active April 21, 2025 18:59
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:

@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, 2025 10:57
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
@joelonsql
joelonsql / PostgreSQL-EXTENSIONs.md
Last active April 17, 2025 05:24
1000+ PostgreSQL EXTENSIONs

🗺🐘 1000+ PostgreSQL EXTENSIONs

This is a list of URLs to PostgreSQL EXTENSION repos, listed in alphabetical order of parent repo, with active forks listed under each parent.

⭐️ >= 10 stars
⭐️⭐️ >= 100 stars
⭐️⭐️⭐️ >= 1000 stars
Numbers of stars might not be up-to-date.

FROM mcr.microsoft.com/dotnet/core/aspnet:3.1-buster-slim
#Install dependencies used by gdal and ora2pg
RUN apt-get update && apt-get install -y -q --no-install-recommends \
libc-bin unzip ca-certificates libaio1 wget libtiff-dev libcurl4-openssl-dev \
#Package manager for installing Oracle
alien \
# Install postgresql
postgresql-client \
# Used for the POSTGRES_HOME variable
@anton0xf
anton0xf / evince-bookmarks-to-pdftk-outline.md
Last active January 10, 2022 09:05
Convert evince bookmarks to PDF outline

extract bookmarks:

$ gio info -a "metadata::evince::bookmarks" coq-art.pdf \
    | sed -n '/metadata::/ s/^.*: //p' > coq-art.bookmarks

and restore its by:

gio set coq-art.pdf 'metadata::evince::bookmarks' "$(cat coq-art.bookmarks)"