Skip to content

Instantly share code, notes, and snippets.

View dweekly's full-sized avatar
🙃

David E. Weekly dweekly

🙃
View GitHub Profile
@dweekly
dweekly / gist:e0fa533881aaf61a3c49ce9a4017060d
Created January 4, 2018 01:11
stupid blockstack thing
Verifying my Blockstack ID is secured with the address 1JRQ5TqtLkPb135YTUYEuDSi5fguQJhbB3 https://explorer.blockstack.org/address/1JRQ5TqtLkPb135YTUYEuDSi5fguQJhbB3
@dweekly
dweekly / odd_npn.py
Created April 29, 2018 04:44
Strange NPN issue with Python SSL: any protocol is valid...?
import ssl
import socket
import certifi
ca_store = certifi.where()
ctx = ssl.create_default_context()
ctx.load_verify_locations(ca_store)
server = "www.twitter.com"
@dweekly
dweekly / MIRRORED.BY
Created May 23, 2020 04:32
CPAN Patch to MIRRORED.BY to add https support for mirrors that already implement it
--- MIRRORED.BY 2020-05-22 16:32:10.000000000 -0700
+++ MIRRORED.BY.patched 2020-05-22 21:31:49.000000000 -0700
@@ -7,6 +7,7 @@
# or "instant" if you use "instant mirroring"
# dst_ftp = "ftp://your.host.name:/CPAN/mirror/directory/"
# dst_http = "http://your.host.name:/CPAN/mirror/directory/"
+# dst_https = "https://your.host.name:/CPAN/mirror/directory/"
# dst_rsync = "rsync://your.host.name/CPAN/"
# dst_location = "city, (area,)? country, continent (lat long)"
# dst_organisation = "full organisation name"
#!/usr/bin/perl
use LWP::UserAgent;
use Storable;
use strict;
# set up our user agent
mkdir(".cache") unless -d ".cache";
my $ua = LWP::UserAgent->new(
ssl_opts => {
@dweekly
dweekly / HttpsCheckOutput.txt
Last active June 24, 2020 07:10
Output of CPAN HTTPS mirror check from June 24, 2020 from a California, USA based IP
NOK https://kartolo.sby.datautama.net.id/CPAN/ 500 Can't connect to kartolo.sby.datautama.net.id:443 (Operation timed out)
ok https://artfiles.org/cpan.org/
NOK https://linorg.usp.br/CPAN/ 500 Can't connect to linorg.usp.br:443 (Connection refused)
ok https://www.namesdir.com/mirrors/cpan/
ok https://mirror.easyname.at/cpan/
NOK https://cpan.mirror.triple-it.nl/ 500 Can't connect to cpan.mirror.triple-it.nl:443 (hostname verification failed)
NOK https://ftp.nara.wide.ad.jp/pub/CPAN/ 500 Can't connect to ftp.nara.wide.ad.jp:443 (Connection refused)
NOK https://cpan.cpantesters.org/ 500 Can't connect to cpan.cpantesters.org:443 (Connection refused)
ok https://mirrors.hostingromania.ro/cpan.org/
ok https://ftp-stud.hs-esslingen.de/pub/Mirrors/CPAN/
@dweekly
dweekly / MIRRORED.BY
Created May 23, 2020 23:03
Patch to MIRRORED.BY to manually add/fix four more mirrors.
--- MIRRORED.BY.patched 2020-05-22 21:31:49.000000000 -0700
+++ MIRRORED.BY.patched.manual 2020-05-23 16:02:47.000000000 -0700
@@ -184,6 +184,7 @@
frequency = "instant"
dst_ftp = "ftp://mirror.bhoovd.com/CPAN/"
dst_http = "http://mirror.bhoovd.com/CPAN/"
+ dst_https = "https://mirror.bhoovd.com/CPAN/"
dst_rsync = "rsync://mirror.bhoovd.com/CPAN/"
dst_location = "Harrisburg, Pennsylvania, United States, North America (+40.317824 -76.854927)"
dst_organisation = "Matthew Hoover"
@dweekly
dweekly / gist:b5c6df56da175e020209a8f05d5815a0
Created June 15, 2020 23:27
No published key for CPAN 2.28? (Can't find key C52026AB9A4006BD on pool.sks-keyservers.net)
cpan[10]> look ANDK/CPAN-2.28.tar.gz
Trying to open a subshell in the build directory...
Working directory is /root/.local/share/.cpan/build/CPAN-2.28-0
root@sidekick:~/.local/share/.cpan/build/CPAN-2.28-0# cpansign -v
Executing gpg --verify --batch --no-tty --keyserver=hkp://pool.sks-keyservers.net:11371 --keyserver-options=auto-key-retrieve /tmp/SiH7xxBWSb
gpg: Signature made Sat 13 Jun 2020 04:53:15 AM UTC
gpg: using RSA key 54C60DE9F0600884AACAA321C52026AB9A4006BD
gpg: requesting key C52026AB9A4006BD from hkp server pool.sks-keyservers.net
gpg: Can't check signature: No public key
@dweekly
dweekly / HttpsCheckOutput-2020jun16.txt
Created June 16, 2020 17:00
CPAN Mirror HTTPS Check - run June 16, 2020
ok https://mirror.yer.az/CPAN/
ok https://ftp.osuosl.org/pub/CPAN/
NOK https://CPAN.mirror.rafal.ca/ 500 Can't connect to CPAN.mirror.rafal.ca:443 (Network is unreachable)
ok https://mirrors.namecheap.com/CPAN/
ok https://ftp.nluug.nl/languages/perl/CPAN/
NOK https://cpan.mirrors.hoobly.com/ 500 Can't connect to cpan.mirrors.hoobly.com:443 (certificate verify failed)
NOK https://cpan.inode.at/ 500 Can't connect to cpan.inode.at:443 (Network is unreachable)
NOK https://mirror.datapipe.net/CPAN/ 500 Can't connect to mirror.datapipe.net:443 (certificate verify failed)
ok https://mirrors.nic.cz/CPAN/
NOK https://ftp.yzu.edu.tw/CPAN/ 500 Can't connect to ftp.yzu.edu.tw:443 (Connection timed out)
@dweekly
dweekly / output.txt
Last active June 26, 2020 18:01
pelias test run failures (june 26, 2020, macOS+Docker, portland-metro project)
$ pelias test run
DATA_DIR is already set to './data' - this may cause the DATA_DIR specified in the .env to be ignored
Tests completed: 456/456 (retries: 0)
Tests for: http://api:4000/v1 (docker)
/v1/search address
✔ [1] "/v1/search?text=4004 SW Beaverton-Hillsdale, Portland"
/v1/search address
✘ regression [1] "/v1/search?text=777 NE MLK Blvd, Portland, OR": score 3 out of 4
@dweekly
dweekly / aidungeon.txt
Created July 29, 2020 19:57
A short AI Dungeon game played by dweekly July 29, 2020
You are Muffy, a peasant living in a small village in the kingdom of Larion. You have a pitchfork and nothing else. You dream of getting out of your village and having an adventure. You go to your fields and begin working. You look up and see a large crowd of people outside. You go to see what it is and you see a lot of people dressed in red cloaks. They are religious warriors and they have come to your village to kill evil.
> You learn how to fight with swords.
You walk up to a warrior and begin chatting. After a while he asks you a question, "Why are you here?"
You think for a moment, "To learn how to fight."
> You save up for and purchase a sword.
You save up all your money and buy a basic steel sword for yourself. It's very sharp and effective, but heavy. You practice with it every day and soon you are able to easily deflect any attack.
> You ask a mage to bless your sword.