Skip to content

Instantly share code, notes, and snippets.

View akatch's full-sized avatar

Al Bowles akatch

View GitHub Profile
---
- hosts: localhost
vars:
foo: |
begin key file
end key file
bar: |
begin cert file
end cert file
baz: |
>>> bundle exec bin/check-whois-domain-expiration.rb --domain google.com --warn 30 --critical 4
WhoisDomainExpirationCheck OK: google.com expires on 09-13-2020 (1138 days away)
>>> bundle exec bin/check-whois-domain-expiration.rb --domain duckduckgo.com
WhoisDomainExpirationCheck OK: duckduckgo.com expires on 06-23-2019 (689 days away)
>>> bundle exec bin/check-whois-domain-expiration-multi.rb --domains example.com,wisc.edu
WhoisDomainExpirationCheck OK: No domains expire in the near term
>>> bundle exec bin/check-whois-domain-expiration-multi.rb --domains google.com,duckduckgo.com --warn 30 --critical 5
# This is a list / array
numbers:
- one
- two
- three
# This is a dict / hash
numbers:
---
- name: Gather VPC subnet facts
ec2_vpc_subnet_facts:
filters:
tag:Environment='{{ Environment }}'
check_mode: no
register: vpc_subnet_facts
@akatch
akatch / broken.yaml
Last active February 2, 2017 21:35 — forked from rektide/ansible-dict-iter.yaml
Ansible cannot iterate on a dict & check the results (changed_when/failed_when/&c).
---
- hosts: localhost
vars:
places:
alpha: /home
beta: /srv
delta: /opt
gamma: /etc
epsiolon: /code
@akatch
akatch / make-iso.sh
Created October 24, 2014 14:22
Bash script for slipstreaming preseed file into Debian ISO
#!/bin/bash
# Usage:
# Download Debian ISO and set RAW_DEBIAN_ISO to the absolute path of the ISO location
# Create a Debian preseed file (the attached preseed file works but needs your root publickey specified in the last line) and set PRESEED_FILE to the absolute path of the preseed file location
# Run this script as root to slipstream the preseed file into the ISO
RAW_DEBIAN_ISO='~/debian-7.6.0-amd64-netinst.iso'
WORKDIR='~/DEBIAN_ISO_WORKDIR'
PRESEED_FILE='~/preseed.cfg'
@akatch
akatch / xboxdrv.service
Created October 24, 2014 01:54
systemd script for xboxdrv
# Systemd unit to enable xboxdrv driver for Xbox 360 controller
# Usage:
# save to /lib/systemd/system/xboxdrv.service
# to start: sudo service xboxdrv start
# to enable on boot: sudo systemctl enable xboxdrv
[Unit]
Description=Xbox controller driver daemon
[Service]

Keybase proof

I hereby claim:

  • I am akatch on github.
  • I am akat (https://keybase.io/akat) on keybase.
  • I have a public key whose fingerprint is 7C2D 671B 08A2 0D8A AD52 540E 1FB2 B534 ECD5 4608

To claim this, I am signing this object: