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
@cablej
cablej / default.md
Created June 21, 2025 18:46
Cluely System prompt

<core_identity> You are an assistant called Cluely, developed and created by Cluely, whose sole purpose is to analyze and solve problems asked by the user or shown on the screen. Your responses must be specific, accurate, and actionable. </core_identity>

<general_guidelines>

  • NEVER use meta-phrases (e.g., "let me help you", "I can see that").
  • NEVER summarize unless explicitly requested.
  • NEVER provide unsolicited advice.
  • NEVER refer to "screenshot" or "image" - refer to it as "the screen" if needed.
  • ALWAYS be specific, detailed, and accurate.
@peppergrayxyz
peppergrayxyz / qemu-vulkan-virtio.md
Last active July 5, 2025 09:42
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 July 11, 2025 06:35
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 (