Skip to content

Instantly share code, notes, and snippets.

Philip Cass frymaster

  • Scotland
Block or report user

Report or block frymaster

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View kern.log
Jul 13 20:35:05 gregor kernel: [ 0.000000] Initializing cgroup subsys cpuset
Jul 13 20:35:05 gregor kernel: [ 0.000000] Initializing cgroup subsys cpu
Jul 13 20:35:05 gregor kernel: [ 0.000000] Initializing cgroup subsys cpuacct
Jul 13 20:35:05 gregor kernel: [ 0.000000] Linux version 3.13.0-30-generic (buildd@kissel) (gcc version 4.8.2 (Ubuntu 4.8.2-19ubuntu1) ) #55-Ubuntu SMP Fri Jul 4 21:40:53 UTC 2014 (Ubuntu 3.13.0-30.55-generic 3.13.11.2)
Jul 13 20:35:05 gregor kernel: [ 0.000000] Command line: BOOT_IMAGE=/boot/vmlinuz-3.13.0-30-generic root=UUID=e68ec506-a886-4507-9fcb-124561df6527 ro quiet splash vt.handoff=7
Jul 13 20:35:05 gregor kernel: [ 0.000000] KERNEL supported cpus:
Jul 13 20:35:05 gregor kernel: [ 0.000000] Intel GenuineIntel
Jul 13 20:35:05 gregor kernel: [ 0.000000] AMD AuthenticAMD
Jul 13 20:35:05 gregor kernel: [ 0.000000] Centaur CentaurHauls
Jul 13 20:35:05 gregor kernel: [ 0.000000] e820: BIOS-provided physical RAM map:
@frymaster
frymaster / Output of debugging the mountall script
Last active Aug 29, 2015
Debugging of missing symlink problem
View Output of debugging the mountall script
=== Sleeping for 10 seconds
=== Output of /dev
brw------- 1 root root 8, 0 Jul 12 22:52 /dev/sda
brw------- 1 root root 8, 1 Jul 12 22:52 /dev/sda1
brw------- 1 root root 8, 9 Jul 12 22:52 /dev/sda9
brw------- 1 root root 8, 16 Jul 12 22:52 /dev/sdb
brw------- 1 root root 8, 17 Jul 12 22:52 /dev/sdb1
brw------- 1 root root 8, 25 Jul 12 22:52 /dev/sdb9
brw------- 1 root root 8, 32 Jul 12 22:52 /dev/sdc
brw------- 1 root root 8, 33 Jul 12 22:52 /dev/sdc1
View gist:88f30faac8bd34975816
--- a/src/com/martinbrook/tesseractuhc/listeners/SpectateListener.java
+++ b/src/com/martinbrook/tesseractuhc/listeners/SpectateListener.java
@@ -25,6 +25,8 @@ import org.bukkit.inventory.DoubleChestInventory;
import org.bukkit.inventory.Inventory;
import org.bukkit.inventory.InventoryHolder;
import org.bukkit.inventory.ItemStack;
+import org.bukkit.block.Chest;
+import org.bukkit.block.DoubleChest;
import com.martinbrook.tesseractuhc.MatchPhase;
View gist:9955183

I'm new to twisted, and I'm having trouble working out how I should organise my code. The client that connects to a TCP(SSL) control channel and then will try to connect to the same IP:port on UDP for a low-latency data channel, based on encryption settings provided over TCP. If it can't, the TCP control channel will be used for the data. I'd like to write a reusable client such that people can override a class with functions such as dataReceived, controlMessageXReceived, sendControlMessageX, sendDataMessage etc, with whether the UDP channel is in use or not abstracted away into my code.

I currently have a Protocol that can understand the TCP control channel; for testing purposes I've overridden ConnectionMade() there to send set-up messages and confirm everything works (it can understand the server and vice versa)

View gist:7410457
2013-11-03 01:48:23 [SEVERE] Could not pass event InventoryCloseEvent to LogBlock v1.70
org.bukkit.event.EventException
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:427)
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62)
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:477)
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:462)
at org.bukkit.craftbukkit.v1_6_R3.event.CraftEventFactory.handleInventoryCloseEvent(CraftEventFactory.java:682)
at net.minecraft.server.v1_6_R3.EntityPlayer.closeInventory(EntityPlayer.java:714)
at net.minecraft.server.v1_6_R3.EntityPlayer.l_(EntityPlayer.java:159)
at net.minecraft.server.v1_6_R3.World.entityJoinedWorld(World.java:1354)
View gist:5935554
<resource>
<targetPath>.</targetPath>
<directory>${basedir}/src/main/resources/</directory>
<includes>
<include>*.yml</include>
</includes>
</resource>
View gist:5792351
ItemStack goldenApple = new ItemStack(Material.GOLDEN_APPLE, 1, (short) 0);
ItemStack glisteringMelon = new ItemStack(Material.SPECKLED_MELON);
Iterator<Recipe> recipes = Bukkit.recipeIterator();
while(recipes.hasNext()) {
Recipe recipe = recipes.next();
if(recipe.getResult().equals(goldenApple) || recipe.getResult().equals(glisteringMelon))
recipes.remove();
View gist:5723247
2013-06-06 18:16:26 [INFO] Starting minecraft server version 1.5.2
2013-06-06 18:16:26 [INFO] Loading properties
2013-06-06 18:16:26 [INFO] Default game type: SURVIVAL
2013-06-06 18:16:26 [INFO] Generating keypair
2013-06-06 18:16:26 [INFO] Starting Minecraft server on *:25565
2013-06-06 18:16:26 [INFO] This server is running CraftBukkit version git-Bukkit-unknown (MC: 1.5.2) (Implementing API version 1.5.2-R0.2-SNAPSHOT)
2013-06-06 18:16:27 [INFO] [permissions-test] Loading permissions-test v1.0
2013-06-06 18:16:27 [WARNING] Could not get information about this CraftBukkit version; perhaps you are running a custom one?: FileNotFoundException
2013-06-06 18:16:27 [INFO] Preparing level "world"
2013-06-06 18:16:27 [INFO] Preparing start region for level 0 (Seed: -2146254385325181951)
You can’t perform that action at this time.