Skip to content

Instantly share code, notes, and snippets.

Diego Martínez kaeza

Block or report user

Report or block kaeza

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
#! /usr/bin/env python
# :coding=utf-8:
from __future__ import unicode_literals, print_function
import os
from Tkinter import *
from Tix import *
from tkMessageBox import showerror, showinfo
kaeza / zpackage.lua
Created Jan 7, 2017
ZIP module loader for Lua.
View zpackage.lua
-- ZIP module loader.
-- This is a module that contains a custom module loader that
-- loads modules from ZIP files.
-- Currently, only pure Lua modules are supported.
-- Intended usage:
kaeza / texutil.lua
Last active Apr 6, 2019
Minetest - texutil.lua
View texutil.lua
-- Work with textures as if they were objects.
-- All methods sanitize its arguments and perform any kind of
-- escaping needed.
-- A simple example:
-- local tex ="foo.png"):colorize("#FF0000", 255)
View minser.lua
-- Table serialization with minification.
-- This module contains functions to serialize tables to strings, and
-- deserialize these strings back to a table.
-- The serialized string is a representation of the table in Lua code.
-- The module does its best to generate the most compact code possible.
kaeza / bitty.lua
Last active Apr 26, 2019
Bitty - Implementation of bitwise operators in pure Lua
View bitty.lua
if false then -- For LuaDoc
-- Pure Lua implementation of bitwise operations.
-- Not suitable for time critical code. Intended as fallback
-- for cases where a native implementation is unavailable.
-- Further optimization may be possible.
-- @version 0.1
-- @author kaeza <>
module "bitty"
kaeza / mods.txt
Last active Jan 7, 2017
Most used mods in Minetest servers.
View mods.txt
This is a list of most used mods, sourced from the public data in
the public server list.
Items marked with '*' are mods that are currently part of the
development version of minetest_game, so they may be ignored.
Also note that since there may be several mods sharing a name, the
numbers may be a bit skewed.
kaeza / xban-grep.lua
Last active Jan 7, 2017
Search entries in databases for XBan2 mod for Minetest (
View xban-grep.lua
#! /usr/bin/env lua5.1
local l_os, l_io, l_loadfile =
os, io, loadfile
os, io, debug, loadfile, dofile, require = nil
local function load_db(filename)
local ok, r = pcall(l_loadfile, filename)
if not ok then error(r) end
ok, r = pcall(r)
kaeza / init.lua
Last active Aug 29, 2015
Minetest `notice` mod.
View init.lua
notice = { }
function notice.send(target, text)
local player = minetest.get_player_by_name(target)
if not player then
return false, ("There's no player named '%s'."):format(target)
local fs = { }
for _, line in ipairs(text:split("|")) do
You can’t perform that action at this time.