yum -y update
yum install -y mailx
#! /usr/bin/python | |
import fileinput, argparse | |
from glob import glob | |
""" | |
# read from <file(s)> or <STDIN> | |
# Examples: | |
args.py *.txt | |
args.py 1.txt 2.txt 3.txt |
#! /usr/bin/env python | |
import os, argparse, time, datetime, pytz, json | |
import logging, logging.handlers | |
from pprint import pprint | |
""" | |
usage examples: | |
>utc.py # current epoch to timestamp for each timezone | |
>utc.py 1234567890 # epoch to timestamp for each timezone | |
>utc.py -t "2009-02-13 23:31:30" # timestamp string to epoch for each timezone | |
>utc.py -r # run forever |
#! /usr/bin/python | |
import sys, time, os, datetime, json | |
import logging, logging.handlers | |
import subprocess | |
log = logging.getLogger(__name__) | |
UID = "moo" | |
PWD = "moo" |
#!/bin/bash | |
############################################################################### | |
# basics | |
############################################################################### | |
yum -y install wget | |
############################################################################### | |
# python 3.7.4 |
#!/bin/bash | |
############################################################################### | |
# docker | |
############################################################################### | |
curl -kfsSL https://get.docker.com/ | sh | |
systemctl start docker |
#!/bin/bash | |
############################################################################### | |
# mongodb | |
############################################################################### | |
cat > /etc/yum.repos.d/mongodb-org-4.2.repo << ENDOFFILE | |
[mongodb-org-4.2] | |
name=MongoDB Repository | |
baseurl=http://repo.mongodb.org/yum/redhat/7/mongodb-org/4.2/x86_64/ |
#!/bin/bash | |
sudo yum install ntp | |
sudo firewall-cmd --permanent --add-service=ntp | |
sudo firewall-cmd --reload | |
sudo systemctl start ntpd |
docker run -d --name=dev-consul --net=host consul |
docker run -d \ | |
-p 3000:3000 \ | |
--name=grafana \ | |
-v grafana-storage:/var/lib/grafana \ | |
-e "GF_SMTP_ENABLED=true" \ | |
-e "GF_SMTP_HOST=CHANGEME!:25" \ | |
-e "GF_SMTP_FROM_ADDRESS=CHANGEME!" \ | |
grafana/grafana |