Skip to content

Instantly share code, notes, and snippets.

View SilverCory's full-sized avatar
❄️
Serve chilled. Carbonated.

Cory Redmond SilverCory

❄️
Serve chilled. Carbonated.
View GitHub Profile
@SilverCory
SilverCory / LocationAdapter.java
Created July 4, 2016 02:05
A location type adapter for Gson.
import com.google.gson.*;
import org.bukkit.Bukkit;
import org.bukkit.Location;
import org.bukkit.World;
import java.lang.reflect.Type;
/**
* A gson adapter for {@link org.bukkit.Location}.
* <p>
@SilverCory
SilverCory / sixth-sense.js
Created July 10, 2016 20:35 — forked from alexkirsz/sixth-sense.js
Core hook of the Facebook Sixth Sense Chrome extension
function getUserId(fbid) {
return fbid.split(':')[1];
}
requireLazy(
['MercuryTypingReceiver', 'MercuryThreads', 'ShortProfiles'],
(MercuryTypingReceiver, MercuryThreads, ShortProfiles) => {
MercuryTypingReceiver
.get()
@SilverCory
SilverCory / Sierra's Crushes.md
Last active October 10, 2016 20:43
A short? List of Sierra's Crushes

A short? List of Sierra's Crushes..

  1. Anthony
  2. Matt
  3. Jack
  4. Dylan
  5. Austin
  6. Sean (Sydney)
  7. Yon
NAME=$(hostname -f)
TIMESTAMP=$(date +%s)
echo Starting backup on $NAME
mkdir -p ~/backuptmp/
echo Getting iptables...
iptables-save >~/backuptmp/iptables
@SilverCory
SilverCory / EventUtils.java
Created February 7, 2017 06:51
Register and unregisterable listeners in Bukkit.
package co.ryred.util.event;
import org.bukkit.event.Event;
import org.bukkit.event.HandlerList;
import org.bukkit.plugin.IllegalPluginAccessException;
import org.bukkit.plugin.Plugin;
import org.bukkit.plugin.RegisteredListener;
import java.lang.reflect.Method;
import java.util.Collection;
@SilverCory
SilverCory / putty.bat
Created March 19, 2017 06:01 — forked from sbiffi/putty.bat
The aim of this vbs script is to launch putty using an URL like ssh://login@host directly from a browser. The .bat is almost the same than .vbs but less robust and just their for older systems.
:: This version is not as powerfull as vbs version, please prefere the other one.
:: It's just there if you need a non-visual basic way to perform this.
:: Restrictions:
:: - Password cannot contain a % or finish with @
:: - Chrome adds a / at the end of the URL, not yet managed
:: The aim of this script is to execute putty with parameters like ssh://login@host
:: Installation:
:: - Launch putty.reg to associate ssh:// and telnet:// to this script
:: - Edit the putty path in parameter below like puttyPath="C:\Program Files (x86)\putty.exe"
@SilverCory
SilverCory / The_entire_bee_movie_with_no_alpha_numaric_chars.txt
Created April 19, 2017 21:53
The_entire_bee_movie_with_no_alpha_numaric_chars.txt
, . . , , ' . , . , . , . , . , ! ' . ! ! ! . ? - ? - ? - ? - '. ' . . . . . ' . ' . ' , . , '. . ! . - . - ! ' ! - ! ' ,. - ! , , ! - , . - , . - ? - . , . ' . , . . . ' . . - , . - , ? . - ? - . - ? - , ' . , , . ' . . . . ' ' . , ... . - , , . - ! - -. - ! ! , , , . , ... ...:. . ! ? ' . ! . . - ' ? - . , . ! . . , , . . - -, - - ... ! - . - ' ! - ? - , ' . - . ' . - , . - . - ? - . , . - ? - . . ? . . , ' , . ' . ? ' . ' ? ' , , ' . ' ? ' . ! ! "' ?" ? ? ' . ' . . , , ? ? ' . ' . ? ? . ' . ' . . . . . - , ! - . ' . ' . , '
@SilverCory
SilverCory / cory_in_the_house_regex.txt
Created April 21, 2017 12:12
No more people saying "Cory in the house" or variations there of.
(k|c){1,5}(0|o){1,5}(r|d)(.{1,8}|)(1|i|){1,}(y|e){1,}\s(1|i){1,}(n){1,}\s(t|7){1,}(h|4){1,}(e|3){1,}\s(h|4){1,}(o|0){1,}(u|n){1,}(s|5|£|\\\$){1,}(e|3){1,}
@SilverCory
SilverCory / discrimfarmer.go
Last active April 29, 2017 19:26 — forked from ducc/discrimfarmer.go
Changes your discord username to get a sweet mf discrim cunt
package main
import (
"github.com/bwmarrin/discordgo"
"flag"
log "github.com/Sirupsen/logrus"
"fmt"
"time"
"errors"
)