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
# All authority gluerecs by name: | |
dig +noall +authority $NAME @b.gtld-servers.net | sed -e 's/.*\s//' | xargs -n1 -I % bash -c 'dig +short $NAME @% | sed -e s/^/%\\t/' | |
# All authority gluerecs with glue IPs: | |
dig +noall +additional $NAME @b.gtld-servers.net | sed -e 's/.*\s//' | xargs -n1 -I % bash -c 'dig +short $NAME @% | sed -e s/^/%\\t/' | |
# All recs found with resolving every name to all known IPs | |
dig +noall +authority $NAME @b.gtld-servers.net | sed -e 's/.*\s//' | xargs -n1 -I % dig +short NS $ZONE @% | sort -u | xargs -n1 -I % bash -c 'dig +short A %; dig +short AAAA %' | sort -u | grep -v : |xargs -n1 -I % bash -c 'dig +short $NAME @% | sed -e s/^/%\\t/' | |
# For one above, find zone by name (not 100% good but works ok for basic things): |
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/dnssec.go b/dnssec.go | |
index 84cb214..9198d6d 100644 | |
--- a/dnssec.go | |
+++ b/dnssec.go | |
@@ -18,8 +18,26 @@ import ( | |
"sort" | |
"strings" | |
"time" | |
+ "io" | |
) |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>websocketd greeter example</title> | |
<style> | |
#messages { | |
font: bold 2em arial; | |
margin: auto; | |
padding: 10px; | |
text-align: center; |
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/server_test.go b/server_test.go | |
index 4041468..bf60984 100644 | |
--- a/server_test.go | |
+++ b/server_test.go | |
@@ -40,10 +40,6 @@ func RunLocalUDPServer(laddr string) (*Server, string, error) { | |
server.ActivateAndServe() | |
pc.Close() | |
}() | |
- // in order to let all Server internals to finish before test will touch | |
- // server's internal fields, we need to cycle thru other goroutinges for |
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/zscan.go b/zscan.go | |
index e051d8e..ed0114f 100644 | |
@@ -671,9 +671,11 @@ func zlexer(s *scan, c chan lex) { | |
if stri != 0 { | |
l.value = _STRING | |
l.token = string(str[:stri]) | |
+ l.tokenUpper = strings.ToUpper(l.token) | |
+ | |
l.length = stri | |
if !rrtype { |
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/sh | |
# this will fire even when sleep is working (when assuming bash) | |
ok(){ | |
echo "TRAP" | |
exit 2 | |
} | |
trap "ok" SIGINT |
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/client.go b/client.go | |
index 7842cfc..a12f4ba 100644 | |
--- a/client.go | |
+++ b/client.go | |
@@ -47,6 +47,7 @@ func (c *Client) Exchange(m *Msg, a string) (r *Msg, rtt time.Duration, err erro | |
if err = w.dial(); err != nil { | |
return nil, 0, err | |
} | |
+ defer w.close() | |
if err = w.send(m); err != nil { |
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
#!/usr/bin/env node | |
var fs = require('fs'); | |
fs.readFile( process.argv[2], function(e, b) {console.log(JSON.stringify(JSON.parse(b), null, 2))} ) |
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
<!DOCTYPE html> | |
<!-- mostly borrowed from Mojo --> | |
<html> | |
<head> | |
<title>WebSocket</title> | |
</head> | |
<body> | |
Testing WebSockets, please make sure you have JavaScript enabled. | |
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
Fedora 14: | |
/lib/libuuid.so.1 | |
linux-gate.so.1 => (0x00a80000) | |
libc.so.6 => /lib/libc.so.6 (0x0028c000) | |
/lib/ld-linux.so.2 (0x0026b000) | |
FreeBSD: | |
/usr/local/lib/libuuid.so: | |
libc.so.7 => /lib/libc.so.7 (0x800633000) |
NewerOlder