Skip to content

Instantly share code, notes, and snippets.

View Commandcracker's full-sized avatar
🌑
To the moon and beyond

Commandcracker

🌑
To the moon and beyond
View GitHub Profile
@MCJack123
MCJack123 / string_pack.lua
Last active August 26, 2023 13:28
Backport of string.pack for Lua 5.2 [WIP]
-- MIT License
--
-- Copyright (c) 2021 JackMacWindows
--
-- Permission is hereby granted, free of charge, to any person obtaining a copy
-- of this software and associated documentation files (the "Software"), to deal
-- in the Software without restriction, including without limitation the rights
-- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
-- copies of the Software, and to permit persons to whom the Software is
-- furnished to do so, subject to the following conditions:
@MCJack123
MCJack123 / qr.lua
Created March 14, 2021 05:57
Modified version of https://github.com/speedata/luaqrcode/blob/master/qrcode.lua for ComputerCraft, with a drawing function
--- The qrcode library is licensed under the 3-clause BSD license (aka "new BSD")
--- To get in contact with the author, mail to <[email protected]>.
---
--- Please report bugs on the [github project page](http://speedata.github.com/luaqrcode/).
-- Copyright (c) 2012-2020, Patrick Gundlach and contributors, see https://github.com/speedata/luaqrcode
-- All rights reserved.
--
-- Redistribution and use in source and binary forms, with or without
-- modification, are permitted provided that the following conditions are met:
-- * Redistributions of source code must retain the above copyright
@t-eckert
t-eckert / flat-ui-v1.json
Last active November 17, 2022 04:09
Flat UI Color Scheme V1 implemented as Windows Terminal color scheme. https://flatuicolors.com/palette/defo
{
"background":"#000000",
"black":"#000000",
"blue":"#2980b9",
"brightBlack":"#7f8c8d",
"brightBlue":"#3498db",
"brightCyan":"#1abc9c",
"brightGreen":"#2ecc71",
"brightPurple":"#9b59b6",
"brightRed":"#e74c3c",
@Maxopoly
Maxopoly / iptables.rule
Last active September 16, 2024 05:24
IP tables for Minecraft
#You probably want to do this in root to reduce the amount of sudos required
su -
#Install iptables if you haven't already
#Alternatively use packet manager of your choice
apt-get install iptables
#Allow all incoming traffic to begin with
iptables -P INPUT ACCEPT
#Clean out any existing input rules. You may also remove the "INPUT" argument and run only "iptables -F" to clear all chains. When doing so, make sure there are no rules in other chains that you still need (list via "iptables -L"), for example Oracle cloud servers will have preset rules, which should not be removed.