Skip to content

Instantly share code, notes, and snippets.

local function invhax(usr, chan, msg, args)
host = usr.host
if args[1] then
local user = getUserFromNick(args[1])
if not user or not gameUsers[user.host] then
return "Invalid User"
end
host = user.host
end
sendmsg = "No Inventory Found"
''Do not waste your time in this world pursuing things that you will inevitably lose when you die. Instead, use the time you have to pursue the one thing that will stay with you through death to the afterlife, love. Love can take many forms and the more of it you have, the happier you will be. -Julian Zhou, 2016''
{{Infobox user
|minecraftname = JZTech101
|preferredname = Call me whatever.. lol
|skinexplain =
|gender = Male
|location = East Brunswick, NJ, USA
|nationality = Asian
|birthdayday = 07
When I first started on MCO, I had my doubts, but the website and it's bold statement of "True Survival without the grief" as well as it's freedom of speech policy attracted me. The first thing I noticed was the intermittent server lag. While it was annoying, I understand that admins have a life and these things are also harder to track down then many realize. The second thing I noticed on MCO after a while, was the less than welcoming experience for new players. Personally, I do not find "Welcome, please read the rules and enjoy", to be all that helpful in getting new players started. So, I decided to found Noelle despite the server lag. However, during my time with Noelle, I noticed several things that ended in a decisive move, to no longer welcome new players on to (and in the process endorsing) MCO. The first of these things were the less than competent staff. Some moderators decided it would be fine to attempt banning players after they accidentally broke a torch. (See https://gist.github.com/jztech101/2
@jztech101
jztech101 / gist:69affa2c40ce85375087
Created August 25, 2015 02:38
How JZTech101 Came About
JZ = Julian Zhou (My Name)
Tech = I am very interested in Technology
101 = I am willing to help people with Technology if need be
[12:02:14] 18<26if-chan18> .. ... .,-“:::::::/:::::|:::::|:::::::|:|::::::::::::::::::\\:::::::::::::|:|:::::\:::\::\
[12:02:14] 18<26if-chan18> ... ... /::::::::::|::::::|:::::|\::::::\:\::::::::::::::::::||::::::::::::|:/::::::|::::|::\
[12:02:14] 18<26if-chan18> ... .../::::::::::::\:::::::\::::'\”-,::::\:\,:::::::::::::::|:|::::::::::,//::::::/::::|:::'|
[12:02:14] 18<26if-chan18> ... ../::::::::::::::'\::::::\,:::”,”,::\,”,,:::::::::/: |::::::,“//::::::/:::::/::,,-'
[12:02:14] 18<26if-chan18> ... ./:::::::::::::::::”,,,::\|”~,,\,:”~-\”: :”,::::/: :/:::,“: :/::,“/:::,“:::/
[12:02:14] 18<26if-chan18> ... /::::::::::::::::::/,__”,\: : ,,-~”,”',,: : :\:/: :/:,“,-~,”,”:/:,,“:,//'
[12:02:14] 18<26if-chan18> ... |:::::::::::::::::/:o:::o: :,,“/. ,“:\.|: : : : “: '”:/./,,”\.'|”/::::::|“
[12:02:14] 18<26if-chan18> ...|::::::/:::::::::/::/|:::|.\: : \.|'|¯;|..|.|: : : : : : : :|.||;;;|././:|:::|:::|
[12:02:14] 18<26if-chan18> ...|::|:::|:::::
JsonArray versions = GeneralUtils.getJsonArray("http://bot.notenoughmods.com/?json&count");
MCModVersionSearch:
for (int i = versions.size() - 1; i >= 0; i--) {
int size = versions.get(i).getAsJsonObject().get("count").getAsInt();
if (size > 10) {
String version = versions.get(i).getAsJsonObject().get("name").getAsString();
JsonArray mods = GeneralUtils.getJsonArray("http://bot.notenoughmods.com/" + version + ".json");
JsonArray mods2 = GeneralUtils.getJsonArray("http://modlist.mcf.li/api/v3/" + version + ".json");
mods2.forEach(mod2 -> {
JsonObject mod = mod2.getAsJsonObject();
public static void registerCharReplacements(){
Registry.CharReplacements.add(new CharReplacement("a", "á"));
Registry.CharReplacements.add(new CharReplacement("b", "ḃ"));
Registry.CharReplacements.add(new CharReplacement("c", "ƈ"));
Registry.CharReplacements.add(new CharReplacement("d", "ḋ"));
Registry.CharReplacements.add(new CharReplacement("f", "ḟ"));
Registry.CharReplacements.add(new CharReplacement("g", "ǧ"));
Registry.CharReplacements.add(new CharReplacement("h", "ĥ"));
Registry.CharReplacements.add(new CharReplacement("j", "ĵ"));
Registry.CharReplacements.add(new CharReplacement("k", "ķ"));
jztech101@home:~$ git clone https://github.com/TechCavern/WaveSite.git
Cloning into 'WaveSite'...
remote: Counting objects: 65, done.
remote: Compressing objects: 100% (27/27), done.
remote: Total 65 (delta 15), reused 0 (delta 0), pack-reused 38
Unpacking objects: 100% (65/65), done.
Checking connectivity... done.
jztech101@home:~$ export PATH=$PATH:/home/jztech101/Downloads/node/bin
jztech101@home:~$ cd WaveSite/
jztech101@home:~/WaveSite$ bower install
Process pinghost = Runtime.getRuntime().exec(command);
BufferedReader buffereader = new BufferedReader(new InputStreamReader(pinghost.getInputStream()));
boolean haslines = false;
String line ="";
while ((line = buffereader.readLine()) != null) {
if (line.contains("time=")) {
haslines = true;
String[] ips = StringUtils.split(line, " ");
IRCUtils.sendMessage(user, network, channel, IP + ": " + ips[ips.length-2].replace("time=", "") + "milliseconds", prefix);
}
URL url1 = new URL("https://en.wikipedia.org/w/api.php?action=query&prop=extracts&explaintext&exsectionformat=plain&exchars=697&titles=Samsung&format=json");
String line;
String result = "";
BufferedReader buffereader = new BufferedReader(new InputStreamReader(url1.openStream()));
while ((line = buffereader.readLine()) != null) {
result += line.replaceAll("\n", " ") + "\n";
}
buffereader.close();
return result;