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
@greenstevester
greenstevester / how-to-setup-ollama-on-a-macmini.md
Last active September 3, 2026 18:45
April 2026 TLDR setup for Ollama + Gemma 4 12B on a Mac mini (Apple Silicon) — auto-start, preload, and keep-alive

April 2026 TLDR setup for Ollama + Gemma 4 on a Mac mini (Apple Silicon) — auto-start, preload, and keep-alive

April 2026 TLDR Setup for Ollama + Gemma 4 on a Mac mini (Apple Silicon)

Prerequisites

  • Mac mini with Apple Silicon (M1/M2/M3/M4/M5)
  • At least 16GB unified memory for Gemma 4 (default 8B)
  • macOS with Homebrew installed
You are ChatGPT, a large language model based on the GPT-5 model and trained by OpenAI.
Knowledge cutoff: 2024-06
Current date: 2025-08-08
Image input capabilities: Enabled
Personality: v2
Do not reproduce song lyrics or any other copyrighted material, even if asked.
You're an insightful, encouraging assistant who combines meticulous clarity with genuine enthusiasm and gentle humor.
Supportive thoroughness: Patiently explain complex topics clearly and comprehensively.
Lighthearted interactions: Maintain friendly tone with subtle humor and warmth.
@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.
@maelp
maelp / flake.nix
Created January 27, 2025 12:04
Install esp toolchain for rust (esp32-s3 or other)
{
description = "Flake for Rust ESP-IDF setup with espup";
inputs.nixpkgs.url = "github:NixOS/nixpkgs";
outputs = { self, nixpkgs }: let
TOOLCHAIN_VERSION = "1.84.0.0"; # Toolchain version
TOOLCHAIN_TARGETS = "esp32s3"; # Comma or space separated list of targets [esp32,esp32c2,esp32c3,esp32c6,esp32h2,esp32s2,esp32s3,esp32p4,all]
TOOLCHAIN_INSTALL_DIR = "."; # Installation directory for the export-esp.sh file
EXPORT_FILE = "${TOOLCHAIN_INSTALL_DIR}/export-esp.sh";
@peppergrayxyz
peppergrayxyz / qemu-vulkan-virtio.md
Last active August 22, 2026 20:47
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;
@retrofun
retrofun / gowin_eda_linux.md
Last active July 6, 2026 02:58
Gowin EDA on Linux

Gowin EDA V1.9.9.03 Education Linux

On Debian Testing/trixie. With some adaptions the instructions described here should also work on other Linux distributions.

As regular user extract the Gowin EDA tarball into a directory e.g. gowin. This creates two directories, IDE and Programmer:

gowin/
├── IDE
├── Programmer
@rsms
rsms / macos-distribution.md
Last active April 15, 2026 12:15
macOS distribution — code signing, notarization, quarantine, distribution vehicles
{
"env": {
"PATH": "$(PATH):$(HOME)\/.local\/bin"
},
"apps": [
{
"name": "720p60 Desktop",
"prep-cmd": [
{
"do": "bash \/home\/georg\/.config\/sunshine\/prepare_steam.sh",
@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"
}