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
FROM ubuntu | |
RUN apt-get update && apt-get install -y openssh-client | |
RUN ssh-add -l 2>&1 | tee -a /tmp/ssh-agent.out || true | |
RUN cat /tmp/ssh-agent.out |
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
#! /bin/bash | |
# Description: show dependency tree | |
# Author: damphat | |
if [ $# != 1 ]; then | |
echo 'Usage: apt-rdepends-tree <package>' | |
echo 'Required packages: apt-rdepends' | |
exit 1 | |
fi |
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
1) ==== Autossh using systemd ==== | |
Example from | |
https://gist.github.com/drmalex07/c0f9304deea566842490 | |
2) ============= | |
Install autossh |
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
SRE and DevOps share similar foundational principles; | |
SRE could be seen as a refined implementation of DevOps, | |
although SRE existed before the coinage of the term DevOps. | |
SRE contains ownership, oversight and responsibilities that differ from DevOps. |
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
pushgateway clients (eg: lambda functions) push to api-gateway. | |
api gateway invokes a lambda "receiver" function which | |
- reads pushgateway event, and writes that event data to SNS | |
(decoupled event queue is implemented via SNS) | |
a lambda reader that triggers based on SNS queue depth | |
- writes SNS events to dynamodb (TTL optional) |
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
# yum makecache fast ; yum install -y less file binutils | |
Apr 15 20:24:14 Updated: file-libs-5.34-3.37.amzn1.x86_64 | |
Apr 15 20:24:14 Installed: file-5.34-3.37.amzn1.x86_64 | |
Apr 15 20:26:33 Installed: binutils-2.25.1-31.base.66.amzn1.x86_64 |
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
Apr 15 20:24:14 Updated: file-libs-5.34-3.37.amzn1.x86_64 | |
Apr 15 20:24:14 Installed: file-5.34-3.37.amzn1.x86_64 | |
Apr 15 20:26:33 Installed: binutils-2.25.1-31.base.66.amzn1.x86_64 |
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
( cd ${dest_path} && $0 ) | |
vs | |
( cd ${dest_path} && $(realpath "${BASH_SOURCE[0]}") ) |
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
# Set the backend | |
terraform { | |
backend "s3" { | |
encrypt = true | |
} | |
} | |
# Get most recent AMI_ID for base | |
data "aws_ami" "base_ami" { | |
most_recent = true |