Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# To use this script:
# wget -qO- https://gist.github.com/ClayFreeman/a4dae9b7d0fa2c6476eb/raw | sh
echo
# Store pre-script working directory
export PAST_PWD=`pwd`
# Store MB of RAM available
export RAM_MB=`free -m | egrep '^Mem' | awk '{print $2}'`
@ctian1
ctian1 / TaskChain.java
Created January 27, 2016 04:30 — forked from aikar/TaskChain.java
TaskChain v2.3.2 - Java 8 Version - Released Open Source Under MIT - Pre Java8 version here: https://gist.github.com/aikar/9010136 - learn about TC: http://aikar.co/2014/02/14/java-async-flow-control-library-bukkit/
/*
* Copyright (c) 2015. Starlis LLC / dba Empire Minecraft
*
* MIT License:
*
* Permission is hereby granted, free of charge, to any person obtaining a copy of
* this software and associated documentation files (the "Software"), to deal in
* the Software without restriction, including without limitation the rights to use,
* copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the
* Software, and to permit persons to whom the Software is furnished to do so,
@ctian1
ctian1 / Hologram.java
Created January 27, 2016 04:33 — forked from aikar/Hologram.java
Empire Minecraft Hologram System
/*
* Copyright (c) 2015. Starlis LLC / dba Empire Minecraft
*
* This source code is proprietary software and must not be redistributed without Starlis LLC's approval
*
*/
package com.empireminecraft.systems.holograms;
import com.empireminecraft.config.meta.PersistentMetaKey;

Keybase proof

I hereby claim:

  • I am pangeacake on github.
  • I am pangeacake (https://keybase.io/pangeacake) on keybase.
  • I have a public key whose fingerprint is 86EE 5E3A E433 7DA6 1F3A CC82 0CBB F2BF 6E65 A89F

To claim this, I am signing this object:

import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
import java.io.UnsupportedEncodingException;
import java.math.BigInteger;
class Blacklist {
public static MessageDigest CRYPT;
public static String[] HASHES = new String[] {"879f1dea801746b51a2a908b04f7fe6fff5f7a47", "5f2eceb54f642fb5f58abca0b52f7f0349f06cef", "a2e2be30dc9be014f171c8a3bbe955e55fd66d87"};
@ctian1
ctian1 / Fix-Fornite-Replays.ps1
Created June 14, 2018 03:45 — forked from fredimachado/Fix-Fornite-Replays.ps1
Fix/Convert Fortnite Replays from 4.3 to 4.4
# Big thanks to the original creator of this script, IamLukeVice: https://www.reddit.com/user/IamLukeVice
#
# Copy all this content, paste in notepad and save as a ps1 file, example: Fix-Fornite-Replays.ps1
# Then, open the folder containing the script, right click it and choose: Run With Powershell
# If it doesnt run, follow this: https://superuser.com/questions/106360/how-to-enable-execution-of-powershell-scripts
$LocalAppDataFolder = "$env:LOCALAPPDATA"
$FortniteReplaysFolder = $LocalAppDataFolder + "\FortniteGame\Saved\Demos"
$count = 0
Get-Childitem $FortniteReplaysFolder -Filter *.replay |
Foreach-Object {
@ctian1
ctian1 / server.py
Last active September 14, 2019 17:22 — forked from mdonkers/server.py
Simple Python 3 HTTP server for logging all GET and POST requests
#!/usr/bin/env python3
"""
Very simple HTTP server in python for logging requests
Usage::
./server.py [<port>]
"""
from http.server import BaseHTTPRequestHandler, HTTPServer
import logging
class S(BaseHTTPRequestHandler):
@ctian1
ctian1 / auth_flow.py
Created January 5, 2021 02:16 — forked from Luc1412/auth_flow.py
This is the auth flow for valorant (async)
import re
import aiohttp
async def run(username, password):
session = aiohttp.ClientSession()
data = {
'client_id': 'play-valorant-web-prod',
'nonce': '1',
'redirect_uri': 'https://beta.playvalorant.com/opt_in',
'response_type': 'token id_token',
@ctian1
ctian1 / piazza_top_contrib.js
Created July 7, 2021 21:37 — forked from xmiao2/piazza_top_contrib.js
Get the top contributor on piazza class
var delay = 500;
var regex = /\?cid=(\d+)/;
var results = {};
$(".instructor_endorsed_sr").each(function(i, o) {
var iid = setTimeout(function(){
o.click();
// On threads with multiple answers, only first person gets credit?
var name = $("#s_answer .post_region_actions .user_name").first().text() || "Anonymous";