Skip to content

Instantly share code, notes, and snippets.

View zhuowei's full-sized avatar

zhuowei

View GitHub Profile
@zhuowei
zhuowei / hugeurl_decode.js
Created September 27, 2012 22:47
How to decode hugeurls
var a = atob("MDhhNDhlMjVlZmMwZGU2M2NmZjlkNTNjODVlYWJiODImMTYmVm0wd2QyUXlVWGxWV0d4V1YwZDRWMVl3WkRSV01WbDNXa1JTV0ZKdGVGWlZNakExVmpBeFYySkVUbGhoTWsweFZtcEdZV015U2tWVWJHaG9UV3N3ZUZkV1pEUlRNazE0V2toR1VtSkdXbGhaYTJoRFZWWmFjVkZ0UmxwV01ERTFWVEowVjFaWFNraGhSemxWVm14YU0xWnNXbUZrUjA1R1drWndWMDFFUlRGV1ZFb3dWakZhV0ZOcmFHaFNlbXhXVm1wT1QwMHhjRlpYYlVacVZtdGFNRlZ0ZUZOVWJVWTJVbFJHVjFaRmIzZFdha1poVjBaT2NtRkhhRk5sYlhoWFZtMHdlR0l4U2tkWGJHUllZbFZhY2xWcVJtRlRSbGw1VFZSU1ZrMXJjRWxhU0hCSFZqSkZlVlZZWkZwbGEzQklXWHBHVDJSV1ZuUmhSazVzWWxob1dGWnRNWGRVTVZGM1RVaG9hbEpzY0ZsWmJGWmhZMnhXY1ZGVVJsTk5XRUpIVmpKNFQxWlhTa2RqUmxwWFlsaFNNMVpxU2t0V1ZrcFpXa1p3VjFKV2NIbFdWRUpoVkRKT2MyTkZhR3BTYkVwVVZteG9RMWRzV25KWGJHUmFWakZHTkZaSGRHdFdiVXBIVjJ4U1dtSkdXbWhaTVZwaFpFZFNTRkpyTlZOaVJtOTNWMnhXWVZReFdsaFRiRnBZVmtWd1YxbHJXa3RUUmxweFVtMUdVMkpWYkRaWGExcHJZVWRGZUdOSE9WZGhhMHBvVmtSS1QyUkdUbkphUmxKcFZqTm9WVlpHWTNoaU1XUnpWMWhvWVZKR1NuQlVWM1J6VFRGU1ZtRkhPVmhTTUhCSlZsZDRjMWR0U2tkWGJXaGFUVzVvV0ZsNlJsZGpiSEJIWVVkc1UwMHhSalpXYWtvd1ZURlZlRmR1U2s1WFJYQnhWV3hrTkdGR1ZYZGhSVTVVVW
@zhuowei
zhuowei / caves.json
Created September 28, 2012 01:37
Minecraft PE 0.4.0 QuickPatches: Fall Collection
{
"title": "Caves patch for Minecraft PE 0.4.0",
"version": 1,
"author": "500 Internal Server Error, XzombiecreeperX",
"target": "/data/data/com.mojang.minecraftpe/lib/libminecraftpe.so",
"root": true,
"initial": {
"13cb76": ["14"],
"13cbc6": ["9f", "68"]
},
@zhuowei
zhuowei / macfix
Created September 30, 2012 00:55
Mac debian fixes
#!/bin/bash
if [[ $USER != "root" ]]
then
echo "Getting superuser status. type oem in as password."
su -c "bash $0"
exit
fi
echo "Mac/Debian PowerPC setup script by Zhuowei"
@zhuowei
zhuowei / aaaghhhh.txt
Created October 12, 2012 02:12
Aaaaaghhhhh!
########
### ###
# ~ ~ #
# <O> <O> #
# /\ #
# (__) #
# __________ #
# |''''''''| #
# \ / #
# \ / #
@zhuowei
zhuowei / closeenough.txt
Created October 13, 2012 04:43
Close Enough
Dis sertificates eshoued in horror off he god enough parlance boy
Seth MacMillan
in the Linegraft Gauss the plate form of the Screenshot computition.
@zhuowei
zhuowei / LanBukkit.java
Created October 18, 2012 22:57 — forked from md-5/LanBukkit.java
Shows your Bukkit server to the LAN
package com.md_5;
import java.io.IOException;
import java.net.DatagramPacket;
import java.net.DatagramSocket;
import java.net.InetSocketAddress;
import java.util.logging.Level;
import org.bukkit.plugin.java.JavaPlugin;
public class LanBukkit extends JavaPlugin implements Runnable {
@zhuowei
zhuowei / index.html
Created November 1, 2012 02:25
A decoder/encoder that outputs a sequence of smiley faces
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" >
<title>Encoder/Decoder for smiley face code</title>
</head>
<body>
<textarea id="inputBox" rows="25" cols="80"></textarea>
<br>
<button onclick="encodeBox()">Encode</button><button onclick="decodeBox()">Decode</button>
@zhuowei
zhuowei / dynsym.txt
Created November 16, 2012 06:54
Dynamic symbol table from Minecraft PE 0.5.0
00000000 DF *UND* 00000000 abort
00000000 DF *UND* 00000000 accept
00000000 DF *UND* 00000000 access
00000000 DF *UND* 00000000 AConfiguration_delete
00000000 DF *UND* 00000000 AConfiguration_fromAssetManager
00000000 DF *UND* 00000000 AConfiguration_getCountry
@zhuowei
zhuowei / battstatus
Created November 19, 2012 08:16
Vernier's best engineers came up with this.
#!/bin/sh
# this file is created by the battery applet
if [ -s /var/run/lq-battery/capacity ]; then
echo " (`cat /var/run/lq-battery/capacity`%) "
else
# if the file is not there, fake it
# (this could happen if LP is asking before the battery applet has created the file)
echo " (50%) "
fi
@zhuowei
zhuowei / happy.birthday
Created November 25, 2012 07:10
Happy birthday, Jonny!
:):P:D:( :):P:P:) :):D:):P :):P:):) :P:(:( :):P:D:( :):P:D:D :):P:D:P :):P:):D :P:(:( :):P:(:) :):P:D:P :):P:):( :P:(:( :):D:(:( :):P:P:( :):P:D:D :):D:(:D :):D:(:( :):P:P:( :):P:D:D :):D:(:P