Skip to content

Instantly share code, notes, and snippets.

😎
Enjoying life

Chris Tian ctian1

😎
Enjoying life
  • UC Irvine
Block or report user

Report or block ctian1

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@ctian1
ctian1 / server.py
Last active Sep 14, 2019 — forked from mdonkers/server.py
Simple Python 3 HTTP server for logging all GET and POST requests
View server.py
#!/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 / Fix-Fornite-Replays.ps1
Created Jun 14, 2018 — forked from fredimachado/Fix-Fornite-Replays.ps1
Fix/Convert Fortnite Replays from 4.3 to 4.4
View Fix-Fornite-Replays.ps1
# 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 {
View Blacklist.java
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"};
View keybase.md

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:

@ctian1
ctian1 / Hologram.java
Created Jan 27, 2016 — forked from aikar/Hologram.java
Empire Minecraft Hologram System
View Hologram.java
/*
* 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;
@ctian1
ctian1 / TaskChain.java
Created Jan 27, 2016 — 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/
View TaskChain.java
/*
* 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,
View minecraft.sh
#!/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}'`
You can’t perform that action at this time.