Skip to content

Instantly share code, notes, and snippets.

View justinoboyle's full-sized avatar
Probably drinking coffee.

Justin O'Boyle justinoboyle

Probably drinking coffee.
View GitHub Profile
import java.util.ArrayList;
import java.util.List;
import java.util.UUID;
public class Example {
/**
* A final List<String> of all previous UUIDs generated with
* generateUniqueID(), turned into a string with uuid.toString();
*/
@justinoboyle
justinoboyle / gist:bb5ad3531efd42ef1f3b
Created April 13, 2015 21:52
Truly random double example
import java.util.ArrayList;
import java.util.List;
import java.util.Random;
public class Example2 {
/**
* A final List<Double> of all previous double generated with
* generateUniqueDouble(), turned into a string with Double.valueOf(d);
*/
@justinoboyle
justinoboyle / StatusCode.java
Created April 18, 2015 04:00
An enum class containing all HTTP Status Codes complete with definitions!
/**
*
* @author Programming: Justin (http://www.github.com/ArrayPro) and
* Information/Documentation:
* http://www.w3.org/Protocols/HTTP/HTRESP.html
* @see Feel free to use this software in your own programs, but please keep the
* credits shown here!
*/
public enum StatusCode {
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
import java.util.UUID;
import net.minecraft.server.v1_8_R1.AttributeInstance;
mysql:
address: "localhost"
port: 3306
database: "your-app-name"
username: "user"
password: "pw"
@justinoboyle
justinoboyle / LocationManager.java
Last active July 20, 2021 14:47
Spigot/Bukkit LocationManager
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.PrintWriter;
import java.util.Scanner;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.World;
@justinoboyle
justinoboyle / BungeeTalk.java
Created August 10, 2015 20:55
Talk to BungeeCord easily!
import java.util.Map;
import java.util.concurrent.ConcurrentHashMap;
import org.bukkit.Bukkit;
import org.bukkit.entity.Player;
import org.bukkit.plugin.java.JavaPlugin;
import org.bukkit.plugin.messaging.PluginMessageListener;
import com.google.common.collect.Iterables;
import com.google.common.io.ByteArrayDataInput;
@justinoboyle
justinoboyle / 404_shrug.html
Last active October 8, 2020 22:27
404 Shrug ¯\_(ツ)_/¯
<html lang=en><meta charset=utf-8><head><title>404 Not Found</title><meta name=viewport content="width=device-width,initial-scale=1"><link href="http://fonts.googleapis.com/css?family=Roboto:400,100,100italic,300,300itlic,400italic,500,500italic,700,700italic,900italic,900" rel=stylesheet type=text/css><style>body{-webkit-touch-callout:none;-webkit-user-select:none;-khtml-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none}.shrug{font-family:Roboto,sans-serif;font-size:100px}.text{font-family:Roboto,sans-serif;font-size:30px}.footer{font-family:sans-serif;font-size:20px}.center{width:450px;height:340px;position:absolute;top:0;bottom:0;left:0;right:0;margin:auto}a:link{text-decoration:none;color:#006786}a:visited{text-decoration:none;color:#006786}a:hover{text-decoration:none;color:#006786}a:active{text-decoration:none;color:#006786}</style><body><div class=center><div class=shrug>¯\_(ツ)_/¯</div><div class=text>We couldn't find the page you were looking for.</div><br><div class=footer>
// Solution for https://xss-game.appspot.com/level6
alert(1);
var p = [];
function c(x) { return document.getElementsByClassName(x); }
function rl(f) { setTimeout(f, 20); }
var li = c("comment-header");
for(var i in li) {
if(li[i].innerHTML && li[i].innerHTML.includes("TheArrayPro"))
p.push(i);
}
li = c("sprite_like");
for(var i in p)