Spigot added a feature allowing for server to automatically restart on crashes,
as well as when authorized user executes /restart
command.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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> | |
/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* 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; |
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.
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("-"); }
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
: ${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/" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// moanfuck implementation in JavaScript | |
// Use as: interpret(<mf code>) | |
// or: interpret(convert(<bf code>)) if you want to try using bf code. | |
// logs to the console. | |
// borrowed from https://github.com/trekhleb/javascript-algorithms/blob/master/src/algorithms/string/levenshtein-distance/levenshteinDistance.js | |
function levenshteinDistance(a, b) { | |
// Create empty edit distance matrix for all possible modifications of | |
// substrings of a to substrings of b. | |
const distanceMatrix = Array(b.length + 1).fill(null).map(() => Array(a.length + 1).fill(null)); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pygame | |
from random import randint | |
FOOD_SIZE = 10 | |
DISPLAY_WIDTH = 640 | |
DISPLAY_HEIGHT = 480 | |
BG_COLOUR = (44, 62, 80) | |
SNAKE_COLOUR = (236, 240, 241) | |
FOOD_COLOUR = (241, 196, 15) |
You can use these commands and rules to search for exploitation attempts against log4j RCE vulnerability CVE-2021-44228
This command searches for exploitation attempts in uncompressed files in folder /var/log
and all sub folders
sudo egrep -I -i -r '\$(\{|%7B)jndi:(ldap[s]?|rmi|dns|nis|iiop|corba|nds|http):/[^\n]+' /var/log
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
echo "Determining OS..." | |
if [[ "$(uname -s)" == "Linux" ]]; then | |
mcdir="$HOME/.minecraft/" | |
downloader="wget --no-check-certificate -q -O" | |
os="linux" | |
natives="libjinput-linux libjinput-linux64 liblwjgl liblwjgl64 libopenal libopenal64" | |
elif [[ "$(uname -s)" == "Darwin" ]]; then |
NewerOlder