Skip to content

Instantly share code, notes, and snippets.

View Whissi's full-sized avatar

Thomas Deutschmann Whissi

View GitHub Profile
@Whissi
Whissi / checkForBadJavascripts.js
Created November 28, 2017 21:26 — forked from BrockA/checkForBadJavascripts.js
This is a utility function, meant to be used inside a Greasemonkey script that has the "@run-at document-start" directive set. It Checks for and deletes or replaces specific <script> tags.
/*--- checkForBadJavascripts()
This is a utility function, meant to be used inside a Greasemonkey script that
has the "@run-at document-start" directive set.
It Checks for and deletes or replaces specific <script> tags.
*/
function checkForBadJavascripts (controlArray) {
/*--- Note that this is a self-initializing function. The controlArray
parameter is only active for the FIRST call. After that, it is an
event listener.
@Whissi
Whissi / keybase.md
Created July 25, 2016 21:20
Keybase.io Validation

Keybase proof

I hereby claim:

  • I am Whissi on github.
  • I am whissi (https://keybase.io/whissi) on keybase.
  • I have a public key whose fingerprint is C4DD 695F A713 8F24 2AA1 5638 5849 7EE5 1D5D 74A5

To claim this, I am signing this object:

@Whissi
Whissi / gpg-key-transition-statement-8BE96404393A4C4F-58497EE51D5D74A5.txt
Created July 25, 2016 12:56
GPG key transition statement for dsa1024/393A4C4F to rsa4096/1D5D74A5
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1,SHA512
I am transitioning GPG keys from an old 1024-bit DSA key to a new
4096-bit RSA key. The old keys are integrated as subkeys into the new
master key however the old keys (including the old master key) are set
to expire on 2016-05-31 and should not be used anymore. All new
correspondance should use the new key for encryption and I will making all
signatures going forward with the new key, too.
#!/bin/env python
import timeit
loops = 1000
setup = """
import MySQLdb
db = MySQLdb.connect(host="remotedb.example.com",
read_default_file="/root/.my.cnf",