Skip to content

Instantly share code, notes, and snippets.

View andrewtj's full-sized avatar

Andrew Tunnell-Jones andrewtj

View GitHub Profile
@andrewtj
andrewtj / dns.omg.lol.example.zone
Created August 21, 2023 03:41
DNS zone file feature examples
$ORIGIN dns.omg.lol.
$TTL 3h2s ; TTL directive. Human friendly TTL format is a BIND-ism.
@ SOA ( ; parenthesis
mname ( ; can be
rname ( ; nested
1
) 2 3
4
5 )
)
@andrewtj
andrewtj / mod.rs
Created August 22, 2019 23:52
Rust proc macro derive style
// Style A: Single attribute for the crate.
#[derive(yardi::Present, yardi::Parse, /* yardi::..., */ yardi::Rdata)]
#[yardi(rdata_class = "crate::datatypes::Class::IN", rdata_ty = "crate::datatypes::Ty::NAPTR")]
struct Naptr<'a> {
#[doc = "Order: Low numbers are processed before higher numbers."]
pub order: u16,
// ...
#[doc = "Regexp: Substitution expression to apply to the original string to construct the next domain to lookup."]
#[yardi(
@andrewtj
andrewtj / tombstone_00
Created January 22, 2018 02:57
*ring* Android test crasher
*** *** *** *** *** *** *** *** *** *** *** *** *** *** *** ***
Build fingerprint: 'generic/sdk/generic:4.3.1/JB_MR2/3462034:eng/test-keys'
Revision: '0'
pid: 929, tid: 929, name: ring-test >>> ./ring-test <<<
signal 4 (SIGILL), code 1 (ILL_ILLOPC), fault addr b6f59984
r0 000864d0 r1 000004b8 r2 ffffffff r3 befc97cc
r4 b6a00100 r5 00000000 r6 b6fe0d2c r7 00000000
r8 befc99b7 r9 b6e81650 sl 00000001 fp befc9810
ip b6fdff34 sp befc97e8 lr b6f6a85c pc b6f59984 cpsr 60000010
d0 0000002000000040 d1 0000001400000040
@andrewtj
andrewtj / breaking_generate.go
Created February 22, 2016 08:21
go dns breaking change sketch
// +build ignore
package main
import (
"bytes"
"fmt"
"os"
"os/exec"
)