This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Script to count the git hosts used on ContentDB; tested w/ python 3.11 | |
| import requests, json, re, time, operator | |
| hosts = {} | |
| pkgnum = 0 | |
| def val(key): | |
| if key in hosts.keys(): | |
| return hosts[key] | |
| else: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| local FS = function(...) return minetest.formspec_escape(S(...)) end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| pkgver=14.0.2 | |
| _fedrel=3.fc38 | |
| wget https://kojipkgs.fedoraproject.org/packages/twitter-twemoji-fonts/${pkgver}/${_fedrel}/noarch/twitter-twemoji-fonts-${pkgver}-${_fedrel}.noarch.rpm |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| find . -type f -iname "*.png" -exec optipng -o7 -zm1-9 -nc -strip all -clobber {} \; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Based on https://gitea.your-land.de/your-land/bugtracker/issues/3723 (Thanks to Alias/Bastrabun) | |
| -- detect slow find_nodes_in_area calls | |
| local old_find_nodes_in_area = core.find_nodes_in_area | |
| local most_called = {} | |
| core.find_nodes_in_area = function(pos1, pos2, nodenames, grouped) | |
| local from = debug.getinfo(2, "nS") | |
| local t0 = core.get_us_time() | |
| local ret, ret2 = old_find_nodes_in_area(pos1, pos2, nodenames, grouped) | |
| local t1 = core.get_us_time() | |
| local spos = core.pos_to_string(vector.round(pos1)) or "" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| -- Run this script via qa_block (or similar); This checks if on_rightclick crashes without a valid ItemStack | |
| local player = minetest.get_player_by_name("Niklp") -- change this to your name | |
| local pos = vector.new(0,0,0) | |
| local count = 0 | |
| for _, node in pairs(minetest.registered_nodes) do | |
| if not node.name then | |
| minetest.log("warning", dump(node)) | |
| end | |
| minetest.set_node(pos, {name = node.name}) |