Skip to content

Instantly share code, notes, and snippets.

View gsquaredxc's full-sized avatar
:octocat:

gsquaredxc

:octocat:
View GitHub Profile
@gsquaredxc
gsquaredxc / security_techmc.md
Last active September 16, 2020 03:41
Security conscious guide to technical Minecraft utility mods
import os
import discord
from dotenv import load_dotenv
from discord.ext import commands
import config as conf
from messageWeight import message_weigher
from userPerms import has_admin_perms
if (HacksToggle.HACK_NO_FALL.getBooleanValue() && player.fallDistance > 2F && !player.isElytraFlying()) {
player.connection.sendPacket(new CPacketPlayer(true));
}
if (HacksToggle.HACK_FLY.getBooleanValue()){
if (!previousFly) {
player.capabilities.allowFlying = true;
player.capabilities.isFlying = true;
previousFly = true;
}
}
#include "finders.h"
#include "generator.h"
#include <vector>
#include <iostream>
#include <thread>
#include <string>
#include <sstream>
struct compactinfo_t
{
---- Minecraft Crash Report ----
// Quite honestly, I wouldn't worry myself about that.
Time: 9/1/19 6:57 PM
Description: Initializing game
java.lang.RuntimeException: Could not execute entrypoint stage 'client' due to errors!
at net.fabricmc.loader.entrypoint.minecraft.hooks.EntrypointUtils.logErrors(EntrypointUtils.java:45)
at net.fabricmc.loader.entrypoint.minecraft.hooks.EntrypointClient.start(EntrypointClient.java:33)
at net.minecraft.class_310.method_1503(class_310.java)
@gsquaredxc
gsquaredxc / problem.js
Created November 7, 2018 03:17
problem
var myAgent = new http.Agent({
keepAlive: true,
maxSockets: 1,
keepAliveMsecs: 3000
});
request.post({url:'http://website.com/something', agent: myAgent , form: {key:'value',other:'value'}}, function(err,res,body){ /* ... */ });
request.post({url:'http://website.com/something/else', agent: myAgent , form: {test:'value',otherkey:'value'}}, function(err,res,body){ /* ... */ });

Keybase proof

I hereby claim:

  • I am gsquaredxc on github.
  • I am gsquaredxc (https://keybase.io/gsquaredxc) on keybase.
  • I have a public key ASCzA27voy3pYR5eMAuw85OYqF4kxpK5kH7l7sjV4jaDRQo

To claim this, I am signing this object: