Skip to content

Instantly share code, notes, and snippets.

View Amunak's full-sized avatar
🐺
🐺

Jiří Barouš Amunak

🐺
🐺
View GitHub Profile
@Amunak
Amunak / municipalities.json
Created November 11, 2020 13:49
List of all municipalities (cities and villages) in Czech Republic (Czechia) and their postal codes (zip codes). Data from https://www.ceskaposta.cz/ke-stazeni/zakaznicke-vystupy#1, converted on 2020-11-11
// source: https://www.ceskaposta.cz/ke-stazeni/zakaznicke-vystupy
// file: "Seznam částí obcí a obcí s adresním PSČ (zip/xls)"
// retreived on 2020-11-11 and converted to JSON using fields "nazcobce", "psc"
[
{
"m":"Abertamy",
"pc":"36235"
},
{
@Amunak
Amunak / prune_backups.py
Last active April 3, 2020 18:22
A simple backup-pruning Python script
#!/usr/bin/env python3
from math import ceil
from pathlib import Path
from datetime import datetime
"""
A simple backup-pruning Python script
created by Amunak;
feel free to re-use and modify
@Amunak
Amunak / 5xBR-v3.7c.OpenGL.shader.yml
Created September 29, 2015 23:08
5xBR-v3.7c.OpenGL.shader
language: GLSL
linear: false
vertex: |
uniform vec2 rubyTextureSize;
void main() {
float dx = 1.0 / rubyTextureSize.x;
float dy = 1.0 / rubyTextureSize.y;
// A1 B1 C1
@Amunak
Amunak / cpmeta
Created May 9, 2015 19:46
Copies file metadata from source to destination tree
#!/bin/bash
myecho=echo
src_path="$1"
dst_path="$2"
find "$src_path" |
while read src_file; do
dst_file="$dst_path${src_file#$src_path}"
$myecho chmod --reference="$src_file" "$dst_file"
@Amunak
Amunak / abyssguard.php
Last active December 21, 2015 05:48
Deobfuscated version of AbyssGuard's core file abyssguard.php (AG v. 1.7.7)
<?php
/*
* Package: AbyssGuard
* Version: 1.7.7 (12. 8. 2013)
* Author: Julian Stoev (http://www.abyss-arts.co.uk/)
* License: GNU GPL v3
*
* Modified by: Amunak (https://amunak.net)
* This is hopefully "untouched", deobfuscated version of AbyssGuard's core file abyssguard.php