Skip to content

Instantly share code, notes, and snippets.

Avatar

David E. Weekly dweekly

View GitHub Profile
@dweekly
dweekly / bootfail.txt
Created Oct 8, 2020
Boot Failure on macOS 10.15.7 with MacBook Pro Retina (15-inch, 2019)
View bootfail.txt
panic(cpu 2 caller 0xffffff7f919a1aae): watchdog timeout: no checkins from watchdogd in 310 seconds (1468 totalcheckins since monitoring last enabled), shutdown in progress
Backtrace (CPU 2), Frame : Return Address
0xffffff83b9dcbc40 : 0xffffff8010f1a65d
0xffffff83b9dcbc90 : 0xffffff8011054a75
0xffffff83b9dcbcd0 : 0xffffff80110465fe
0xffffff83b9dcbd20 : 0xffffff8010ec0a40
0xffffff83b9dcbd40 : 0xffffff8010f19d27
0xffffff83b9dcbe40 : 0xffffff8010f1a117
0xffffff83b9dcbe90 : 0xffffff80116c1ad8
0xffffff83b9dcbf00 : 0xffffff7f919a1aae
@dweekly
dweekly / WixFail
Created Aug 26, 2020
Wix returns an internal TLS server error in the ServerHello when presented with an unknown SNI.
View WixFail
$ curl -v https://www.x.co/ --resolve www.x.co:443:23.236.62.147
* Added www.x.co:443:23.236.62.147 to DNS cache
* Hostname www.x.co was found in DNS cache
* Trying 23.236.62.147...
* TCP_NODELAY set
* Connected to www.x.co (23.236.62.147) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
* CAfile: /etc/ssl/cert.pem
@dweekly
dweekly / ftpcheck.pl
Created Aug 16, 2020
ftpcheck scans hosts and networks for FTP and anonymous FTP archives.
View ftpcheck.pl
#!/usr/bin/perl
########################################################
# ftpcheck v0.31 [November 2, 1998]
# http://david.weekly.org/code
#
# by David Weekly <dew@cs.stanford.edu>
#
# Thanks to Shane Kerr for cleaning up the process code!
#
@dweekly
dweekly / relaycheck.pl
Created Aug 16, 2020
Scans for SMTP relays.
View relaycheck.pl
#!/usr/bin/perl
use Socket;
use Net::SMTP;
my $MAXPIDS=250;
my $TESTFROM="YOUR\@EMAIL.HERE";
my $TESTTO="OTHER\@EMAIL.ADDRESS";
@dweekly
dweekly / sweep.pl
Created Aug 16, 2020
This silly snippet from 1999 scraped Snap during their sweepstakes; I ended up winning several prizes! Heh
View sweep.pl
#!/usr/bin/perl;
use LWP::UserAgent;
$ua = new LWP::UserAgent;
$ua->agent("Mozilla/4.0 (compatible; Microsoft Internet Explorer 4.5; dewgrab v1.1; RedHat Linux 5.0)");
$ua->from('dew@cs.stanford.edu');
my $request = new HTTP::Request('GET','http://home.snap.com/search/directory/results/1,61,-0,00.html?keyword=hawaii');
$|=1;
print "entering sweepstakes...";
View Chrome Console with Long Recording Failure
​ new part 172076
2​ new part 180268
​ new part 172076
​ new part 180268
​ new part 172076
​ new part 180268
​ new part 172076
​ new part 180268
​ new part 172076
​ new part 180268
@dweekly
dweekly / aidungeon.txt
Created Jul 29, 2020
A short AI Dungeon game played by dweekly July 29, 2020
View aidungeon.txt
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.
@dweekly
dweekly / output.txt
Last active Jun 26, 2020
pelias test run failures (june 26, 2020, macOS+Docker, portland-metro project)
View output.txt
$ 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 / HttpsCheckOutput-2020jun16.txt
Created Jun 16, 2020
CPAN Mirror HTTPS Check - run June 16, 2020
View HttpsCheckOutput-2020jun16.txt
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 / gist:b5c6df56da175e020209a8f05d5815a0
Created Jun 15, 2020
No published key for CPAN 2.28? (Can't find key C52026AB9A4006BD on pool.sks-keyservers.net)
View gist:b5c6df56da175e020209a8f05d5815a0
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
You can’t perform that action at this time.