Skip to content

Instantly share code, notes, and snippets.

@Jordach
Jordach / gist:7711006
Last active Dec 29, 2015
use gcc clean.c then ./a.out /home/somewhere/.minetest/worlds/world/
View gist:7711006
/*
* Application to delete empty player files from a minetest world.
* Usage: ./clean /path/to/minetest/world
*
* Criteria for removal of a player file and auth line:
* The player must have nothing in his inventory and mut not have interact.
* This obviously won't work well for servers where interact is granted by
* default, but all you have to do is remove the
* " || strstr(player->privs, "interact")" part for those servers.
*/
View gist:7860213
jordach@TeslaBolt:~$ ping digitalaudioconcepts.com
PING digitalaudioconcepts.com (173.230.131.206) 56(84) bytes of data.
64 bytes from digitalaudioconcepts.com (173.230.131.206): icmp_req=1 ttl=41 time=263 ms
64 bytes from digitalaudioconcepts.com (173.230.131.206): icmp_req=2 ttl=41 time=251 ms
64 bytes from digitalaudioconcepts.com (173.230.131.206): icmp_req=3 ttl=41 time=253 ms
64 bytes from digitalaudioconcepts.com (173.230.131.206): icmp_req=4 ttl=41 time=259 ms
64 bytes from digitalaudioconcepts.com (173.230.131.206): icmp_req=5 ttl=41 time=259 ms
64 bytes from digitalaudioconcepts.com (173.230.131.206): icmp_req=6 ttl=41 time=263 ms
64 bytes from digitalaudioconcepts.com (173.230.131.206): icmp_req=7 ttl=41 time=257 ms
64 bytes from digitalaudioconcepts.com (173.230.131.206): icmp_req=8 ttl=41 time=277 ms
View gist:10260748
local is_soil = minetest.get_item_group(nu, "soil")
if is_soil == 0 then
return
end
View gist:dad17df0ae8c224db78a
•The P2P is **ONLY **to share updates via your OWN NETWORK.
•Telemetry - this is nothing new, Microsoft has collected logs and crash data from their OSes and Software for years. Even Apple does it with OSX. But if you are that paranoid download NTLite and remove Asimov.
•Real-Time Protection is there for a reason, to protect people. You can turn it off for varying intervals but yes it turns back on automatically to keep you protected. If you install a 3rd Party Antivirus like Trend Micro, Avast, etc. Windows 10 automatically disables Windows Defender.
•Cortana is a Web-Based service. The volume of data needed to make it work properly would not fit on most computers. But if you are that paranoid you can turn Cortana and Web Search off. On the taskbar click on the Magnifier icon, then click the Sandwich Icon top left, then click settings and turn Cortana and Web Search off. Then right click an empty space on the taskbar, click search and then hidden.
•Content-Suggestions - Yes the ads are there, but you can
View gist:59a86a36ab452291e2cb75f096c41c7b
default.player_register_model("character.b3d", {
animation_speed = 30,
textures = {"character.png", },
animations = {
-- Standard animations.
stand = { x= 0, y= 79, },
lay = { x=162, y=166, },
walk = { x=168, y=187, },
mine = { x=189, y=198, },
walk_mine = { x=200, y=219, },
View mcore.lua
mcore = {}
-- meshoptions helper function
-- setting meshtypes to:
-- cross is x
-- plus is +
-- croplike is #
-- excroplike is # but the tips are more like a >
-- asterisk is like * but with three faces
View test.lua
minetest.register_decoration({
deco_type = "schematic",
place_on = "core:grass",
sidelen = 16,
biomes = {"plains_forest", "plains", "plains_floral"},
fill_ratio = 0.02,
flags = "place_center_x, place_center_z",
schematic = {
size = {x=1, y=1, z=1},
data = {
View .lua
local totaldays = minetest.get_day_count()
local totalmonths = 1
local totalyears = years
repeat
totaldays = totaldays - 30
totalmonths = totalmonths + 1
if totalmonths == 13 then
View gist:c6da4911c5ce57a4bed1e848f1615a5c
local totaldays = 2982 --minetest.get_day_count()
local totalmonths = 1
local totalyears = 1
while totaldays >= 30 do
totaldays = totaldays - 30
totalmonths = totalmonths + 1
if totalmonths == 13 then
View gist:a0cf1ef22e2913da872f65f736a925bd
on_place = function(itemstack, placer, pointed_thing)
local stack = ItemStack(":")
local ret = minetest.item_place(stack, placer, pointed_thing)
return ItemStack("newhand:hand "..itemstack:get_count())
end,