Skip to content

Instantly share code, notes, and snippets.

View Habbie's full-sized avatar

Peter van Dijk Habbie

View GitHub Profile
@Habbie
Habbie / pdns.conf
Created April 26, 2013 11:38
powerdns server configuration file
# Autogenerated configuration file template
#################################
# allow-axfr-ips Allow zonetransfers only to these subnets
#
# allow-axfr-ips=0.0.0.0/0
#################################
# allow-recursion List of subnets that are allowed to recurse
#
# allow-recursion=0.0.0.0/0
/dts-v1/;
// magic: 0xd00dfeed
// totalsize: 0x5d22 (23842)
// off_dt_struct: 0x38
// off_dt_strings: 0x4dc4
// off_mem_rsvmap: 0x28
// version: 17
// last_comp_version: 16
// boot_cpuid_phys: 0x0
// size_dt_strings: 0xf5e
diff --git a/pdns/lua-record.cc b/pdns/lua-record.cc
index d649beaba1..c3773ae75f 100644
--- a/pdns/lua-record.cc
+++ b/pdns/lua-record.cc
@@ -1440,6 +1440,7 @@ static string lua_pickclosest(const iplist_t& ips)
static void lua_report(const string& /* event */, const boost::optional<string>& /* line */)
{
throw std::runtime_error("Script took too long");
+ // ::abort();
}
diff --git a/ansible/host_vars/repo1.powerdns.com.yml b/ansible/host_vars/repo1.powerdns.com.yml
index b9b4fe7..078a0db 100644
--- a/ansible/host_vars/repo1.powerdns.com.yml
+++ b/ansible/host_vars/repo1.powerdns.com.yml
@@ -45,10 +45,10 @@ pdns_repo_packages:
'auth-43': 'PowerDNS Authoritative Server - version 4.3.X (end of life)'
'auth-42': 'PowerDNS Authoritative Server - version 4.2.X (end of life)'
'rec-master': 'PowerDNS Recursor - master branch (development)'
- 'rec-53': 'PowerDNS Recursor - version 5.3.X (pre-release)'
- 'rec-52': 'PowerDNS Recursor - version 5.2.X (stable)'
diff --git a/ansible/host_vars/repo1.powerdns.com.yml b/ansible/host_vars/repo1.powerdns.com.yml
index 899fff8..b9b4fe7 100644
--- a/ansible/host_vars/repo1.powerdns.com.yml
+++ b/ansible/host_vars/repo1.powerdns.com.yml
@@ -35,10 +35,10 @@ pdns_private_repo_keys:
pdns_repo_packages:
'auth-master': 'PowerDNS Authoritative Server - master branch (development)'
- 'auth-50': 'PowerDNS Authoritative Server - version 5.0.X (pre-release)'
- 'auth-49': 'PowerDNS Authoritative Server - version 4.9.X (stable)'
Name: dnsdist
Version: %{getenv:BUILDER_RPM_VERSION}
Release: %{getenv:BUILDER_RPM_RELEASE}%{dist}
Summary: Powerful and scriptable DNS loadbalancer
License: GPLv2
Vendor: PowerDNS.COM BV
Group: System/DNS
Source: %{name}-%{getenv:BUILDER_VERSION}.tar.xz
BuildRequires: ninja-build
BuildRequires: hostname
#!/usr/bin/env python
import sys
for line in sys.stdin:
parts = line.split()
if int(parts[6]) in (1, 5, 7, 8, 10):
pubkeys = ''.join(parts[7:]).replace(' ', '')
pubkey = pubkeys.decode('base64')
expoffset = 1
explen = ord(pubkey[0])
Build started at 2024-10-05T13:56:52.389485
Main binary: /usr/bin/python3
Build Options: -Dbuildtype=release -Dlvgl-driver=fbdev -Dprefer_static=True
Python system: Linux
The Meson build system
Version: 1.5.2
Source dir: /home/runner/work/voorkant-core/voorkant-core
Build dir: /home/runner/work/voorkant-core/voorkant-core/build-armel
Build type: native build
Project name: voorkant
diff --git a/bitflipper.sh b/bitflipper.sh
index d243420..eb2f6b9 100755
--- a/bitflipper.sh
+++ b/bitflipper.sh
@@ -51,19 +51,19 @@ then
else
MTR_INTERFACE=""
fi
-echo "Executing mtr -4Tzbw ${MTR_INTERFACE} ${TARGET}"
-mtr -4Tzbw ${MTR_INTERFACE} ${TARGET} | tee -a $REPORT
newServer('9.9.9.9')
pc = newPacketCache(10000, {maxTTL=86400, minTTL=0, temporaryFailureTTL=60, staleTTL=60, dontAge=false})
getPool(""):setCache(pc)
function randomdelay()
local d = math.random() * 100
print("delaying", d, "ms")
return DNSResponseAction.Delay, d
end