Skip to content

Instantly share code, notes, and snippets.

View henriqueffc's full-sized avatar

Henrique Custódio henriqueffc

View GitHub Profile
@pojntfx
pojntfx / README.md
Last active July 15, 2025 01:24
Forward multiple Wayland applications via a single `waypipe` connection

Extra QEMU arguments to enable headless virgl/hardware accelerated rendering:

-device vhost-vsock-pci,guest-cid=3 -display egl-headless,gl=on

On client:

rm -f /tmp/socket-local; waypipe -s /tmp/socket-local client # TCP
@peppergrayxyz
peppergrayxyz / qemu-vulkan-virtio.md
Last active October 14, 2025 18:01
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:

{
"input": {
"blocklist": [],
"compressor#0": {
"attack": 5.0,
"boost-amount": 6.0,
"boost-threshold": -72.0,
"bypass": false,
"dry": -100.0,
"hpf-frequency": 10.0,
@platu
platu / lab15+ansible+incus.md
Last active February 26, 2025 09:26
Using Ansible to automate the installation of Web servers on Incus system containers
tags
m1, Devnet, incus, linux, lab15

DevNet Lab 15 -- Using Ansible to automate the installation of Web servers on Incus system containers

[toc]


Background / Scenario

@drequeary
drequeary / newTabBackgroundSingle.css
Last active July 17, 2025 23:13
Changes new tab background for Firefox.
@-moz-document url("about:newtab"), url("about:home"), url(about:privatebrowsing) {
/* Sets background image and autoscale image to browser window. */
body{
background-image: url("") !important;
background-size: cover !important;
background-repeat: no-repeat !important;
background-attachment: fixed !important;
background-position-x: center !important;
background-position-y: bottom !important;
}
@drequeary
drequeary / newTabBackground.css
Last active March 26, 2025 21:52
CSS for customizing new tab background in Firefox userContent.css.
@-moz-document url("about:home") {
/* Sets home tab background image. */
body{
background-image: url("") !important;
}
}
@-moz-document url("about:newtab") {
/* Sets new tab background image. */
body{
@mjkstra
mjkstra / arch_linux_installation_guide.md
Last active October 25, 2025 04:49
A modern, updated installation guide for Arch Linux with BTRFS on an UEFI system
#!/bin/bash
# Defina as variáveis personalizadas
HOSTNAME="archlinux"
USERNAME="seu_usuario"
PASSWORD="sua_senha"
DISK="/dev/sda"
# Particionamento do disco
parted --script $DISK mklabel gpt
@akitaonrails
akitaonrails / win11.xml
Created January 17, 2023 16:29
My Windows 11 libvirt XML configuration
<domain type='kvm'>
<name>win11-real</name>
<uuid>45768371-b871-4937-b7c2-60ed835011de</uuid>
<metadata>
<libosinfo:libosinfo xmlns:libosinfo="http://libosinfo.org/xmlns/libvirt/domain/1.0">
<libosinfo:os id="http://microsoft.com/win/10"/>
</libosinfo:libosinfo>
</metadata>
<memory unit='KiB'>33554432</memory>
<currentMemory unit='KiB'>33554432</currentMemory>
@sophuric
sophuric / archwiki.sh
Last active February 10, 2023 17:28
script to search locally downloaded ArchWiki pages using dmenu
#!/usr/bin/bash
HTML_CLIENT="librewolf"
AW="/usr/share/doc/arch-wiki/html/$(locale|grep "^LANG="|sed "s|^LANG=||;s|[_. :].*||")"
while true; do
if [[ -d "$AW" ]]; then
cd -- "$AW"
RES="$(printf "%s\n" Cancel * | dmenu -i)"
if [[ "$RES" == "Cancel" ]]; then exit; fi
AW="$AW/$RES"
else if [[ -f "$AW" ]]; then