This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /bin/bash | |
# build-xnu-6153.141.1.sh | |
# 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 | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
TARGET="$( cd "$(dirname "$1")" ; pwd -P )/$1" | |
SYSROOT="/Applications/Xcode.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator.sdk" | |
TARGET_ARCH=x86_64 | |
LLVMROOT="/Users/zhuowei/Documents/prog/clang+llvm-8.0.0-x86_64-apple-darwin" | |
export IPHONEOS_DEPLOYMENT_TARGET=12.2 | |
rm -r /tmp/bitcode2intel | |
mkdir -p /tmp/bitcode2intel |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ORG 0x7c00] | |
mov al, 0x6a | |
mov ah, 0x0E | |
int 0x10 | |
times 510-($-$$) db 0 | |
db 0x55 ; required for some BIOS's | |
db 0xAA |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdfsdf | |
Wonderful sdf! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |