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
#!/bin/bash -ex | |
# ssh-add ~/path/to/aws-key-file.pem | |
LOCAL_PORT=${1:-15432} | |
EB_ENV=`mktemp` | |
trap 'rm -f $EB_ENV; exit' SIGINT SIGQUIT SIGKILL SIGTERM | |
# See https://serverfault.com/a/883673/373074 | |
eb ssh --quiet -e 'ssh' -c 'cat /opt/python/current/env' > "$EB_ENV" |
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 bash | |
# Example usage from an Ansible playbook: | |
# - name: Copy the nginx validate script | |
# copy: src=validate-nginx-config.sh dest=/opt/validate-nginx-config.sh mode=0744 | |
# | |
# - name: Update main nginx config file | |
# template: | |
# src: nginx.conf.j2 | |
# dest: /etc/nginx/nginx.conf |
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 python3 | |
import os | |
import sys | |
import readline | |
import atexit | |
from collections import defaultdict | |
def completer(funcs): | |
completionhelper = dict() |