Skip to content

Instantly share code, notes, and snippets.

@phuzion
phuzion / qc-ext.latest.user.js
Created October 1, 2021 13:16
Latest copy of the Questionable Extensions client script, potentially quite old
/*
* Copyright (C) 2016-2019 Alexander Krivács Schrøder <alexschrod@gmail.com>
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
@phuzion
phuzion / gist:3833824f7ef38c5d4e3f3b08039e457a
Created November 12, 2020 19:11
TLDs supporting _nicname._tcp.TLD
As of November 12, 2020, the following TLDs return a SRV result for _nicname._tcp.TLD where TLD is the Top-Level Domain in question.
The list of Top-Level Domains was acquired from ICANN, at the following URL: https://data.iana.org/TLD/tlds-alpha-by-domain.txt
The following command was run to generate this list:
while read p; do dig +noall +answer _nicname._tcp.$p SRV >> results.txt; done <tlds-alpha-by-domain.txt
_nicname._tcp.AM. 83251 IN SRV 0 0 43 whois.amnic.net.
_nicname._tcp.ARAB. 466 IN SRV 10 10 0 your-dns-needs-immediate-attention.arab.
@phuzion
phuzion / gist:c92a9d63736e30fddf2b7f240d6fc74a
Created August 11, 2020 18:05
Warnings displayed with fresh F32 droplet installing dnf-utils
[phuzion@do-01 ~]$ sudo dnf install dnf-utils
[sudo] password for phuzion:
Last metadata expiration check: 0:07:48 ago on Tue 11 Aug 2020 05:52:13 PM UTC.
Dependencies resolved.
======================================================================================================================
Package Architecture Version Repository Size
======================================================================================================================
Installing:
dnf-utils noarch 4.0.16-1.fc32 updates 36 k
Upgrading:
| image1 =[[File:Enos Throop.JPG|176px]]sadfasdfasdf
| image1 = [[File:Arthur Wellesley, 1st Duke of Wellington by John Jackson cropped.jpg|150x150px]]asdfasdfasdf
| image1 = [[File:Perier, Casimir.jpg|160x160px]]asdfasdfasdf
| image2 = [[File:Pierre-Antoine Berryer - lithographie de Maurin.jpg|160x160px]]sdfasdfasdf
| image1 = [[File:Charles Grey, 2nd Earl Grey after Sir Thomas Lawrence copy.jpg|160x160px]]asdfasdfasdf
| image1 = [[File:Daniel Dunklin.jpg|150px]] sdfasdfasdf
| image1 =[[File:William L. Marcy - Brady-Handy.jpg|166px]]asdfasdfasdf
| image2 =[[File:Francis Granger.jpg|176px]]asdfasdfasdf
| image = [[File:Francis Granger.jpg|176px]]asdfsadfasdf
|image=[[File:Bonnie.house.o.Airlie.jpg|300px]]
@phuzion
phuzion / gist:c6f5710227f79425d7651991a84c1019
Last active May 7, 2020 21:01
Regex to detect references to Wikimedia Foundation websites
<ref>.+https?:\/\/(advisors|arbcom-(cs|de|en|fi|nl)|auditcom|betawikiversity|board|boardgovcom|chair|chapcom|checkuser|(am|ar|bd|be|br|ca|cn|co|dk|ec|et|fi|ge|gr|hi|id|id-internal|il|mai|mk|mx|ng|nl|no|noboard-chapters|nyc|nz|pa-us|pl|pt|punjabi|romd|rs|ru|se|tr|ua|wb)wikimedia|(aa|ab|ace|ady|af|ak|als|am|an|ang|ar|arc|arz|as|ast|atj|av|ay|az|azb|ba|ban|bar|bat-smg|bcl|be|be-x-old|bg|bh|bi|bjn|bm|bn|bo|bpy|br|bs|bug|bxr|ca|cbk-zam|cdo|ce|ceb|ch|cho|chr|chy|ckb|co|cr|crh|cs|csb|cu|cv|cy|da|de|din|diq|dsb|dty|dv|dz|ee|el|eml|en|eo|es|et|eu|ext|fa|ff|fi|fiu-vro|fj|fo|fr|frp|frr|fur|fy|ga|gag|gan|gcr|gd|gl|glk|gn|gom|gor|got|gu|gv|ha|hak|haw|he|hi|hif|ho|hr|hsb|ht|hu|hy|hyw|hz|ia|id|ie|ig|ii|ik|ilo|inh|io|is|it|iu|ja|jam|jbo|jv|ka|kaa|kab|kbd|kbp|kg|ki|kj|kk|kl|km|kn|ko|koi|kr|krc|ks|ksh|ku|kv|kw|ky|la|lad|lb|lbe|lez|lfn|lg|li|lij|lmo|ln|lo|lrc|lt|ltg|lv|mai|map-bms|mdf|mg|mh|mhr|mi|min|mk|ml|mn|mnw|mo|mr|mrj|ms|mt|mus|mwl|my|myv|mzn|na|nah|nap|nds|nds-nl|ne|new|ng|nl|nn|no|nov|nqo|nrm|nso|nv|ny|oc|olo|om|or|os|p

Keybase proof

I hereby claim:

  • I am phuzion on github.
  • I am phuzion (https://keybase.io/phuzion) on keybase.
  • I have a public key whose fingerprint is A0FA C737 B46B 26BB DF55 6D44 801A F29A 37BC 0039

To claim this, I am signing this object:

Hello,
thanks for writing.
I've prepared a data dump for you.
It includes all qr.cx URLs that have not been deleted, their corresponding long URLs and creation dates.
You can download the dump here [1]. It will expand to about 230 MB.
I've licensed it under a CC-BY license.
diff --git a/r2/r2/templates/rulespage.html b/r2/r2/templates/rulespage.html
index 3f0732e..57a946e 100644
--- a/r2/r2/templates/rulespage.html
+++ b/r2/r2/templates/rulespage.html
@@ -62,10 +62,10 @@ function toggle_expando(elem){
<div class="rulespage">
<h1>rules of reddit</h1>
<div>
- <p class="info">reddit is a pretty open platform and free speech place, but there are a few rules:</p>
+ <p class="info">${_("reddit is a pretty open platform and free speech place, but there are a few rules:")}</p>
Host Loss% Snt Last Avg Best Wrst StDev
1. ovz02.hostigation.com 0.0% 55 0.1 0.1 0.0 0.3 0.0
2. hostigation-gw.caro.net 0.0% 55 0.7 0.7 0.6 3.3 0.4
3. eqx.ash.ovh.net 51.9% 55 10.0 13.1 9.8 73.3 12.8
4. nwk-2-6k.nj.us 96.3% 55 16.2 19.8 16.2 23.5 5.2
5. ldn-5-6k.uk.eu 98.1% 54 85.7 85.7 85.7 85.7 0.0
6. rbx-g2-a9.fr.eu
table_a
col_a col_b
a foo
b bar
c baz
d bam
e meep
f moop
g pluh