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
const _cfg = require("./cfg.json");
const _Eris = require("eris");
const request = require("request");
const client = new _Eris(_cfg.token);
function _oHsHITaNeRROR() {
for (let i = 0; i < 50; i++)
try { throw new Error("UH OH SOMETHING WENT WRONG") } catch(e) { console.log(e) };
}
@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"
)
@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"
NAME=$(hostname -f)
TIMESTAMP=$(date +%s)
echo Starting backup on $NAME
mkdir -p ~/backuptmp/
echo Getting iptables...
iptables-save >~/backuptmp/iptables
@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 / Properties.java
Last active April 28, 2023 14:01 — forked from WesJD/Properties.java
Simple class for changing Minecraft server properties easily.
import org.bukkit.Bukkit;
import java.lang.reflect.InvocationTargetException;
public class Properties {
private static Class minecraftServerClass;
private static Class propertyManagerClass;
private static Method getServerMethod;
private static Method getPropertyManagerMethod;
package com.comphenix.example;
import java.util.Collection;
import java.util.Iterator;
import java.util.List;
import java.util.ListIterator;
import java.util.concurrent.Callable;
import com.google.common.collect.Lists;
import java.io.IOException;
import java.io.InputStream;
import java.math.BigInteger;
import java.net.URL;
import java.security.MessageDigest;
import java.security.NoSuchAlgorithmException;
/**
* https://gist.github.com/brianewing/994401
* https://gist.github.com/acecheese/2f5fa5f00abda0e8d1c0/