Skip to content

Instantly share code, notes, and snippets.

doyousketch2

Block or report user

Report or block doyousketch2

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
@doyousketch2
doyousketch2 / freetype-config.pseudocode
Created Nov 5, 2019
freetype-config > pkg-config wrapper
View freetype-config.pseudocode
if freetype-config --cflags
then pkg-config --cflags freetype2
if freetype-config --libs
then pkg-config --libs freetype2
if freetype-config --ftversion
then apt-cache show libfreetype6 | grep -e 'Version:*' | sed 's/Version: //' | sed 's/-[0-9]//'
@doyousketch2
doyousketch2 / noteblock.lua
Created Sep 13, 2019
Updates Minetest Digistuff Noteblock
View noteblock.lua
if not minetest.get_modpath("mesecons_noteblock") then
minetest.log("error","mesecons_noteblock is not installed - digilines noteblock will not be available!")
return
end
local validnbsounds = dofile(minetest.get_modpath(minetest.get_current_modname())..DIR_DELIM.."nbsounds.lua")
minetest.register_node("digistuff:noteblock", {
description = "Digilines Noteblock",
groups = {cracky=3},
on_construct = function(pos)
@doyousketch2
doyousketch2 / gedit-lua
Created Sep 5, 2019
Run your Lua / Love2D scripts within gEdit -- F5
View gedit-lua
#! /bin/dash
# [Gedit Tool]
# Name=Run Lua / Love2D
# Languages=lua
# Shortcut=F5
# Input=nothing
# Output=output-panel
# Applicability=local
# Save-files=document
View stringSplit.Lua
-- modification of String split by luk3yx
-- https://gitlab.com/snippets/1756106
string.split = function(str, chr)
local s, e = str:find(chr)
local r = {}
local i = 1
while s do
r[#r + 1] = str:sub(i, s - 1)
i = e
@doyousketch2
doyousketch2 / firefox-clear-weekly-history.sh
Last active Jul 29, 2019
Delete Firefox history older than 1 week - in Debian Linux - https://git.io/fjSWS
View firefox-clear-weekly-history.sh
#! /bin/bash
## sudo apt update && sudo apt install sqlite3
## if you're on the Default-channel
cd ~/.mozilla/firefox/**.default/
sqlite3 places.sqlite "delete from moz_historyvisits where visit_date < strftime('%s', 'now', '-7 days') * 1000000;"
sqlite3 places.sqlite "delete from moz_places where url like '%duckduckgo%'; vacuum;"
@doyousketch2
doyousketch2 / README.txt
Last active Jul 22, 2019
Simple IRC Chat Bot for HexChat
View README.txt
https://git.io/fjDe4
@doyousketch2
doyousketch2 / README.txt
Created Jul 22, 2019
Auto grant OP and VOICE in HexChat
View README.txt
https://git.io/fjDec
@doyousketch2
doyousketch2 / translate_mt.py
Last active Jun 28, 2019
Translate Minetest players in IRC
View translate_mt.py
##=========================================================
## @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 Jun 22, 2019
Ignore Minetest IRC passthrough chat-bots in HexChat
View mt_bots.lua
-----------------------------------------------------------
-- @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 Jun 21, 2019
Ignore IRC bots in HexChat
View ignore_bots.py
##=========================================================
## @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'
You can’t perform that action at this time.