Skip to content

Instantly share code, notes, and snippets.

View ferrybig's full-sized avatar

Fernando van Loenhout ferrybig

View GitHub Profile
Optional.ofNullable(Security.getProvider(provider)) // only on Windows
.map(p-> p.getService(type, alg)) // should exist but who knows?
.ifPresent(svc-> Security.insertProviderAt( // insert our provider with single SecureRandom service
new Provider(name, p.getVersion(), null) {{ //NOSONAR
setProperty(String.format("%s.%s", type, alg), svc.getClassName());
}}, 1));
"clone_url": "https://github.com/ferrybig/adarkroom.git",
"clone_url": "https://github.com/ferrybig/agafua-syslog.git",
"clone_url": "https://github.com/ferrybig/ALAp5-Bontekoe.git",
"clone_url": "https://github.com/ferrybig/arrive.git",
"clone_url": "https://github.com/ferrybig/auto-comments.git",
"clone_url": "https://github.com/ferrybig/bezier-curve.git",
"clone_url": "https://github.com/ferrybig/Blaze.git",
"clone_url": "https://github.com/ferrybig/BlockGenerator.git",
"clone_url": "https://github.com/ferrybig/BowWars.git",
"clone_url": "https://github.com/ferrybig/breakout.git",
@ferrybig
ferrybig / spacktrackerreboot.user.js
Last active April 6, 2017 12:25
Spamtracker Reboot
// ==UserScript==
// @name SpamtrackerReboot
// @namespace http://tampermonkey.net/
// @version 0.6
// @description Rewrite of the spamtracker project, this userscript will notify you using sound and a notification if a new spam post has been posted in any smoke detector supported rooms
// @author You
// @match *://chat.meta.stackexchange.com/*
// @match *://chat.stackexchange.com/*
// @match *://chat.stackoverflow.com/*
// @run-at document-end
@ferrybig
ferrybig / Metasmoke neuralnetwork.md
Last active December 14, 2016 18:39
Metasmoke neuralnetwork.md

Post flagged:

Flagged true positive post: Post{id=40697, title=??????Q?405665716???????????/???????????????????????????BrandeisUniversity, link=//bitcoin.stackexchange.com/questions/48641, reasons=[Reason{id=59, reason_name=Chinese character in title}, Reason{id=90, reason_name=Mostly non-latin title}, Reason{id=91, reason_name=Mostly non-latin body}, Reason{id=93, reason_name=Messaging number in body}, Reason{id=94, reason_name=Messaging number in title}], truePositive=true, falsePositive=false, answer=false, site_id=0}

Flagged true positive post: Post{id=41882, title=CARDING-WUTRANSFER.COM | wu transfer hack, wu transfer carding, cara carding wu, wu carding tutorial, link=//stackoverflow.com/questions/39759816, reasons=[Reason{id=3, reason_name=Bad keyword in body}, Reason{id=22, reason_name=Blacklisted website in body}, Reason{id=61, reason_name=Blacklisted website in title}, Reason{id=81, reason_name=Bad keyword with email in body}], truePositive=true, falsePositive=false, answer=false, sit

@ferrybig
ferrybig / keybase.md
Created December 11, 2016 20:06
keybase.md

Keybase proof

I hereby claim:

  • I am ferrybig on github.
  • I am ferrybig (https://keybase.io/ferrybig) on keybase.
  • I have a public key whose fingerprint is 7B28 BE91 9775 3912 96BE F85C 57DD 301D BFAF 06F4

To claim this, I am signing this object:

@ferrybig
ferrybig / spamtracker.user.js
Last active December 5, 2016 09:09
Spam Tracker
// ==UserScript==
// @name Spamtracker
// @namespace http://tampermonkey.net/
// @version 0.2
// @description Alerts you when new smokedetector messages show up
// @author NormalHuman
// @author Ferrybig
// @match *://chat.meta.stackexchange.com/*
// @match *://chat.stackexchange.com/*
// @match *://chat.stackoverflow.com/*
// ==UserScript==
// @name Spam Reporter
// @namespace http://github.com/Tiny-Giant
// @version 1.0.0.0
// @description Adds a link to the post menu for most posts.
// @author @TinyGiant
// @include /^https?:\/\/\w*.?(stackexchange.com|stackoverflow.com|serverfault.com|superuser.com|askubuntu.com|stackapps.com|mathoverflow.net)\/q(uestions)?\/\d+/
// @grant GM_xmlhttpRequest
// ==/UserScript==
/* jshint -W097 */
@ferrybig
ferrybig / Our policy on posts with hidden link spam to the authors website.md
Last active April 11, 2016 11:05
Our policy on posts with hidden link spam to the authors website
@ferrybig
ferrybig / Usernames.java
Created April 5, 2016 17:23
Creates a list of usernames and uuid based on replay mod files
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package test;
import com.google.gson.Gson;
import com.google.gson.JsonArray;
import com.google.gson.JsonElement;
@ferrybig
ferrybig / review queues.md
Created March 25, 2016 15:40
Allow us again to see if a question is currently on the close review queues

For the past few months, there was a feature in the timeline of a post that showed if the post was concurrently in any review queue. Because this was present, it allowed users to cordinate their votes better in term of the following flags:

  • Low Quality queue

    This feature enabled us to see if the post was already in the queue's, if it was, we didn't need to use a new flag, and could save the flags for worser posts

  • Close votes queue

If we saw that a post has been edited, we could use this method to visit the post in the queue, and mark it as Leave open, reducing the amount of posts in the queue