Skip to content

Instantly share code, notes, and snippets.

View zhuowei's full-sized avatar


View GitHub Profile
zhuowei /
Last active June 1, 2021 14:07 — forked from knightsc/
A script to build XNU version xnu-6153.141.1 (macOS Catalina 10.15.6), based on Scott Knight's script
#! /bin/bash
# tested with Xcode 11.7 on macOS 11
# Changes:
# update to 10.15.6's kernel
# specify an Xcode
# force host OS version to 10.15 so Xcode's clang doesn't complain
# based on
zhuowei / bitcode2intel
Last active June 23, 2023 10:02 — forked from steventroughtonsmith/bitcode2intel
Modified version of Stroughtonsmith's bitcode2intel script; doesn't work; gives"ld: in section __TEXT,__swift5_types reloc 0: X86_64_RELOC_SUBTRACTOR must have r_extern=1 file 'F31BA3F0-12EE-482A-8399-26EEA2E654DD.o' for architecture x86_64"
TARGET="$( cd "$(dirname "$1")" ; pwd -P )/$1"
rm -r /tmp/bitcode2intel
mkdir -p /tmp/bitcode2intel
//mod made by epicsteve do not use my code without asking my on Twitter @epicsteve33
//Item.defineArmor(int id, String iconName, int iconIndex, String name,
// String texture, int damageReduceAmount, int maxDamage, int armorType)
Item.defineArmor(411, "helmet", 4, "diamond op",
"armor/op_1.png", 10, 600, ArmorType.helmet);
zhuowei / print_j.asm
Last active December 14, 2015 02:09 — forked from machinamentum/print_j.asm
[ORG 0x7c00]
mov al, 0x6a
mov ah, 0x0E
int 0x10
times 510-($-$$) db 0
db 0x55 ; required for some BIOS's
db 0xAA
zhuowei /
Created October 18, 2012 22:57 — forked from md-5/
Shows your Bukkit server to the LAN
package com.md_5;
import java.util.logging.Level;
public class LanBukkit extends JavaPlugin implements Runnable {
Wonderful sdf!
zhuowei / Questions
Created June 21, 2011 01:24
Kiwi Pycon Give-away
GitHub username: zhuowei
Day job: Going to school.
Favorite open source project: Everything! If I have to pick one: Mozilla Firefox
Open Source contributions (if any): lightstone
Stranded on an island, what 3 items do you take: a teleporter, a teleporter operator, sunglasses
Tie-breaker, pick a number between 1 and 20,000: (e * 321) or approximately 873
zhuowei /
Created June 11, 2011 04:40 — forked from CruzBishop/
Permissions for Graham
import java.util.ArrayList;
public class Player extends LivingEntity {
private ArrayList<String> permissions = new ArrayList<String>();
//(Load the permissions, of course. I used Json and Yaml in two projects, but I'm sure you'll have something better)
public boolean hasPermission(String requestedPermission) {
if (permissions.contains("*"))
return true;