Skip to content

Instantly share code, notes, and snippets.

View kice's full-sized avatar

kice

  • The Land of HiRes Anime
View GitHub Profile
@kice
kice / mcexport.py
Created April 30, 2020 22:53
Convert MineCraft JSON model to Source engine model
import collections
import io
import json
import logging
import logging.handlers
import math
import os
import shutil
import struct
import subprocess
{
'"': '"',
'#': '#',
'%': '%',
'&': '&',
'*': '*',
':': ':',
'<': '<',
'>': '>',
'?': '?',
!"#$%&'()*+,-./0
123456789:;<=>?@
ABCDEFGHIJKLMNOP
QRSTUVWXYZ[\]^_`
abcdefghijklmnop
qrstuvwxyz{|}~©®
°´·ºáéòúōǝɔɞɥʘʚΟ
ΨίειλμπωАВДЕЗЛМН
ОПРСТХЧабвгдежзи
йклмнопрстуфхцчш
@kice
kice / fmtlog.h
Last active October 27, 2022 07:31
<fmt> logging library
#pragma once
#ifdef _DEBUG
#define FMTLOG_ENABLE
#endif
#include <string>
#include <functional>
#define FMT_HEADER_ONLY
@kice
kice / bandwidthd.widget.php
Last active November 14, 2022 17:59
OPNsense dashboard widget for bandwidthd
<?php
/*
* Copyright (C) 2014 Deciso B.V.
* Copyright (C) 2009 Scott Ullrich <[email protected]>
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice,