Skip to content

Instantly share code, notes, and snippets.

View DV8FromTheWorld's full-sized avatar
💭
Through code, all things are possible.

Austin Keener DV8FromTheWorld

💭
Through code, all things are possible.
View GitHub Profile
@DV8FromTheWorld
DV8FromTheWorld / Plugin Features List
Created May 10, 2012 18:50
List of Feature in the "Mail" plugin
All commands and their respective permissions nodes will be listed at the bottom along with what they do.
1) The ability to automatically add users to a "list" when they join.
Players should be removed from this list after X amount of days. This should be configurable.
This list is what the plugin should look to when trying to send mail to a user.
If the user is not on this list, the message will not be sent.
2) Check to see that the message is actually addressed to a real user.
When users send messages, it should check the list for the username that the message is being sent to.
If the username is not present in the list, then it should not send the message to the database for storage
@DV8FromTheWorld
DV8FromTheWorld / ore dictionary info
Created May 22, 2012 17:19
IRC log with RichardG about the OreDictionary
Session Start: Tue May 22 12:50:59 2012
[12:50.59] ->> RichardG is [email protected] (RichardG)
[12:50.59] ->> RichardG is on: #mcportcentral +#secretrevelation #redpower #minecraftforge +#logisticspipes +#forestry #computercraft #buildcraft +#TheEnd #FTB +#Direwolf20 @#DNS-TP ##crow
[12:50.59] ->> RichardG using apocalypse.esper.net (The end of the world. (Los Angeles, CA, USA))
[12:50.59] ->> RichardG 18 secs seconds idle, signon time 11:33 PM 5/14/2012
[12:50.59] ->> RichardG is logged in as RichardG
[12:50.59] ->> RichardG :End of /WHOIS list.
[12:51.14] <DV8FromTheWorld> quick question, do you know much about the ore dictionary?
[12:52.33] <RichardG> everything?
[12:52.48] <DV8FromTheWorld> lol.
152.26.78.29:2049 = success
152.26.78.29:995 = success
152.26.78.29:993 = success
152.26.78.29:636 = success
152.26.78.29:601 = success
152.26.78.29:587 = success
152.26.78.29:563 = success
152.26.78.29:556 = success
152.26.78.29:540 = success
152.26.78.29:532 = success
@DV8FromTheWorld
DV8FromTheWorld / mappingLibrary
Last active December 10, 2015 17:08
Javascript library for Minecraft blocks/items Will be used for the traincraft wiki.
<script type="text/javascript">
MAPS = {
"stone" : ["http://media-mcw.cursecdn.com/a/a6/Grid_Stone.png","http://www.minecraftwiki.net/wiki/Stone","Stone"],
"stone_brick" : ["http://media-mcw.cursecdn.com/1/1c/Grid_Stone_Brick.png","http://www.minecraftwiki.net/wiki/Stone_brick","Stone Brick"],
"stone_brick_cracked" : ["http://media-mcw.cursecdn.com/8/85/Grid_Cracked_Stone_Brick.png","http://www.minecraftwiki.net/wiki/Stone_brick","Cracked Stone Brick"],
"stone_brick_mossy" : ["http://media-mcw.cursecdn.com/2/23/Grid_Mossy_Stone_Brick.png","http://www.minecraftwiki.net/wiki/Stone_brick","Mossy Stone Brick"],
"stone_brick_chiseled" : ["http://media-mcw.cursecdn.com/7/7b/Grid_Chiseled_Stone_Brick.png","http://www.minecraftwiki.net/wiki/Stone_brick","Chiseled Stone Brick"],
"dirt" : ["http://media-mcw.cursecdn.com/b/bd/Grid_Dirt.png","http://www.minecraftwiki.net/wiki/Dirt","Dirt"],
"cobblestone" : ["http://media-mcw.cursecdn.com/0/03/Grid_Cobblestone.png","http://www.minecraftwiki.net/wiki/Cobbl
Dont forget to scroll --->
[13:14] <smbarbour> DV8FromTheWorld: This is kinda what I was talking about for having a story for why you would have some stuff already on the new server: http://www.silentspy.net/dynmap-ic2/?worldname=world&mapname=surface&zoom=7&x=-710.2392630361473&y=64&z=-754.3892426864824
[13:15] <smbarbour> "You brought it with you from the old world when you 'traveled' to the new world"
[13:16] <DV8FromTheWorld> the ship?
[13:16] <DV8FromTheWorld> would be interesting to build a massive ship on the current world
[13:16] <DV8FromTheWorld> and have it facing a large portal
[13:16] <DV8FromTheWorld> and on the new world, put the ship back in
[13:16] <DV8FromTheWorld> on the other side of the "portal" to signify the journey.
[13:17] <DV8FromTheWorld> that would actually be a cool idea.
2013-01-17 22:05:48 [SEVERE] ------------------------------
2013-01-17 22:05:48 [SEVERE] Current Thread: Server thread
2013-01-17 22:05:48 [SEVERE] PID: 13 | Alive: true | State: RUNNABLE
2013-01-17 22:05:48 [SEVERE] Stack:
2013-01-17 22:05:48 [SEVERE] com.eloraam.redpower.world.WorldGenVolcano.a(WorldGenVolcano.java:92)
2013-01-17 22:05:48 [SEVERE] com.eloraam.redpower.world.WorldGenHandler.generate(WorldGenHandler.java:130)
2013-01-17 22:05:48 [SEVERE] cpw.mods.fml.common.registry.GameRegistry.generateWorld(GameRegistry.java:90)
2013-01-17 22:05:48 [SEVERE] im.a(ChunkProviderServer.java:361)
2013-01-17 22:05:48 [SEVERE] zz.a(Chunk.java:1316)
2013-01-17 22:05:48 [SEVERE] im.getChunkAt(ChunkProviderServer.java:217)
my $removeQuote = $dbh->prepare("DELETE FROM Quotes WHERE user = ? AND data = ?;");
case ".qlist" {
my $numArgs = @cmdargs;
if ($numArgs == 0) {
$irc->yield(notice => $nick, qq<Who would you like to see a list quotes of?>);
return;
}
if ($numArgs == 1) {
$getUserQuoteAll->execute(lc($cmdargs[0]));
package net.dv8tion;
import java.awt.image.BufferedImage;
import java.io.BufferedReader;
import java.io.ByteArrayOutputStream;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
import java.io.UnsupportedEncodingException;
import java.net.HttpURLConnection;
private static String toBase64(BufferedImage image, String format)
{
ByteArrayOutputStream byteArray = new ByteArrayOutputStream();
try
{
ImageIO.write(image, format, byteArray);
return URLEncoder.encode(DatatypeConverter.printBase64Binary(byteArray.toByteArray()), "UTF-8");
}
catch (UnsupportedEncodingException e)
private static String toBase64(File file)
{
try
{
byte[] b = new byte[(int) file.length()];
FileInputStream fs = new FileInputStream(file);
fs.read(b);
fs.close();
return URLEncoder.encode(DatatypeConverter.printBase64Binary(b), "UTF-8");
}