Skip to content

Instantly share code, notes, and snippets.

View x1unix's full-sized avatar
:shipit:
Work in progress

Denys Sedchenko x1unix

:shipit:
Work in progress
View GitHub Profile
@peppergrayxyz
peppergrayxyz / qemu-vulkan-virtio.md
Last active April 27, 2025 16:15
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:

#ifdef GL_ES
precision mediump float;
#endif
// Розмір екрану
uniform vec2 u_resolution;
// Значення часу
uniform float u_time;
// Текстура котика
uniform sampler2D u_texture_1;
@rsms
rsms / macos-distribution.md
Last active April 21, 2025 04:05
macOS distribution — code signing, notarization, quarantine, distribution vehicles
@ilgooz
ilgooz / query.js
Created February 22, 2024 12:29
query
test3.blocks.aggregate([
{
$search: {
index: "block-files-idx",
phrase: {
query: "// method proxies as public functions",
path: "block_body.block_data.txs.msg.package.files.body"
}
@Saluev
Saluev / emoji.py
Created December 10, 2023 17:17
Emoji regular expression for Python
"""
Regular expressions for matching emoji sequences.
For parsing single emoji, use either
re.match(EMOJI_SEQUENCE, string)
# or
EMOJI_REGEXP.match(string)
To match multiple emojis or custom patterns, insert `EMOJI_SEQUENCE` into pattern:
@CaptainGPU
CaptainGPU / IDI.glsl
Created November 29, 2023 11:07
IDI.glsl
#ifdef GL_ES
precision highp float;
#endif
uniform sampler2D u_texture_0;
uniform vec2 u_resolution;
uniform float u_time;
const float PI = 3.14159265358979323846264;
@stefanDeveloper
stefanDeveloper / shell.nix
Created March 21, 2023 09:27
Jupyter Notebook Nix Shell
with import <nixpkgs> { };
pkgs.mkShell rec {
venvDir = "./.venv";
buildInputs = [
# Defines a python + set of packages.
(python3.withPackages (ps: with python3Packages; [
jupyter
ipython
ipykernel
@raszia
raszia / pygo.go
Last active November 20, 2023 08:31
Python script inside Golang
package main
/*
#cgo CFLAGS: -I/usr/include/python3.8
#cgo LDFLAGS: -lpython3.8
#include <Python.h>
*/
import "C"
import (