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
master branch: | |
PASS | |
BenchmarkDNSSingle 2000 640568 ns/op | |
BenchmarkDNSWildcard 2000 1184798 ns/op | |
BenchmarkDNSSECSingle 2000 956796 ns/op | |
cache branch: | |
PASS | |
BenchmarkDNSSingle 5000 716114 ns/op |
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
110 go func() { | |
1 if err := s.Run(); err != nil { | |
2 log.Fatal(err) | |
3 } | |
4 }() |
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
diff --git a/parse_test.go b/parse_test.go | |
index 12de822..5ddb880 100644 | |
--- a/parse_test.go | |
+++ b/parse_test.go | |
@@ -1049,7 +1049,7 @@ func TestTXT(t *testing.T) { | |
} | |
func TestTypeXXXX(t *testing.T) { | |
- _, err := NewRR("example.com IN TYPE1234 \\# 4 aabbccdd") | |
+ _, err := NewRR("example.com IN type1234 \\# 4 aabbccdd") |
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 | |
set -e | |
getopts "s" show && shift | |
if [[ $show == "s" ]]; then | |
while read line; do | |
hex="$(echo $line | od -N4 -x | head -1)" | |
byte=(${hex}) | |
if [[ ${byte[1]} == "4b50" && ${byte[2]} == "0403" ]]; then | |
break | |
fi |
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
# GIT HOWTO | |
## Partially Apply Pull Request | |
#. git checkout -b other-repo-master master | |
#. git pull https://github.com/other-repo/my-repo-name.git master | |
#. git checkout master | |
#. git cherry-pick COMMIT_HASH | |
## Fetch pull request |
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
Go R. Gieben | |
Internet-Draft January 7, 2015 | |
Intended status: Standards Track | |
Expires: July 11, 2015 | |
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
R. Gieben | |
Atoom | |
December 10, 2014 | |
Using mmark to create I-Ds and RFCs |
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
package main | |
import ( | |
"dns" | |
"fmt" | |
) | |
func HelloQuery(w dns.RequestWriter, req *dns.Msg, ) { | |
// client.Attemps = 3 |
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
package main | |
import ( | |
"crypto/sha1" | |
"fmt" | |
"io" | |
) | |
const ITER = 100000 |
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
package main | |
import ( | |
"flag" | |
"fmt" | |
"github.com/miekg/dns" | |
"os" | |
"unbound" | |
) |
OlderNewer