This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.querySelectorAll('[href="/home"]').forEach((el) => el.setAttribute('href', '/search?q=filter%3Afollows%20-filter%3Areplies&src=typed_query&f=live')) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is just a cheat sheet: | |
# On production | |
sudo -u postgres pg_dump database | gzip -9 > database.sql.gz | |
# On local | |
scp -C production:~/database.sql.gz | |
dropdb database && createdb database | |
gunzip < database.sql.gz | psql database |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### Keybase proof | |
I hereby claim: | |
* I am michaelbenin on github. | |
* I am michaelbenin (https://keybase.io/michaelbenin) on keybase. | |
* I have a public key ASAm521_UY1mXXRAlSjnjiB8Om13_Bp08MsI2aT7W2mHywo | |
To claim this, I am signing this object: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
{ | |
"fips": 1001, | |
"state": "AL", | |
"area_name": "Autauga County", | |
"confirmedCases": 0 | |
}, | |
{ | |
"fips": 1003, | |
"state": "AL", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Found originally on: https://forum.mxlinux.org/viewtopic.php?t=53180 | |
sudo apt update | |
sudo apt install libu2f-host0 | |
sudo -v; wget https://github.com/Yubico/libu2f-host/raw/master/70-u2f.rules -O- | sudo tee /etc/udev/rules.d/70-yubico-u2f.rules | |
sudo udevadm control --reload-rules | |
sudo udevadm trigger |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript: (function () { | |
var el = document.createElement('pre'), | |
b = document.getElementsByTagName('body')[0], | |
otherjQuery = false, | |
msg = '', | |
libs = [ | |
function loadjQuery() { | |
if (typeof jQuery != 'undefined') { | |
showMsg('This page already using jQuery v' + jQuery.fn.jquery); | |
} else { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[ | |
"MST7MDT", | |
"PST8PDT", | |
"Etc/GMT", | |
"EST5EDT", | |
"CST6CDT", | |
"Etc/GMT-1", | |
"Etc/GMT-8", | |
"Etc/GMT-7", | |
"Etc/GMT-6", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[{"Type":"language","Subtag":"aa","Description":"Afar","Added":"2005-10-16"},{"Type":"language","Subtag":"ab","Description":"Abkhazian","Added":"2005-10-16","Suppress-Script":"Cyrl"},{"Type":"language","Subtag":"ae","Description":"Avestan","Added":"2005-10-16"},{"Type":"language","Subtag":"af","Description":"Afrikaans","Added":"2005-10-16","Suppress-Script":"Latn"},{"Type":"language","Subtag":"ak","Description":"Akan","Added":"2005-10-16","Scope":"macrolanguage"},{"Type":"language","Subtag":"am","Description":"Amharic","Added":"2005-10-16","Suppress-Script":"Ethi"},{"Type":"language","Subtag":"an","Description":"Aragonese","Added":"2005-10-16"},{"Type":"language","Subtag":"ar","Description":"Arabic","Added":"2005-10-16","Suppress-Script":"Arab","Scope":"macrolanguage"},{"Type":"language","Subtag":"as","Description":"Assamese","Added":"2005-10-16","Suppress-Script":"Beng"},{"Type":"language","Subtag":"av","Description":"Avaric","Added":"2005-10-16"},{"Type":"language","Subtag":"ay","Description":"Aymara","Adde |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'''Debugging: https://docs.python.org/3/library/asyncio-dev.html#asyncio-dev''' | |
def fetch_urls_concurrent(urls): | |
loop = asyncio.new_event_loop() | |
resp_list = [] | |
async def async_req_urls(): | |
'''Change max workers for concurrency''' | |
with concurrent.futures.ThreadPoolExecutor(max_workers=20) as executor: | |
futures = [] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
about:blank:1 Mixed Content: The page at 'https://www.fastcompany.com/40484989/amazon-should-put-its-new-headquarters-in-puerto-rico' was loaded over HTTPS, but requested an insecure image 'http://tags.bluekai.com/site/1407?partner=1&uhint=na_id=2016091808381073644101408625&redir=http%3A%2F%2Fe.nexac.com%2Fe%2Fbk_sync.xgi%3Fna_exid%3D%24_BK_UUID'. This content should also be served over HTTPS. | |
about:blank:1 Mixed Content: The page at 'https://www.fastcompany.com/40484989/amazon-should-put-its-new-headquarters-in-puerto-rico' was loaded over HTTPS, but requested an insecure image 'http://cm.g.doubleclick.net/pixel?google_nid=datalogix_dmp&google_cm'. This content should also be served over HTTPS. | |
about:blank:1 Mixed Content: The page at 'https://www.fastcompany.com/40484989/amazon-should-put-its-new-headquarters-in-puerto-rico' was loaded over HTTPS, but requested an insecure image 'http://e.nexac.com/e/googlegdn_sync.xgi?na_exid=CAESEOM-jIkZzPAqKkCx0z7_SWk&google_cver=1'. This content should also be served ov |
NewerOlder