Skip to content

Instantly share code, notes, and snippets.

View JonMagon's full-sized avatar
🏠
Working from home

Dmitry Sidorov JonMagon

🏠
Working from home
View GitHub Profile
@JonMagon
JonMagon / bad-mc-ip.txt
Last active February 19, 2022 09:08
Bad MC IP (bot attacks)
37.156.189.196
82.117.211.14
31.134.75.174
41.71.63.22
208.102.51.6
175.144.198.225
94.247.241.70
190.85.212.170
192.252.211.197
45.70.30.195
@JonMagon
JonMagon / Dockerfile
Last active September 2, 2022 18:50
Build appimage
FROM ubuntu:bionic
RUN apt-get update && \
apt-get install --yes cmake qt5-default gcc fish nano extra-cmake-modules qttools5-dev \
libkf5auth-dev g++ libfuse-dev qt5-style-plugins libaio-dev wget git python3-pip \
kde-style-breeze
RUN pip3 install setuptools
RUN pip3 install aqtinstall
@JonMagon
JonMagon / dkv.java
Last active January 19, 2021 15:41
Minecraft Client Bars Render
private final Random rand = new Random();
private int m;
private void e(MatrixStack matrixStack) {
bfw bfw = k();
if (bfw == null)
return;
int i = afm.f(bfw.dk());
boolean bool = (this.G > this.m && (this.G - this.m) / 3L % 2L == 1L);

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

@JonMagon
JonMagon / cuint.d
Created July 16, 2018 12:49
Reading and writing CUInt
import std.bitmanip;
import std.range.primitives;
alias read = std.bitmanip.read;
uint read(T : CUInt, R)(auto ref R range)
if (isInputRange!R && is(ElementType!R : const(ubyte))) {
return CUInt(range).value;
}
alias append = std.bitmanip.append;
@JonMagon
JonMagon / MakePlayerExtendState.cpp
Last active June 26, 2018 21:06
S2C::CMD::Make<S2C::CMD::player_enter_slice>
packet_raw_wrapper *__cdecl S2C::CMD::MakePlayerExtendState<packet_raw_wrapper>(packet_raw_wrapper *const ar, gplayer_4 *pPlayer, unsigned int state, unsigned int state2)
{
int v4; // ST54_4
packet_raw_wrapper *v5; // eax
unsigned int v6; // ST54_4
unsigned int v7; // ST44_4
unsigned int v8; // ST34_4
unsigned int v9; // ST24_4
unsigned int v10; // ST14_4
packet_raw_wrapper *v11; // eax
@JonMagon
JonMagon / packet_class.php
Created June 10, 2018 21:36
Packet Class PW
<?
// "Packet Class PW".
// By JonMagon (Desmond Hume)
class ReadPacket {
public $data, $pos;
function __construct($obj = null){
$this->data = $obj->response;
}