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 ( | |
"fmt" | |
"syscall" | |
"runtime" | |
) | |
func main() { | |
fmt.Printf("Version: %s\nGOOS: %s\nGOARCH: %s\n", runtime.Version(), runtime.GOOS, runtime.GOARCH) |
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/test/test_knownservers.py b/test/test_knownservers.py | |
index e53c0d0..19bde9d 100644 | |
--- a/test/test_knownservers.py | |
+++ b/test/test_knownservers.py | |
@@ -30,7 +30,7 @@ def known_servers(): | |
('Cloudflare', 'cloudflare-dns.com', '/dns-query'), | |
# Not supporting draft-13? | |
# Received b'{DoH-server}: Error x09: Request not valid | |
- # ('CleanBrowsing', 'doh.cleanbrowsing.org', '/doh/family-filter'), | |
+ ('CleanBrowsing', 'doh.cleanbrowsing.org', '/doh/family-filter/'), |
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/test/test_knownservers.py b/test/test_knownservers.py | |
index e53c0d0..3470432 100644 | |
--- a/test/test_knownservers.py | |
+++ b/test/test_knownservers.py | |
@@ -28,9 +28,7 @@ def known_servers(): | |
# Name, Domain, endpoint | |
('Google', 'dns.google.com', '/experimental'), | |
('Cloudflare', 'cloudflare-dns.com', '/dns-query'), | |
- # Not supporting draft-13? | |
- # Received b'{DoH-server}: Error x09: Request not valid |
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
-- Module interface | |
local ffi = require('ffi') | |
local basexx = require('basexx') | |
local C = ffi.C | |
-- Export module interface | |
local M = {} | |
M.layer = {} | |
local base32 = {} |
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 ( | |
"context" | |
"flag" | |
"fmt" | |
"log" | |
"math/rand" | |
"net" | |
"os" |
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
remote-control: | |
#control-cert-file: "/etc/unbound/local/unbound_control.pem" | |
control-enable: yes | |
control-interface: 127.0.0.1 | |
#control-key-file: "/etc/unbound/local/unbound_control.key" | |
control-port: 8953 | |
#server-cert-file: "/etc/unbound/local/unbound_server.pem" | |
#server-key-file: "/etc/unbound/local/unbound_server.key" | |
control-use-cert: no |
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 test | |
import ( | |
"net" | |
"github.com/coredns/coredns/plugin/test" | |
"github.com/miekg/dns" | |
) | |
// ResponseWriter extends test.ResponseWriter and record useful calls to methods. |
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 python | |
# Convert a TCX file exported from strava's export data: | |
# https://www.strava.com/activities/<activity_id>/export_original | |
# to a TCX file ready to upload to https://connect.garmin.com/ | |
# This is based on the logic from http://rodemybike.today/strava-to-garmin/ | |
# but I just find it more convenient to: | |
# ~/strava2garmin.py < strava_activity.tcx > garmin_activity.tcx | |
# or | |
# cat strava_activity.tcx | ~/strava2garmin.py > garmin_activity.tcx |
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
Manu Bretelle 2019-01-09 03:32:03 CET | |
I have been seeing some cache corruption bugs which I am not able to reproduce on the fly, one thing I noticed is that when the issue happen, the cache hit-rate goes to the roof. Fasten your seat belt. | |
using unbound 1.8.0 (synced from master on Sept 11 2018). | |
formula to compute global cache hit rate: | |
DS1 = total.num.cachehits | |
DS2 = total.num.cachemiss | |
hit rate = 100 * (DS1/(DS1 + DS2)) |
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
// Copyright 2011 Miek Gieben. All rights reserved. | |
// Use of this source code is governed by a BSD-style | |
// license that can be found in the LICENSE file. | |
// Q is a small utility which acts and behaves like 'dig' from BIND. | |
// It is meant to stay lean and mean, while having a bunch of handy | |
// features, like -check which checks if a packet is correctly signed (without | |
// checking the chain of trust). | |
// When using -check a comment is printed: | |
// |