configure {
I hereby claim:
- I am jondkelley on github.
- I am jondkelley (https://keybase.io/jondkelley) on keybase.
- I have a public key ASCFZQZREFgmJFVe_RYCwP5WlKXg6FcHspzlIFaeIV3QAQo
To claim this, I am signing this object:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# pip3 install dnspython3 | |
# pip3 install dnspython | |
import json | |
import dns.resolver | |
import requests | |
import os |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
- name: 'get newrelic-infra config' | |
win_shell: 'more newrelic-infra.yml' | |
args: | |
chdir: 'C:\Program Files\New Relic\newrelic-infra\' | |
executable: cmd | |
register: hello | |
- name: 'show newrelic-infra config' |
The complexity you might consider dictates the style of your environments as you see the examples 'good' 'better' and 'best' below. The best is not always better if it's a waste of time after all.
- Do use hosts: limiters to the least destructive inclusion group for added safety whenever possible.
- Do use extended block notation if you need additional levels of control around playbook / role execution.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ARC="x86_64" | |
install_driver () { | |
arg1=$1 | |
arg2=$2 | |
arg3=$3 | |
arg4=$4 | |
echo $arg1 ${arg2} $arg3 $arg4 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# pip3 install aiosmtpd | |
from aiosmtpd.controller import Controller | |
from aiosmtpd.handlers import AsyncMessage | |
from aiosmtpd.smtp import SMTP, syntax | |
from asyncio import coroutine | |
import asyncio | |
import logging | |
import uuid | |
import logging |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# pip3 install aiosmtpd | |
from aiosmtpd.controller import Controller | |
from aiosmtpd.handlers import AsyncMessage | |
from aiosmtpd.smtp import SMTP, syntax | |
from asyncio import coroutine | |
import asyncio | |
import logging | |
import uuid | |
import logging |