Skip to content

Instantly share code, notes, and snippets.

View jbartko's full-sized avatar

John Bartko jbartko

  • lol no
  • Austin, TX
View GitHub Profile
@jbartko
jbartko / nscheck
Created August 11, 2013 02:16
nscheck - check DNS A and PTR records against multiple nameservers.
#!/bin/bash
# nscheck
# Author: John Bartko <jbartko@gmail.com>
NS1=$(grep nameserver /etc/resolv.conf | head -n 1 | awk '{print $2}')
NS2='8.8.8.8'
DIG=/usr/bin/dig
DIGOPTS='+noall +answer '
@jbartko
jbartko / purgedirs.md
Created June 2, 2013 20:48
Example of r10k purging its basedir even though the purgedirs directive is commented out.
$ cat /etc/r10k.yaml
# The location to use for storing cached Git repos
:cachedir: '/var/cache/r10k'

# A list of git repositories to create
:sources:
 # This will clone the git repository and instantiate an environment per