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
sudo yum install glibc libstdc++
mkdir ~/steamcmd
mkdir ~/svencoop
cd ~/steamcmd
wget https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz
tar -xvzf steamcmd_osx.tar.gz
./steamcmd -login anonymous +force_install_dir "~/svencoop" +app_update 276060 validate +exit
function parseURL(inURL) {
inURL = trimToLast(inURL, "/");
inURL = trimToLast(inURL, "?");
if (!inURL.includes("&")) return {
partner: undefined,
token: undefined
}
var arr = inURL.split("&");
var partner = undefined;
var token = undefined;
javascript:e="your_url_here";t=function(){};d=document,b=d.childNodes;history.pushState("","",e);n=new XMLHttpRequest;n.onreadystatechange=function(){if(4==n.readyState){for(e=b.length-1;e>=0;)d.removeChild(b[e--]);d.write(n.responseText),t()}},n.open("GET",e,!0),n.send(null);
@justinoboyle
justinoboyle / webExec.sh
Last active December 9, 2015 02:42
webExec.sh for Bash
#!/bin/bash
alias webexec='function _webexec() { wget $1 -O - | sh}; _webexec';
echo webExec installation complete
function pushState(e, t) {
history.pushState('', '', e);
var n = new XMLHttpRequest;
n.onreadystatechange = function() {
if (4 == n.readyState && 200 == n.status) {
for (var e = document.childNodes.length - 1; e >= 0;) document.removeChild(document.childNodes[e--]);
document.write(n.responseText), t()
}
}, n.open('GET', e, !0), n.send(null)
}
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)
// Solution for https://xss-game.appspot.com/level6
alert(1);
@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>
@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 / 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;