Skip to content

Instantly share code, notes, and snippets.

input {
file {
path => [ "/data/minecraft/*/logs/latest.log" ]
tags => ["minecraft"]
}
}
filter {
if "minecraft" in [tags] {
grok {
@nidotls
nidotls / gist:a9d58b119de17185198e0517f7de2c2b
Created October 17, 2020 10:01 — forked from wess/gist:c66382198d48238787718b9bb8e9f3d9
Start/End GCodes for BLTouch Ender 3
; Ender 3 Custom Start G-code
M140 S{material_bed_temperature_layer_0} ; Set Heat Bed temperature
M190 S{material_bed_temperature_layer_0} ; Wait for Heat Bed temperature
M104 S160; start warming extruder to 160
G28 ; Home all axes
G29 ; Auto bed-level (BL-Touch)
G92 E0 ; Reset Extruder
M104 S{material_print_temperature_layer_0} ; Set Extruder temperature
G1 X0.1 Y20 Z0.3 F5000.0 ; Move to start position
M109 S{material_print_temperature_layer_0} ; Wait for Extruder temperature
sudo iptables -N RATE-LIMIT
sudo iptables -I INPUT -p tcp -m multiport --dports 25565:25567 -m conntrack --ctstate NEW -j RATE-LIMIT
sudo iptables -A RATE-LIMIT -j LOG --log-prefix "Connection: "
sudo iptables -A RATE-LIMIT -m hashlimit --hashlimit-upto 5/min --hashlimit-burst 15 --hashlimit-mode srcip --hashlimit-name conn_rate_limit -j ACCEPT
sudo iptables -A RATE-LIMIT -m limit --limit 1/min -j LOG --log-prefix "IPTables-Rejected: "
sudo iptables -A RATE-LIMIT -j REJECT --reject-with icmp-port-unreachable

Keybase proof

I hereby claim:

  • I am thenilsdev on github.
  • I am thenilsdev (https://keybase.io/thenilsdev) on keybase.
  • I have a public key ASBXih-2GLn53Kw6r5KXWER-dZNyv9nzo4RlSl_R1_CH3go

To claim this, I am signing this object:

@nidotls
nidotls / username.html
Last active December 2, 2022 19:01
Replaces the underscores in the Tebex username with spaces to allow both forms of the name.
<form method="post" id="username-form" onsubmit="return submitUsernameForm(event)">
<div class="username">
<div class="input-group">
<input type="text" name="ign" class="form-control input-lg form-control-lg">
<div class="input-group-append input-group-btn">
<button class="btn btn-success btn-lg" type="submit">Fortfahren<i class="fa fa-chevron-right ml-2" style="margin-left:10px;"></i></button>
</div>
</div>
</div>
</form>
@nidotls
nidotls / play.24sucht.net.html
Last active September 9, 2019 23:26
Old play.24sucht.net website
<!--
_ _ _ _____ _ _
___ _ _ ___| |_| |_|_| | |_| |___
|_ -| | | _| | _| | | | | | |_ -|
|___|___|___|_|_|_| |_|_|___|_|_|___|
Idee und Umsetzung.
─────────────────────────────────────
Schön, dass du dich für den Quellcode