This file contains 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
#include <iostream> | |
#include "Main.h" | |
using namespace std; | |
// /usr/lib/jvm/java-8-oracle/include/linux | |
JNIEXPORT void JNICALL Java_Main_test__(JNIEnv *env, jobject obj) { | |
cout << env << endl; | |
cout << obj << endl; |
This file contains 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
[15:28:01] [Netty Server IO #1/INFO] [STDERR]: [net.year4000.utilities.sponge.protocol.PipelineHandles$PacketInterceptor:intercept:55]: java.lang.NullPointerException | |
[15:28:01] [Netty Server IO #1/INFO] [STDERR]: [net.year4000.utilities.sponge.protocol.PipelineHandles$PacketInterceptor:intercept:55]: at org.spongepowered.common.effect.particle.SpongeParticleHelper.toPackets(SpongeParticleHelper.java:57) | |
[15:28:01] [Netty Server IO #1/INFO] [STDERR]: [net.year4000.utilities.sponge.protocol.PipelineHandles$PacketInterceptor:intercept:55]: at net.minecraft.world.World.spawnParticles(World.java:106) | |
[15:28:01] [Netty Server IO #1/INFO] [STDERR]: [net.year4000.utilities.sponge.protocol.PipelineHandles$PacketInterceptor:intercept:55]: at net.minecraft.world.World.spawnParticles(World.java:97) |
This file contains 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
[Desktop Entry] | |
Version=1.0 | |
Type=Application | |
Name=Minecraft | |
Icon=/opt/minecraft/favicon.png | |
Exec=/usr/bin/java -splash:/opt/minecraft/favicon.png -jar /opt/minecraft/Minecraft.jar | |
Terminal=false |
This file contains 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
"This is a JSON string" |
This file contains 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.*; | |
public class Perm { | |
public static void main(String[] args) throws Exception { | |
Perm perm = new Perm(); | |
long start = System.currentTimeMillis(); | |
for (int i = 0; i < Integer.MAX_VALUE; i ++) { | |
perm.run(); | |
} | |
System.out.println("Normal method: " + (System.currentTimeMillis() - start) + "ms"); |
This file contains 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
#!/usr/local/bin/python3 | |
# This is free and unencumbered software released into the public domain. | |
# | |
# Anyone is free to copy, modify, publish, use, compile, sell, or | |
# distribute this software, either in source code form or as a compiled | |
# binary, for any purpose, commercial or non-commercial, and by any | |
# means. | |
# | |
# In jurisdictions that recognize copyright laws, the author or authors | |
# of this software dedicate any and all copyright interest in the |
This file contains 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
#!/usr/bin/python3 | |
# This is free and unencumbered software released into the public domain. | |
# | |
# Anyone is free to copy, modify, publish, use, compile, sell, or | |
# distribute this software, either in source code form or as a compiled | |
# binary, for any purpose, commercial or non-commercial, and by any | |
# means. | |
# | |
# In jurisdictions that recognize copyright laws, the author or authors | |
# of this software dedicate any and all copyright interest in the |
This file contains 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 net.year4000.ducktape.bukkit.DuckTape | |
import net.year4000.ducktape.bukkit.module.BukkitModule | |
import net.year4000.ducktape.bukkit.module.ModuleListeners | |
import net.year4000.ducktape.module.ModuleInfo | |
import org.bukkit.Bukkit | |
import org.bukkit.event.player.PlayerInteractEvent | |
import org.bukkit.event.EventHandler | |
import org.bukkit.event.Listener | |
import org.bukkit.Material |
This file contains 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 | |
# Make sources | |
echo "deb http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | \ | |
tee /etc/apt/sources.list.d/webupd8team-java.list | |
echo "deb-src http://ppa.launchpad.net/webupd8team/java/ubuntu trusty main" | \ | |
tee -a /etc/apt/sources.list.d/webupd8team-java.list | |
# Update sources | |
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys EEA14886 |
This file contains 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 | |
# This script will find kill all dead minecraft servers | |
# It will attempt to restart the servers before they die | |
LAST="" | |
for process in $(ps a | grep java | awk '{print $1 " " $4}') ; do | |
if [ "$LAST" = "" ] ; then | |
LAST=$process | |
else |