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
Fruit Price Advantages | |
----- ----- ---------- | |
Bananas $1.34 built-in wrapper | |
Apples $0.10 cures scurvy | |
Bananas $0.73 scurvy | |
Oranges $2.10 cures scurvy |
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
make() { | |
if [[ -f Makefile || -f GNUMakefile ]]; then | |
command make "$@" | |
return | |
fi | |
go build | |
# if go build failed with exit code 1, the build env wasn't | |
# correct, in that case, try make again | |
if [[ $? -eq 1 ]]; then | |
command make "$@" |
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
# In earlier versions of this makefile, the other two directories were | |
# subdirectories of $(TZDIR). However, this led to configuration errors. | |
# For example, with posix_right under the earlier scheme, | |
# TZ='right/Australia/Adelaide' got you localtime with leap seconds, | |
# but gmtime without leap seconds, which led to problems with applications | |
# like sendmail that subtract gmtime from localtime. | |
# Therefore, the other two directories are now siblings of $(TZDIR). | |
# You must replace all of $(TZDIR) to switch from not using leap seconds | |
# to using them, or vice versa. |
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
# shorten path -> /home/miekg/bla -> /h/m/bla | |
function shorten() { | |
full=$(print -P "$1") | |
a=(${(s:/:)full}) | |
if [[ $#a -eq 0 || $#a -eq 1 ]]; then | |
print $1; return | |
fi | |
last=$a[$#a] | |
a[$#a]= # clear last element | |
for i in $a; do |
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
#!/bin/bash | |
KEYDIR=/etc/bind/external/keys | |
DSDIR=/etc/bind/external/ds | |
ZONES="miek.nl atoom.net dnssex.nl dnsex.nl" | |
cd "$1" | |
for z in $ZONES; do | |
if [ -e $z.nsec3 ]; then | |
# sign with NSEC3 | |
/usr/sbin/dnssec-signzone -P $(grep -v '^\#' $z.nsec3) -N \ | |
unixtime -K $KEYDIR -d $DSDIR -o $z -S $z >/dev/null 2>&1 |
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
http://packages.ubuntu.com/saucy/libcairo2; | |
#download sources; | |
sudo apt-get build-dep libcairo2; | |
dpkg-source -x cairo_1.12.16-0ubuntu1.dsc; | |
cd cairo-*; | |
dpkg-buildpackage -rfakeroot -us -uc; | |
#install debs |
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
Network Working Group R. Gieben | |
Internet-Draft December 20, 2015 | |
Intended status: Standards Track | |
Expires: June 22, 2016 | |
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
Using <http://www.iana.org/domains/root/db> as the definition for country codes, the IANA pages for the registration date and some shell foo, this is the list of ccTLD registration: | |
arpa: 1985-01-01. | |
arpa: 1985-01-01. | |
com: 1985-01-01. | |
com: 1985-01-01. | |
mil: 1985-01-01. | |
net: 1985-01-01. | |
net: 1985-01-01. | |
us: 1985-02-15. |
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
% ./q -check -dnssec dsdksldkskd.nl | |
;+ Secure signature, 7um0qsaocsaqtmhof0hkbk9th6ek5ce9.nl. RRSIG(NSEC3) validates (DNSKEY nl./54171/net) | |
;+ Secure signature, sk4e8fj94u78smusb40o1n0oltbblu2r.nl. RRSIG(NSEC3) validates (DNSKEY nl./54171/net) | |
;+ Secure signature, t98kg1p1cjtdoc4ksb7g57jc9vulltcd.nl. RRSIG(NSEC3) validates (DNSKEY nl./54171/net) | |
;+ Secure signature, nl. RRSIG(SOA) validates (DNSKEY nl./54171/net) | |
;+ Denial, closest encloser, nl. (sk4e8fj94u78smusb40o1n0oltbblu2r) | |
;+ Denial, next closer dsdksldkskd.nl. (7um0qsaocsaqtmhof0hkbk9th6ek5ce9.nl.), covered by 7UM22A80THPR89UNASIDE8K6IHNVVAJ7 -> sk4e8fj94u78smusb40o1n0oltbblu2r | |
;+ Denial, source of synthesis *.nl. (t98kg1p1cjtdoc4ksb7g57jc9vulltcd.nl.), covered by T98MULSKU3E499AGCTTRJK6H0L3E5T92 -> sk4e8fj94u78smusb40o1n0oltbblu2r | |
;+ Denial, secure authenticated denial of existence proof for name error |
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
# | |
# See /usr/share/doc/unbound/examples/unbound.conf for a commented | |
# reference config file. | |
server: | |
# The following line will configure unbound to perform cryptographic | |
# DNSSEC validation using the root trust anchor. | |
auto-trust-anchor-file: "/var/lib/unbound/root.key" | |
do-not-query-localhost: no | |
local-zone: "168.192.in-addr.arpa" transparent |