Skip to content

Instantly share code, notes, and snippets.

@doyousketch2
doyousketch2 / README.txt
Created July 22, 2019 21:27
Auto grant OP and VOICE in HexChat
https://git.io/fjDec
@doyousketch2
doyousketch2 / translate_mt.py
Last active June 28, 2019 09:20
Translate Minetest players in IRC
##=========================================================
## @Doyousketch2 AGPL-3 Jun 17, 2019
## https://www.gnu.org/licenses/agpl-3.0.en.html
#
# sudo apt install translate-shell
##=========================================================
## header
__module_name__ = 'Translate'
__module_version__ = '1.5'
@doyousketch2
doyousketch2 / mt_bots.lua
Last active May 29, 2020 21:31
Ignore Minetest IRC passthrough chat-bots in HexChat
-----------------------------------------------------------
-- @Doyousketch2 AGPL-3 Jun 21, 2019
-- https://www.gnu.org/licenses/agpl-3.0.en.html
-----------------------------------------------------------
-- header
local name = 'mt_bots.lua'
local version = '1.1'
local description = 'Ignore Minetest IRC Bots'
@doyousketch2
doyousketch2 / ignore_bots.py
Last active May 29, 2020 21:31
Ignore IRC bots in HexChat
##=========================================================
## @Doyousketch2 AGPL-3 Jun 21, 2019
## https://www.gnu.org/licenses/agpl-3.0.en.html
##=========================================================
## header
__module_name__ = 'Ignore Bots'
__module_version__ = '1.0'
__module_description__ = 'Ignore Bots in IRC'
@doyousketch2
doyousketch2 / mt_gles.sh
Last active August 14, 2019 16:42
Minetest GLES notes
sudo apt update
sudo apt remove libirrlicht-dev
sudo apt install libglfw3-dev libgles2-mesa-dev mesa-common-dev mlocate notify-osd
## not needed, but tried:
## sudo apt install libglu1-mesa-dev freeglut3-dev libcogl-dev
git clone --recursive --depth 1 -b ogl-es https://github.com/zaki/irrlicht.git irrlicht-gles
cd irrlicht-gles/source/Irrlicht
@doyousketch2
doyousketch2 / luacontroller_interrupt.lua
Created June 2, 2019 16:02
Use interrupt to create a delay in Minetest Luacontrollers
local delay = 1
if event.type == 'program' then
interrupt( delay, 'Once' )
interrupt( delay, 'Loop' )
end
if event.type == 'interrupt' then
if event.iid == 'Once' then
@doyousketch2
doyousketch2 / taskbar_tint.py
Created March 8, 2019 12:04
color your LXDE taskbar on the weekend
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
##=========================================================
## taskbar_tint.py Mar 2019
##
## Eli Innis @Doyousketch2 Doyousketch2 @ yahoo.com
##
## GNU GPLv3 gnu.org/licenses/gpl-3.0.html
@doyousketch2
doyousketch2 / beautifulSoup.py
Last active December 30, 2018 15:30
beautifulSoup.py
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
##=========================================================
## beautifulSoup.py Dec 2018
## Eli Innis @Doyousketch2 Doyousketch2 @ yahoo.com
## GNU AGPLv3 gnu.org/licenses/agpl-3.0.en.html
""" required ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~"""
## sudo pip3 install requests beautifulsoup4 html5lib lxml
@doyousketch2
doyousketch2 / body.lua
Created December 2, 2018 02:04
body.lua
-- title: ModelRenderer
-- author: FlamingPandas
-- desc: Shows 3D models
-- script: lua
point={x=0,y=0,z=300}
fov=100 -- Field of View
@doyousketch2
doyousketch2 / nssb_mapgen.lua
Last active March 9, 2022 00:50
mapgen function for nssb
schemepath = minetest .get_modpath('nssb') ..'/schems/'
function nssb_register_buildings(
build_name, -- name of schematic
rand, -- 1/rand is probability of spawning
required, -- required block to to spawn on
height, -- under this height, schematic can spawn
near, -- scan if this node is near
width2fill ) -- width of schematic, to fill dirt / ice under