Skip to content

Instantly share code, notes, and snippets.

View CyberShadow's full-sized avatar

Vladimir Panteleev CyberShadow

View GitHub Profile
@CyberShadow
CyberShadow / dummy.txt
Created November 8, 2022 16:03
Inscryption solver
dummy
@CyberShadow
CyberShadow / .gitignore
Created November 8, 2022 13:15
Inscryption solver
/problem
/solution.txt
@CyberShadow
CyberShadow / planner.html
Created September 26, 2022 10:09
Satisfactory planner
<!doctype html>
<html lang="en">
<head>
<script crossorigin src="https://visjs.github.io/vis-network/standalone/umd/vis-network.min.js"></script>
<style type="text/css">
* {
box-sizing: border-box;
@CyberShadow
CyberShadow / test.d
Created August 29, 2022 16:36
Parallel sort experiments
import std.algorithm.iteration;
import std.algorithm.mutation;
import std.algorithm.sorting;
import std.datetime.stopwatch;
import std.exception;
import std.parallelism;
import std.random;
import std.range;
import std.stdio;
import std.typecons;
@CyberShadow
CyberShadow / test_singleset.d
Created August 13, 2022 10:19
combinatorial number system encoder/decoder
import ae.utils.meta;
R binomialCoefficient(T, R=T)(T n, T m)
{
if (n < m)
return R(0);
R result = 1;
foreach (i; n - m + 1 .. n + 1)
result *= i;
foreach (i; 1 .. m + 1)
#!/bin/bash
set -eEuo pipefail
if [[ $EUID -ne 0 ]] ; then exec sudo "$0" "$@" ; fi
dir=/tmp/mNPJYwnwQt
btdu=${BTDU:-btdu}
mkdir "$dir"
trap 'rmdir "$dir"' EXIT
@CyberShadow
CyberShadow / config.py
Last active March 10, 2024 21:34
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