Skip to content

Instantly share code, notes, and snippets.

@vertex101
vertex101 / Anti-Xray.md
Created September 12, 2021 06:22 — forked from stonar96/Anti-Xray.md
Recommended Paper Anti-Xray settings by stonar96

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[1] 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.

The official documentation for the Anti-Xray settings and what they mean can be found here.

Basically Anti-Xray has two different modes. engine-mode: 1 replaces specified ores by "fake" stone, netherrack or end stone blocks depending on the world type and engine-mode: 2 randomly places specified fake ores when a chunk packet is sent to the client. The following

@vertex101
vertex101 / gist:827239ddb9b3083a5bf468a459e28681
Created March 29, 2020 08:39
keyPressed event handler [mekanism]
---- Minecraft Crash Report ----
// Daisy, daisy...
Time: 3/29/20 8:56 AM
Description: keyPressed event handler
java.lang.RuntimeException: Un-encodable data passed to encode(): 1000, full data: [1000]
at mekanism.common.PacketHandler.encode(PacketHandler.java:151) ~[?:?] {re:classloading}
at mekanism.common.network.PacketTileEntity.encode(PacketTileEntity.java:63) ~[?:?] {re:classloading}
at mekanism.common.PacketHandler$$Lambda$8530/300274290.accept(Unknown Source) ~[?:?] {}
@vertex101
vertex101 / index.js
Created January 1, 2020 03:06
Simple, complete example of a bot in Discord.js
// Load up the discord.js library
const Discord = require("discord.js");
// This is your client. Some people call it `bot`, some people call it `self`,
// some might call it `cootchie`. Either way, when you see `client.something`, or `bot.something`,
// this is what we're refering to. Your client.
const client = new Discord.Client();
// Here we load the config.json file that contains our token and our prefix values.
const config = require("./config.json");
@vertex101
vertex101 / shoutout.js
Created December 15, 2019 22:13
shoutout command
if(msg[0] == "!vso") {
request({ url: 'https://api.twitch.tv/kraken/users?login=' + msg[1].toLowerCase(), headers: { 'Accept': 'application/vnd.twitchtv.v5+json', 'Client-ID': config.twitch.client}}, function (error, response, body) {
pullData = JSON.parse(body);
request({ url: 'https://api.twitch.tv/kraken/channels/' + pullData.users[0]._id, headers: { 'Accept': 'application/vnd.twitchtv.v5+json', 'Client-ID': config.twitch.client}}, function (error, response, body) {
pullData = JSON.parse(body);
setTimeout(function () {
client.say(channel, "You should 100% check out " + msg[1] + "! You can find them," +
"here >> https://twitch.tv/" + msg[1].toLowerCase() + " <3 They were last playing >> " + pullData.game + "!")
}, 3000);
});
@vertex101
vertex101 / reddit-signup.js
Created November 10, 2019 22:18 — forked from jsoverson/reddit-signup.js
Reddit signup script w/Puppeteer and 2Captcha
const puppeteer = require('puppeteer');
const request = require('request-promise-native');
const poll = require('promise-poller').default;
const siteDetails = {
sitekey: '6LeTnxkTAAAAAN9QEuDZRpn90WwKk_R1TRW_g-JC',
pageurl: 'https://old.reddit.com/login'
}
const getUsername = require('./get-username');
@vertex101
vertex101 / git-maven-howto.md
Created July 30, 2019 08:17 — forked from fernandezpablo85/git-maven-howto.md
how to create your own maven repository on github

How to create a maven repository for your github project step by step

Clone your project in a separate folder

(note: replace ORGANIZATION and PROJECT)

git clone git clone git@github.com:ORGANIZATION/PROJECT.git my-repository

Cd into it

@vertex101
vertex101 / IRCMessageLoop.java
Created February 28, 2019 08:16 — forked from kaecy/IRCMessageLoop.java
Simple IRC Bot
import java.io.*;
import java.net.*;
import java.util.*;
public abstract class IRCMessageLoop implements Runnable {
Socket server;
OutputStream out;
String theChannel;
IRCMessageLoop(String serverName, int port) {
@vertex101
vertex101 / crash.txt
Created January 11, 2019 07:33
FTB Stoneblock 2 Crash
---- Minecraft Crash Report ----
WARNING: coremods are present:
LibLoader (# LibLoader.jar)
MTWLCorePlugin (MultiTwitchWhitelist[v0.2.2].jar)
BedPatch (bedpatch-2.2-1.12.2.jar)
CXLibraryCore (cxlibrary-1.12.1-1.6.1.jar)
SplashAnimationCoremod (SplashAnimation-0.2.0.jar)
LoadingPlugin (RandomThings-MC1.12.2-4.2.4.jar)
RandomPatches (randompatches-1.12.2-1.11.0.2.jar)
@vertex101
vertex101 / ranks.txt
Created January 1, 2019 04:55
FTB Utilities Ranks
// This file stores rank definitions.
//
// [name]
// permission: value
//
// Add [name extends parent_name] to make this rank include all permissions from parent_name rank.
// Add [name is default_player_rank] or [name is default_op_rank] to make this rank default for players/ops that don't have a rank set explicitly.
//
// For more info visit https://guides.latmod.com/ftbutilities/ranks/
// To see the list of permission nodes, open all_permissions.html in browser or all_permissions_full_list.txt
@vertex101
vertex101 / error.txt
Created December 29, 2018 09:58
PoE crash error
---------------------------
Visual Studio Just-In-Time Debugger
---------------------------
An unhandled win32 exception occurred in PathOfExile_x64.exe [9896]. Just-In-Time debugging this exception failed with the following error: No installed debugger has Just-In-Time debugging enabled. In Visual Studio, Just-In-Time debugging can be enabled from Tools/Options/Debugging/Just-In-Time.
Check the documentation index for 'Just-in-time debugging, errors' for more information.
---------------------------
OK
---------------------------