#!/bin/bash
BASEDIR=$(dirname "$0")
LOGGING_PREFIX="gen_cert.sh >> "
PASSKEY=somekey
rm -f ${BASEDIR}/server.crt
This file contains 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 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 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 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 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 | |
import asyncio | |
from aiosmtpd.controller import Controller | |
from aiosmtpd.handlers import AsyncMessage | |
from aiosmtpd.smtp import SMTP, syntax | |
import logging | |
import uuid | |
import logging |
This file contains 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 -*- | |
"""A tool to fetch limit N number of twitter posts from twitter handle | |
Usage: | |
twitter_follow --handle HANDLE [--limit NUMBER] | |
twitter_follow -h | |
Options: | |
-h show help |
This file contains 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
$ diff -U0 <(ssh lproxy5 'ls /etc/hapee-1.7/ssl') <(ssh lproxy6 'ls /etc/hapee-1.7/ssl') | |
--- /dev/fd/63 2018-06-26 16:15:26.000000000 -0500 | |
+++ /dev/fd/62 2018-06-26 16:15:26.000000000 -0500 | |
@@ -2 +1,0 @@ | |
-bt-wild-haproxy.pem |