Skip to content

Instantly share code, notes, and snippets.

View chaoskagami's full-sized avatar

Jon F chaoskagami

View GitHub Profile
// Usage: prog input_file output_file
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
int main(int c, char** v) {
FILE* in = fopen(v[1], "r");
fseek(in, 0, SEEK_END);
size_t off = ftell(in);
rewind(in);
char *arr = (char*)malloc(off);
@chaoskagami
chaoskagami / keybase.md
Created February 17, 2019 13:51
keybase.md

Keybase proof

I hereby claim:

  • I am chaoskagami on github.
  • I am chaoskagami (https://keybase.io/chaoskagami) on keybase.
  • I have a public key whose fingerprint is 3229 80DA 88D4 CF5D BC3A 5B55 FFA9 3C95 3902 B5DA

To claim this, I am signing this object:

@chaoskagami
chaoskagami / idle_bastard.py
Last active January 12, 2022 03:37
Based on Idle Master's python impl, now 100% more minimal
#!/usr/bin/env python2
from __future__ import print_function
import os
import sys
import platform
import io
import numpy
import requests
import signal
import cookielib
@chaoskagami
chaoskagami / mpc.py
Created October 23, 2016 17:05
mpc.py
#!/usr/bin/env python
# -*- coding: utf-8 -*-
__module_name__ = "mpc.py"
__module_author__ = "brr [berr.yt] (alteration)"
__module_version__ = "20160412"
__module_description__ = "now playing for media player classic"
#--------------------------------------------------------------#
infourl = "http://localhost:13579/variables.html"
@chaoskagami
chaoskagami / userinit.sh
Created July 7, 2016 20:20
How not to use Android/CyanogenMod 11
#!/system/bin/sh
function slog() {
log -p i -t hax "$1"
echo "$1" >> /tmp/gentoo.log
}
while [ ! -e /dev/block/mmcblk1p1 ]; do
slog "No sd block device. Waiting 30s..."
sleep 30
@chaoskagami
chaoskagami / ForgeFetch.java
Created December 31, 2015 22:03
Tests of speed java code
/*
* A Gradle plugin for the creation of Minecraft mods and MinecraftForge plugins.
* Copyright (C) 2013 Minecraft Forge
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
@chaoskagami
chaoskagami / fm-server-latest.log
Created March 17, 2015 11:25
client latest.log
[06:53:59] [main/DEBUG] [FML/]: Injecting tracing printstreams for STDOUT/STDERR.
[06:53:59] [main/INFO] [FML/]: Forge Mod Loader version 7.10.85.1291 for Minecraft 1.7.10 loading
[06:53:59] [main/INFO] [FML/]: Java is OpenJDK 64-Bit Server VM, version 1.7.0-u60-unofficial, running on Windows Vista:amd64:6.0, installed at C:\JDK\jre
[06:53:59] [main/DEBUG] [FML/]: Java classpath at launch is forge-1.7.10-10.13.2.1291-universal.jar
[06:53:59] [main/DEBUG] [FML/]: Java library path at launch is C:\JDK\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;C:\cygwin64\usr\local\bin;C:\cygwin64\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\ATI Technologies\ATI.ACE\Core-Static;C:\JDK\bin;C:\JDK\jre\bin;C:\Program Files\Windows Imaging;C:\JDK\bin;C:\JDK\jre\bin;.
[06:53:59] [main/DEBUG] [FML/]: Enabling runtime deobfuscation
[06:53:59] [main/DEBUG] [FML/]: Instantiating coremod class FMLCorePlugin
[06:53:59] [main/DEBUG] [FML/]: Add