Skip to content

Instantly share code, notes, and snippets.

View Akaricchi's full-sized avatar

Andrei Alexeyev Akaricchi

View GitHub Profile
@joefutrelle
joefutrelle / binpack2.py
Last active September 15, 2021 02:25
Numba implementation of Guillotine bin packing
import numba as nb
from numba.typed import List
NO_ID = -1
DOESNT_FIT = 99999999
NO_SECTION = (0, 0, 0, 0, DOESNT_FIT)
@nb.jitclass([
('x', nb.int32),
('y', nb.int32),
@t-mat
t-mat / 00results.md
Last active August 2, 2023 23:42
Experimental zstd-PNG converter
File Deflate zstd Ratio (zstd/Deflate)
airplane.png 450502 423563 0.940
arctichare.png 264422 250521 0.947
baboon.png 637192 627087 0.984
barbara.png 185727 178611 0.962
boat.png 177762 167658 0.943
cat.png 663451 677684 1.021
fruits.png 472100 448872 0.951
frymire.png 252124 383891 1.523
@shamil
shamil / mount_qcow2.md
Last active May 3, 2024 06:35
How to mount a qcow2 disk image

How to mount a qcow2 disk image

This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.

Step 1 - Enable NBD on the Host

modprobe nbd max_part=8
@Akaricchi
Akaricchi / fuu.txt
Created July 28, 2011 14:50 — forked from anonymous/fuu.txt
tralalalalala
sv_motd ""
maxplayers 16
minplayers 2 //bots
port 26000
log_file "nexuiz-server.log"
sv_friction_on_land 0.3