Skip to content

Instantly share code, notes, and snippets.

View stuntguy3000's full-sized avatar
🎮
Playing Games...

Luke Anderson stuntguy3000

🎮
Playing Games...
View GitHub Profile
@stuntguy3000
stuntguy3000 / ServerStart.ps1
Created May 22, 2019 13:47
Minecraft Server Backup n Boot Script
Add-Type -Assembly "System.IO.Compression.FileSystem"
$dir = Get-Location
$path = $dir.tostring()
while (1) {
$dateObject = Get-Date
$uniqueID = "Vanilla Survival AutoSave $($dateObject.Hour)-$($dateObject.Minute)-$($dateObject.Second ) ($($dateObject.Day)-$($dateObject.Month)-$($dateObject.Year))"
mkdir "AutoSave\$($uniqueID)"
xcopy ".\world" "AutoSave\$($uniqueID)" /e
array(1) {
[0]=>
object(Adldap\Models\Group)#16 (9) {
["exists"]=>
bool(true)
["dn":protected]=>
string(68) "CN=MARS Administrators,OU=SkyNet Groups,OU=SkyNet,DC=skynet,DC=local"
["query":protected]=>
object(Adldap\Query\Builder)#13 (14) {
["columns"]=>
int led1 = 2;
int led2 = 3;
int led3 = 4;
int button = 7;
boolean enabled = true;
void setup()
{
pinMode(led1, OUTPUT);
@stuntguy3000
stuntguy3000 / keybase.md
Created February 1, 2017 07:41
keybase.md

Keybase proof

I hereby claim:

  • I am stuntguy3000 on github.
  • I am stuntguy3000 (https://keybase.io/stuntguy3000) on keybase.
  • I have a public key whose fingerprint is 1275 19E7 123C 6A9D A3A2 E909 B170 1936 F8B7 A50F

To claim this, I am signing this object:

public static String formulate(String message, Object... vars) {
return StringUtil.colour('&', Lang.PREFIX + String.format(message, vars));
}
public static String formulateConsole(String message, Object... vars) {
return ChatColor.stripColor(Lang.PREFIX + String.format(message, vars)).replaceAll("[^\\x00-\\x7f]", "").trim().replaceAll(" +", " ");
}
public static String formulateRaw(String message, Object... vars) {
return StringUtil.colour('&', String.format(message, vars));
package be.multicu.core.util;
/**
*
* @author Codepanda
*/
public class Rating {
private static int MAX_POINTS = 20;
private static int MIN_POINTS = 4;
@stuntguy3000
stuntguy3000 / gist:f32f0001340f3ebb043f
Created December 4, 2014 01:47
Gazamo Leaked Intel?!?!
[Thu Dec 04 03:43:51 EET 2014] Vilsol: fuck
[Thu Dec 04 03:43:51 EET 2014] Vilsol: xD
[Thu Dec 04 03:43:54 EET 2014] rohan576mc: Lol
[Thu Dec 04 03:44:11 EET 2014] Vilsol: That is what happens when you try to reflect Class.class
[Thu Dec 04 03:44:21 EET 2014] Vilsol: do not ask me why
[Thu Dec 04 03:44:34 EET 2014] DevRo_ // Erik: Vil, should i be concerned about how you name the teams?
[Thu Dec 04 03:44:38 EET 2014] DevRo_ // Erik: Team Battastic
@stuntguy3000
stuntguy3000 / Lang.java
Created December 2, 2014 08:18
Language system
public class Lang {
public static String CLASS_ARCHER = "Archer";
public static String CLASS_ASSASSIN = "Assassin";
public static String CLASS_MAGE = "Mage";
public static String CLASS_NOT_PICKED = "&cYou need to select a class!";
public static String CLASS_WARRIOR = "Warrior";
public static String COMMAND_CLASS_CANNOT_CHANGE = "&cYou cannot change your class!";
public static String COMMAND_CLASS_CHOSEN = "&7You have chosen the &e%s&7 class.";
public static String COMMAND_CLASS_NOT_FOUND = "&cThe specified class does not exist!";
public static String COMMAND_CLASS_VIEW = "&7Your class is &e%s&7.";
### Keybase proof
I hereby claim:
* I am stuntguy3000 on github.
* I am stuntguy3000 (https://keybase.io/stuntguy3000) on keybase.
* I have a public key whose fingerprint is 68B5 704A 3FCF F3CE 4D41 FC58 DF08
41BB 0573 70C9
To claim this, I am signing this object:
@stuntguy3000
stuntguy3000 / gist:32c5f6e7d2912cf16b60
Created September 28, 2014 00:36
how to generate minecraft hex digests in java
package com.serverid;
import java.io.UnsupportedEncodingException;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
public class ServerID
{
final protected static char[] hexArray = "0123456789ABCDEF".toCharArray();