- libevent libevent-devel libevent-headers
- curl
# remove old pkgs
''' | |
This is an example of how to send data to Slack webhooks in Python with the | |
requests module. | |
Detailed documentation of Slack Incoming Webhooks: | |
https://api.slack.com/incoming-webhooks | |
''' | |
import json | |
import requests |
#!/usr/bin/env bash | |
# Usage: salt-encrypt {optional -f} <input> <keyid>, or just `salt-encrypt` for interactive mode | |
# Summary: Encrypt some string / file for Salt | |
# Help: This command can be used to gpg encrypt some content for use in salt pillars or really anything you want to encrypt with GPG | |
set -e | |
#Replace below with the default key you encrypt with | |
DEFAULT_RECIPIENT="XXXXXX" | |
multi=0 |
#!/usr/bin/env bash | |
set -e | |
KEY=public-key | |
LABEL=key123 | |
### | |
# Method 1. Authenticate by your account & password | |
### | |
AUTH=user:password |
# Make mouse useful in copy mode | |
setw -g mode-mouse on | |
# Allow mouse to select which pane to use | |
set -g mouse-select-pane on | |
# Allow mouse dragging to resize panes | |
set -g mouse-resize-pane on | |
# Allow mouse to select windows |
#!/usr/bin/env bash | |
ADDRESS="https://" | |
API_KEY="" | |
SECRET_KEY="" | |
USE_XMLLINT=0 # true => 1, false => 0 | |
if [ x$ADDRESS == x ] || [ x$API_KEY == x ] || [ x$SECRET_KEY == x ] || [ x$USE_XMLLINT == x ]; then | |
echo 'ERROR: Set all required valiables.' | |
exit 1 |
#!/usr/bin/env python | |
"""A simple python script template. | |
""" | |
from __future__ import print_function | |
import os | |
import sys | |
import argparse |
import elasticsearch # https://www.elastic.co/guide/en/elasticsearch/client/python-api/current/index.html | |
import curator # http://curator.readthedocs.io/en/v3.4.1/examples.html | |
import sys | |
PROD_PREFIX = "prod_" | |
REPOSITORY = "Your repository here | |
HOST_LIST = [{"host": "Friendly-hostname-here", "port": 9200}] | |
def main(): |
# Steps to build and install tmux from source. | |
# Takes < 25 seconds on EC2 env [even on a low-end config instance]. | |
VERSION=2.9 | |
sudo yum -y remove tmux | |
sudo yum -y install wget tar libevent-devel ncurses-devel | |
curl -LOk https://github.com/tmux/tmux/releases/download/${VERSION}/tmux-${VERSION}.tar.gz | |
tar xzf tmux-${VERSION}.tar.gz | |
rm -f tmux-${VERSION}.tar.gz | |
cd tmux-${VERSION} |