Skip to content

Instantly share code, notes, and snippets.

View CyberShadow's full-sized avatar

Vladimir Panteleev CyberShadow

View GitHub Profile
@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 /
@CyberShadow
CyberShadow / Makefile
Last active May 21, 2022 12:05
hackbrary to measure realloc count and duration
PREFIX=/usr/local
LIB32=lib32
LIB64=lib64
all: lib
lib: lib32/ralcount.so lib64/ralcount.so
lib32:
mkdir lib32
@CyberShadow
CyberShadow / .gitignore
Last active May 8, 2022 07:59
dV AFK mining script
/mining
@CyberShadow
CyberShadow / .gitignore
Last active March 10, 2022 03:33
Loop Hero tools
/ocr
/gamedata
@CyberShadow
CyberShadow / favicon_ua.d
Last active November 14, 2022 02:14
favicon_ua
// ProxyPassMatch "^/(favicon\.ico)$" http://127.2.146.142:14471/$REAL_UPSTREAM/$1 nocanon
import std.algorithm.searching;
import std.stdio : stderr;
import std.string : split, join;
import ae.net.asockets;
import ae.net.http.client;
import ae.net.http.responseex;
import ae.net.http.server;
@CyberShadow
CyberShadow / a.d
Created February 7, 2022 16:45
Eponymous template problem
struct A{}
template bind(int i)
{
void bind(T)(T t) if (is(T:A)) {}
}
@CyberShadow
CyberShadow / .gitignore
Last active November 2, 2021 20:22
Incipient generators
/test
/amuletgen
@CyberShadow
CyberShadow / build2.sh
Created September 25, 2021 16:15
btdu-static-x86_64 build script
#!/bin/bash
set -eEuo pipefail
cd ..
args=(
ldc2
-i
-ofbtdu-static-x86_64
-L-Lrelease
@CyberShadow
CyberShadow / .gitignore
Last active September 13, 2021 19:08
Illustrations for btdu
/draw
/illustrations.svg
@CyberShadow
CyberShadow / .gitignore
Created August 2, 2021 10:39
Scripts for generating / managing di.fm playlists
/key.txt