Skip to content

Instantly share code, notes, and snippets.

View CyberFlameGO's full-sized avatar
💠
Hey, I’m Cyber/Aaron.

CyberFlame CyberFlameGO

💠
Hey, I’m Cyber/Aaron.
View GitHub Profile
@CyberFlameGO
CyberFlameGO / mappings.json
Created November 15, 2023 11:31 — forked from Nitroholic/mappings.json
Profile Mappings
{
"achievement_spawned_island_types" : "player_data.achievement_spawned_island_types",
"active_effects" : "player_data.active_effects",
"autopet" : "pets_data.autopet",
"backpack_contents" : "inventory.backpack_contents",
"backpack_icons" : "inventory.backpack_icons",
"bank_account" : "profile.bank_account",
"bank_history" : "profile.bank_history",
"candy_inventory_contents" : "shared_inventory.candy_inventory_contents",
"coin_purse" : "currencies.coin_purse",
### 1: Drop invalid packets ###
/sbin/iptables -t mangle -A PREROUTING -m conntrack --ctstate INVALID -j DROP
### 2: Drop TCP packets that are new and are not SYN ###
/sbin/iptables -t mangle -A PREROUTING -p tcp ! --syn -m conntrack --ctstate NEW -j DROP
### 3: Drop SYN packets with suspicious MSS value ###
/sbin/iptables -t mangle -A PREROUTING -p tcp -m conntrack --ctstate NEW -m tcpmss ! --mss 536:65535 -j DROP
### 4: Block packets with bogus TCP flags ###
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" type="image/x-icon" href="/favicon.ico">
<title>Rebane's Discord Colored Text Generator</title>
<meta charset="UTF-8">
<meta name="description" content="Rebane's Discord Colored Text Generator">
<meta name="author" content="rebane2001">
<style>
/*
#!/usr/bin/env bash
# NOTE: We use bash for better readability and error handling here
# but it's not hard to make it work with regular shell
set -euo pipefail
# SETTINGS
# Path to file used to communicate from restart script
readonly restart_flag='.restart_flag'
# How long (in seconds) to wait before restarting
readonly restart_delay=10
/*
* Copyright (c) 2016. Starlis LLC / dba Empire Minecraft
*
* This source code is proprietary software and must not be redistributed without Starlis LLC's approval
*
*/
package com.empireminecraft.util.serialization;
import com.empireminecraft.util.ItemUtil;
@CyberFlameGO
CyberFlameGO / README.md
Created July 21, 2022 18:32 — forked from Prof-Bloodstone/README.md
Spigot restart script issues and solution

⚠️ This guide is for self-managed servers. If you rented a server and got a website through which you manage your server - you are on so called shared-hosting and this guide won't work for you.

What is spigot restart script

Spigot added a feature allowing for server to automatically restart on crashes, as well as when authorized user executes /restart command.

How it works

@CyberFlameGO
CyberFlameGO / Micro-optimizations.md
Created May 6, 2022 12:27 — forked from WalshyDev/Micro-optimizations.md
Java Micro-optimization Tests

Some micro-optimizations I tested. These were all ran on the same hardware, your timings may differ but the result should always be the same.

Checking if string has a char

Test

final String s = "This is some string because I'm crazy and need to micro-optimise ok? STOP JUDGING ME!";

TestTimer.testSnippet(1_000_000,
    () -> { boolean found = s.indexOf('-') != -1; },
    () -> { boolean found = s.contains("-"); }
@CyberFlameGO
CyberFlameGO / random_statement_looper.js
Last active April 29, 2022 14:59
random_statement_looper.js
var every = 1000 * 3
var statements = [
"hi",
"cool"
]
var used = {}
var element
document.addEventListener("DOMContentLoaded", function () {
@CyberFlameGO
CyberFlameGO / merge.sh
Created April 8, 2022 05:21 — forked from Kas-tle/merge.sh
Merge GeyserOptionalPack With Existing Resource Pack
: ${1?'Please specify an input resource pack in the same directory as the script (e.g. ./merge.sh MyResourcePack.zip)'}
# ensure jq is installed
if command jq --version 2>/dev/null | grep -q "1.6"; then
printf "\e[32m[+]\e[m \e[37mDependency jq satisfied\e[m\n"
echo
else
echo "Dependency jq-1.6 is not satisfied"
echo "You must install jq-1.6 before proceeding"
echo "See https://stedolan.github.io/jq/download/"
import java.io.*;
class shortbf {
static String repeat(String s, int n) {
StringBuilder b = new StringBuilder();
for (int i = 0; i < n; i++) b.append(s);
return b.toString();
}
// G[x][y]: BF code that transforms x to y.