Skip to content

Instantly share code, notes, and snippets.

View CyberShadow's full-sized avatar

Vladimir Panteleev CyberShadow

View GitHub Profile
@CyberShadow
CyberShadow / osx.org
Last active November 27, 2025 10:32
Setting up OS X from scratch

Setting up OS X from scratch (on libvirt/QEMU/KVM)

Motivation

  • I have a MacBook1,1, but its HDD died.
  • I need an instance of OS X mainly to build OS X binaries of some of my open-source software.

OS X 10.4 (Tiger)

  1. Obtain installation medium
-- autosave.lua
--
-- Periodically saves "watch later" data during playback, rather than only saving on quit.
-- This lets you easily recover your position in the case of an ungraceful shutdown of mpv (crash, power failure, etc.).
--
-- You can configure the save period by creating a "lua-settings" directory inside your mpv configuration directory.
-- Inside the "lua-settings" directory, create a file named "autosave.conf".
-- The save period can be set like so:
--
-- save_period=60
#!/bin/env rdmd
module xorg_show_grabs;
import std.algorithm;
import std.conv;
import std.exception;
import std.getopt;
import std.stdio;
import std.string;
@CyberShadow
CyberShadow / llama-cpp-cuda.nix
Created February 25, 2024 19:06
Run llama.cpp / .llamafiles with Nix
let
package = {
writeShellScript
, llama-cpp
, nixGL
}:
writeShellScript "run-llamafile" ''
if [ $# -eq 0 ] ; then
echo "Usage: $0 server -m wizardcoder-python-13b-v1.0.Q4_K_M.gguf -ngl 9999"
exit 2
@CyberShadow
CyberShadow / .gitignore
Last active August 1, 2025 21:32
uinput-filter-mouse - program to filter and rewrite uinput events
/uinput-filter-mouse
/config.h
@CyberShadow
CyberShadow / .gitignore
Last active July 24, 2025 20:53
Buckshot Roulette solver
/search_shootself
# System - Core
# ld
IgnorePath '/etc/ld.so.cache' # "File containing an ordered list of libraries found in the directories specified in /etc/ld.so.conf, as well as those found in the trusted directories."
# info
IgnorePath '/usr/share/info/dir'
# locate
/play
/*.png
/*.bmp
/solitaire
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@CyberShadow
CyberShadow / config.py
Last active October 28, 2024 07:25
My Blankie configuration
# Sample Blankie configuration file.
# The main duty of thes configuration file is to define a function,
# config, which configures Blankie according to the current
# circumstances. Using the provided configuration object, the
# function tells Blankie what state the system should be in, and
# Blankie takes care to apply any changes necessary to bring the
# system to that state.
# This function is re-evaluated every time the context (idle time /