Skip to content

Instantly share code, notes, and snippets.

View Techwolf12's full-sized avatar
👋

Christiaan de Die le Clercq Techwolf12

👋
View GitHub Profile

How to get the Watermeterkit into Home Assistant, see my blog post for details!

@Techwolf12
Techwolf12 / README.md
Created July 26, 2019 12:35
Generating IPv6 PTR records from a Bind9 zonefile using Bash

Generating IPv6 PTR records from a Bind9 Zonefile using Bash.

The following script takes a Bind9 zonefile, gets all AAAA records from it and generated PTR records based on them.

What you need to do:

  1. Edit the Zone header in the script.
  2. Run the script with ./generate_v6_ptr.sh /path/to/zonefile.zone

This will output the zones on STDOUT. If you want to save this to a zonefile, you can use this example:

@Techwolf12
Techwolf12 / gpg-offline-master.md
Last active June 21, 2016 14:14 — forked from abeluck/gpg-offline-master.md
GPG Offline Master Key w/ smartcard

Generate Master Key

I choose no expiration keys.

We generate the master key using the --expert flag to make sure the master key can only "certify" (sign other keys), and not sign or perform encryption.

$ gpg --expert --gen-key
gpg (GnuPG) 1.4.11; Copyright (C) 2010 Free Software Foundation, Inc.
This is free software: you are free to change and redistribute it.

There is NO WARRANTY, to the extent permitted by law.

Keybase proof

I hereby claim:

  • I am techwolf12 on github.
  • I am techwolf12 (https://keybase.io/techwolf12) on keybase.
  • I have a public key whose fingerprint is 34B3 5DD1 72E3 66BF 6867 AB06 9FB8 0037 2F25 46D8

To claim this, I am signing this object: