This file contains 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 filepath = minetest.get_modpath(minetest.get_current_modname()) .. "/it.lua" | |
minetest.register_chatcommand("reloadit", { | |
params = "reloadit", | |
description = "Reload the contents of this mod", | |
privs = {server=1}, | |
func = function(name, player) | |
dofile(filepath) | |
end | |
}) |
This file contains 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
minetest.unregister_chatcommand("setpassword") |
This file contains 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
@charset "UTF-8"; | |
/*! | |
* Bootswatch v5.3.2 (https://bootswatch.com) | |
* Theme: flatly | |
* Copyright 2012-2023 Thomas Park | |
* Licensed under MIT | |
* Based on Bootstrap | |
*/ | |
/*! | |
* Bootstrap v5.3.2 (https://getbootstrap.com/) |
This file contains 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
while true; do | |
minetest --server --config ~/.minetest/1.conf --world ~/.minetest/worlds/world1 --port 30000 | |
sleep 1 | |
done; |
This file contains 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
# Remove any dependencies from a deb file | |
# Mostly useful for installing foreign packages. Use at own risk; without | |
# dependencies your package may break easily. | |
if [ -z "$1" ]; then | |
echo "No argument given" | |
exit 1 | |
fi | |
debfile="$1" | |
if [ ! -f "$debfile" ]; then | |
echo "No such file: $debfile" |
This file contains 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
#!/bin/sh | |
cows=$(ls /usr/share/cowsay/cows) | |
nCows=$(ls -1 /usr/share/cowsay/cows/ | wc -l) | |
x=$(head -c1 /dev/random | hexdump -e '"%d"') | |
nChoice=$((($x*$nCows)/255)) | |
choice=$(ls -1 /usr/share/cowsay/cows/ | sed -n ${nChoice}s/.\cow$//p) | |
fortune | cowsay -f $choice |
This file contains 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 BLOCK_SIZE = 4096 | |
-- Internal: Open the file or die | |
-- External users should catch the error if they wish | |
local function openordie(filename, mode) | |
handle, err = io.open(filename, mode) | |
if err then | |
error(err) | |
end | |
return handle |