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
### Keybase proof | |
I hereby claim: | |
* I am blaketmiller on github. | |
* I am blakemiller (https://keybase.io/blakemiller) on keybase. | |
* I have a public key ASAxbcjludSqRlAcs0hVuO1q28DjhUD1yoEPSJdgxq0EpAo | |
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
[INFO ] Running state [extra packages] at time 16:16:32.377088 | |
[INFO ] Executing state pkg.installed for extra packages | |
[INFO ] Executing command ['rpm', '-qa', '--queryformat', '%{NAME}_|-%{EPOCH}_|-%{VERSION}_|-%{RELEASE}_|-%{ARCH}_|-(none)\n'] in directory '/root' | |
[INFO ] Executing command ['yum', '--quiet', 'clean', 'expire-cache'] in directory '/root' | |
[DEBUG ] output: | |
[INFO ] Executing command ['yum', '--quiet', 'check-update'] in directory '/root' | |
[DEBUG ] Initializing new AsyncZeroMQReqChannel for ('/etc/salt/pki/minion', 'host.example.net', 'tcp://10.11.12.13:4506', 'aes') | |
[DEBUG ] Initializing new AsyncAuth for ('/etc/salt/pki/minion', 'host.example.net', 'tcp://10.11.12.13:4506') | |
[DEBUG ] Requesting URL https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm using GET method | |
[ERROR ] An error was encountered while installing package(s): Error: HTTP 599: Timeout reading https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm |
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
extra packages: | |
pkg.installed: | |
- sources: | |
- epel-release: https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm |
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 python | |
# Sample YAML file that smoke.py expects: | |
# | |
# example.com: | |
# - alice | |
# - bob/marley | |
# - charlie | |
# example.org: | |
# - david |
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
# custom PS1 prompt | |
RED='\[\e[0;31m\]' | |
LIGHTRED='\[\e[1;31m\]' | |
GREEN='\[\e[0;32m\]' | |
LIGHTGREEN='\[\e[1;32m\]' | |
BLUE='\[\e[0;34m\]' | |
LIGHTBLUE='\[\e[1;34m\]' | |
YELLOW='\[\e[1;33m\]' | |
PURPLE='\[\e[0;35m\]' |
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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>ANSIBlueColor</key> | |
<data> | |
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS | |
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NPECcw | |
LjQ5MDE5NjA3ODQgMC41NjQ3MDU4ODI0IDAuNjQzMTM3MjU0OQAQAYAC0hAREhNaJGNs | |
YXNzbmFtZVgkY2xhc3Nlc1dOU0NvbG9yohIUWE5TT2JqZWN0XxAPTlNLZXllZEFyY2hp |
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
PY_VER=2.7.11 | |
# make some directories | |
mkdir -p $HOME/usr $HOME/src $HOME/srv/salt $HOME/etc/salt/minion.d $HOME/etc/salt/master.d | |
# download requirements | |
curl https://www.python.org/ftp/python/$PY_VER/Python-$PY_VER.tgz -o $HOME/src/Python-$PY_VER.tgz | |
curl https://bootstrap.pypa.io/get-pip.py -o $HOME/src/get-pip.py | |
# extract tarball |
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 python | |
import os | |
import sys | |
import yaml | |
def dict_to_dir(data, path=str()): | |
"""dict_to_dir expects data to be a dictionary with one top-level key.""" |
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 python | |
import os | |
import sys | |
import yaml | |
def dir_to_dict(path): | |
directory = {} |
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/python | |
import datetime | |
import os | |
import subprocess | |
import re | |
import random | |
import logging | |
fullname = "John Appleseed" |