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
##################################################################### | |
## Config file for NTalk plugin ## | |
## If you don't understand something, please ask on dev.bukkit.org ## | |
## Ribesg ## | |
##################################################################### | |
# The template used to parse chat messages | |
# Default : &f<[prefix][name][suffix]&f> [message] | |
template: "[prefix][name][suffix] &f: [message]" | |
# The template used to parse private messages |
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
##################################################################### | |
## Config file for NPlayer plugin ## | |
## If you don't understand something, please ask on dev.bukkit.org ## | |
## Ribesg ## | |
##################################################################### | |
# Maximum login attempts before punishment. Possible values: Positive integers | |
# Default : 3 | |
maximumLoginAttempts: 1 | |
# How do we punish people after too many attempts? Possible values: 0, 1, 2 |
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
alias sb_start="sudo start starbound" | |
alias sb_stop="sudo stop starbound" | |
alias sb_restart="sb_stop;sb_start" | |
alias sb_update="sudo /home/ribesg/sb_update" | |
alias sb_online="netstat -nt | grep -c 21025" | |
alias sb_status="sudo status starbound" |
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
// Java 6 | |
SomeStream stream | |
try { | |
stream = new SomeStream(someArg); | |
// Stuff | |
} catch (SomeStreamExceptions e) { | |
// Stuff | |
} final { | |
try { | |
stream.close(); |
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
// INPUT | |
final Map<ItemStack, Double> myItemsWithWeight; // Initialized somewhere before that | |
// Data | |
final List<ItemStack> myItems = new ArrayList<>(myItemsWithWeight.size()); | |
final double[] risingWeights = new double[myItemsWithWeight.size()]; | |
// Compute total weight | |
double total = 0; | |
for (final double d : myItemsWithWeight.values()) { |
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
package fr.ribesg.alix.network; | |
import fr.ribesg.alix.Tools; | |
import fr.ribesg.alix.api.Server; | |
import org.apache.log4j.Logger; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
/** | |
* This class handles receiving packets. |
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
<repositories> | |
<repository> | |
<id>ribesg-releases</id> | |
<name>Ribesg's Release Repository</name> | |
<url>http://repo.ribesg.fr/content/repositories/releases</url> | |
</repository> | |
<repository> | |
<id>ribesg-snapshots</id> | |
<name>Ribesg's Release Repository</name> | |
<url>http://repo.ribesg.fr/content/repositories/snapshots</url> |
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
[04:07:44] [Server thread/ERROR]: Could not pass event InventoryOpenEvent to NGeneral v0.6.1 | |
org.bukkit.event.EventException | |
at org.bukkit.plugin.java.JavaPluginLoader$1.execute(JavaPluginLoader.java:320) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-6-g17dcffc] | |
at org.bukkit.plugin.RegisteredListener.callEvent(RegisteredListener.java:62) ~[craftbukkit.jar:git-Bukkit-1.7.2-R0.2-6-g17dcffc] | |
at org.bukkit.plugin.SimplePluginManager.fireEvent(SimplePluginManager.java:481) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-6-g17dcffc] | |
at org.bukkit.plugin.SimplePluginManager.callEvent(SimplePluginManager.java:466) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-6-g17dcffc] | |
at org.bukkit.craftbukkit.v1_7_R1.event.CraftEventFactory.callInventoryOpenEvent(CraftEventFactory.java:572) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-6-g17dcffc] | |
at net.minecraft.server.v1_7_R1.EntityPlayer.openContainer(EntityPlayer.java:615) [craftbukkit.jar:git-Bukkit-1.7.2-R0.2-6-g17dcffc] | |
at org.bukkit.craftbukkit.v1_7_R1.entity.CraftHumanEntity.openInventory(C |
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 | |
cd /home/blob | |
BLOB_CMD="java -jar /home/blob/Blob.jar" | |
BLOB_PID=`ps -ef | grep "$BLOB_CMD" | grep -v grep | awk '{print $2}'` | |
if [[ $BLOB_PID != *[!0-9]* ]]; then | |
echo "Blob is running, killing Blob" | |
kill -9 $BLOB_PID |
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
package fr.ribesg.alix.api.sync; | |
import fr.ribesg.alix.api.message.IrcPacket; | |
import java.util.Collections; | |
import java.util.HashSet; | |
import java.util.Set; | |
/** | |
* Represents a Callback for a sent IrcPacket. | |
*/ |