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 python | |
import os | |
import subprocess | |
from git import Repo | |
working_dir = os.getcwd() | |
repo = Repo(working_dir) | |
origin_branches = list() |
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
{ | |
"info": { | |
"_postman_id": "0d319df0-e132-4187-82f7-5e42d4e5335d", | |
"name": "TOWER", | |
"schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json" | |
}, | |
"item": [ | |
{ | |
"name": "Get Tasks", | |
"request": { |
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/python | |
from random import getrandbits | |
from ipaddress import IPv4Network, IPv4Address | |
from ansible.module_utils.basic import AnsibleModule | |
def main(): | |
fields = {'subnet': {'required': True, 'type': 'str'}} | |
module = AnsibleModule(argument_spec=fields) |
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 python | |
# flush_dns.py | |
'''A handy script to flush dns cache for Linux/macOS/Windows.''' | |
import logging | |
from subprocess import Popen | |
from sys import platform | |
import psutil |
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
--- | |
- hosts: localhost | |
gather_facts: true | |
connection: local | |
# user: ansible | |
# become: true | |
vars: | |
# Define path to file to check | |
# file_to_check: /etc/ansible/ansible.cfg | |
# file_to_check: $HOME/ansible.cfg |
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
### Keybase proof | |
I hereby claim: | |
* I am mrlesmithjr on github. | |
* I am mrlesmithjr (https://keybase.io/mrlesmithjr) on keybase. | |
* I have a public key ASDZkpNIa6LhHlP9uBTN7GG2FYQUIM0l0SCD5wtHGjw4ywo | |
To claim this, I am signing this object: |
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
#adduser --shell /bin/bash --gecos "" --disabled-password testuser1 | |
useradd -s /bin/bash -m -G sudo testuser1 | |
echo "testuser1:testpass" | chpasswd |
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
{ | |
"variables": { | |
"boot_command_prefix": "", | |
"box_tag": "", | |
"compression_level": "6", | |
"iso_checksum": "", | |
"iso_checksum_type": "", | |
"iso_url": "", | |
"vagrant_cloud_token": "", | |
"vagrant_cloud_username": "", |
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
powershell.exe -Command "& {[Net.ServicePointManager]::SecurityProtocol = 'tls12'; Invoke-WebRequest -Uri https://raw.githubusercontent.com/ansible/ansible/devel/examples/scripts/ConfigureRemotingForAnsible.ps1 -OutFile C:\Windows\Temp\ConfigureRemotingForAnsible.ps1}" | |
powershell.exe -ExecutionPolicy Unrestricted -File C:\Windows\Temp\ConfigureRemotingForAnsible.ps1 -ForceNewSSLCert -EnableCredSSP |
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 python | |
import json | |
VMS = { | |
'db01': { | |
'profile': 'Linux_DB', | |
'vm_size': 'medium' | |
}, | |
'web01': { | |
'profile': 'Linux_Web', |