Skip to content

Instantly share code, notes, and snippets.

Matt Nordhoff mnordhoff

Block or report user

Report or block mnordhoff

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:c7b2e0fe7d7b4579a2b7efc9c58a6eef
$ mhost -bnqS pl | xargs mhost -q | xargs -I _ dig @_ +bufsize=512 +dnssec +ignore +nocookie +norecurse i-dns.pl aaaa
; <<>> DiG 9.13.5-1+ubuntu16.04.1+deb.sury.org+2-Ubuntu <<>> @194.181.87.156 +bufsize +dnssec +ignore +nocookie +norecurse i-dns.pl aaaa
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 48459
;; flags: qr aa; QUERY: 1, ANSWER: 0, AUTHORITY: 4, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
View gist:c87ee308bf70a2358ddc1d6eb5793a99
$ mhost -bnqS pl | xargs mhost -q | xargs -I _ dig @_ +bufsize=512 +dnssec +ignore +nocookie +norecurse +tcp Nextcloud.Majchrowski.Waw.Pl caa | awk '{print " " $0}'
; <<>> DiG 9.13.5-1+ubuntu16.04.1+deb.sury.org+2-Ubuntu <<>> @194.181.87.156 +bufsize +dnssec +ignore +nocookie +norecurse +tcp Nextcloud.Majchrowski.Waw.Pl caa
; (1 server found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 46534
;; flags: qr; QUERY: 1, ANSWER: 0, AUTHORITY: 6, ADDITIONAL: 3
;; OPT PSEUDOSECTION:
View gist:ce9f4d1a8c496751ef6e8ab435f0c45f
$ dig +bufsize=512 +dnssec +norecurse @b.edu-servers.net chattanoogastate.edu
; <<>> DiG 9.13.5-1+ubuntu16.04.1+deb.sury.org+2-Ubuntu <<>> +bufsize +dnssec +norecurse @b.edu-servers.net chattanoogastate.edu
; (2 servers found)
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53484
;; flags: qr; QUERY: 1, ANSWER: 0, AUTHORITY: 9, ADDITIONAL: 1
;; OPT PSEUDOSECTION:
View gist:627aac14f8b179ff4a67ec4b804abc1e
NSEC TLDs
2018-04-01
TLD MIN TTL Operator
audio 86400 900 Uniregistry
auto 86400 900 Uniregistry
blackfriday 86400 900 Uniregistry
cars 86400 900 Uniregistry
christmas 86400 900 Uniregistry
click 86400 900 Uniregistry
View lua.mattnordhoff.life.zone
time 1 LUA A "(string.gsub(os.date('!127.%H.%M.%S'), '%.0', '.'))"
time 1 LUA AAAA "os.date('!2001:0db8:%Y:00%m:00%d:00%H:00%M:00%S')"
time 1 LUA TXT "os.date('!%FT%TZ')"
View public_suffix_list.py
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
import sys
import idna
def main():
for line in sys.stdin:
line = line.rstrip()
View nginx.conf
map $host $host_or_hyphen {
default $host;
"" -;
}
log_format lighttpd
'$remote_addr $host_or_hyphen $remote_user [$time_local] "$request" '
'$status $body_bytes_sent "$http_referer" "$http_user_agent"';
access_log /var/log/nginx/access.log lighttpd;
View web-server.conf
server {
listen 80;
location /.well-known/acme-challenge/ {
root /path/to/certbot;
try_files $uri @redirect;
}
location @redirect {
return http://xmpp-server.example.com$request_uri;
}
server_name example.com www.example.com;
View control
Source: curl
Section: web
Priority: optional
Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
XSBC-Original-Maintainer: Alessandro Ghedini <ghedo@debian.org>
Uploaders: Ian Jackson <ijackson@chiark.greenend.org.uk>
Build-Depends: debhelper (>= 9),
autoconf,
automake,
ca-certificates,
View unmozlz4.py
#!/usr/bin/env python
# -*- coding: UTF-8 -*-
# Copyright (c) 2014, 2016 Matt Nordhoff <mnordhoff@mattnordhoff.com>
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to deal
# in the Software without restriction, including without limitation the rights
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
# copies of the Software, and to permit persons to whom the Software is
You can’t perform that action at this time.