Skip to content

Instantly share code, notes, and snippets.

View Xmonpl's full-sized avatar
😕
503 Service Unavailable

Xmon Xmonpl

😕
503 Service Unavailable
View GitHub Profile
@Xmonpl
Xmonpl / 20discord
Last active June 26, 2024 15:39
Discord notification for OpenMediaVault
#!/bin/bash
#CREATED BY XMON FOR OpenMediaVault
DISCORD_WEBHOOK='PUT YOUR WEBHOOK LINK HERE'
generate_post_data() {
cat <<EOF
{
"content": "",
"embeds": [{
"title": "${OMV_NOTIFICATION_SUBJECT}",
@CharlesGodwin
CharlesGodwin / cloudflare.md
Last active July 6, 2024 14:13
I Don't Need Port Forwarding and Don't Care About CGNAT

I Don't Need Port Forwarding and Don't Care About CGNAT

This was rewritten 2022-11-30

This article is for users that want all these features:

  • To connect to home network from anywhere
  • Can connect without any port forwarding; either by choice or internet provider can't or won't provide access
  • No setup or configuration or installation on client machine
  • No enrolment / registration required
@stonar96
stonar96 / Anti-Xray.md
Last active June 6, 2024 12:01
Recommended Paper Anti-Xray settings by stonar96

❗ This has been moved to the official PaperMC docs ❗

Link: https://docs.papermc.io/paper/anti-xray

Help: https://discord.gg/papermc






Recommended Paper Anti-Xray settings by stonar96

General

Anti-Xray can be configured per world in the paper.yml configuration file. To understand how per world configuration works please read this first. Note that after changing any settings for Anti-Xray you have to restart your server. Executing the /reload command (you should never do this) won't apply the settings to worlds that are already loaded.

@standa
standa / loop.sh
Created April 29, 2016 09:59
Infinite loop internet speed test
# download speedtest python script
# wget https://raw.githubusercontent.com/rsvp/speedtest-linux/master/speedtest
# wget https://raw.githubusercontent.com/sivel/speedtest-cli/master/speedtest_cli.py
while true; do ./speedtest --log; sleep 900; done
@aadnk
aadnk / EntityHider.java
Last active April 25, 2024 22:47
Hide or show entities
package com.comphenix.example;
import static com.comphenix.protocol.PacketType.Play.Server.*;
import java.lang.reflect.InvocationTargetException;
import java.util.Arrays;
import java.util.Map;
import org.bukkit.entity.Entity;
import org.bukkit.entity.Player;