create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
# Source: https://gist.github.com/bc1188d2a4b8d5295890e9c5438b9ce4 | |
################################# | |
# 10 Must-Have Kubernetes Tools # | |
# https://youtu.be/CB79eTFbR0w # | |
################################# | |
# Additional Info: | |
# - How To Replace Docker With nerdctl And Rancher Desktop: https://youtu.be/evWPib0iNgY | |
# - k9s Kubernetes UI - A Terminal-Based Vim-Like Kubernetes Dashboard: https://youtu.be/boaW9odvRCc |
create different ssh key according the article Mac Set-Up Git
$ ssh-keygen -t rsa -C "[email protected]"
##################################################################### | |
# Dagger: The Missing Ingredient for Your Disastrous CI/CD Pipeline # | |
##################################################################### | |
# Additional Info: | |
# - Dagger: https://dagger.io | |
# - Your CI/CD Pipelines Are Wrong - From Monoliths To Events: https://youtu.be/TSQ0QpfCi1c | |
# - Is CUE The Perfect Language For Kubernetes Manifests (Helm Templates Replacement)?: https://youtu.be/m6g0aWggdUQ | |
# - Is Timoni With CUE a Helm Replacement?: https://youtu.be/bbE1BFCs548 | |
# - |
Gist to support https://www.youtube.com/watch?v=QNZNfvrFBMo
docker run --rm --name jenkins -p 8080:8080 -p 50000:50000 jenkins/jenkins:2.303.1-jdk8
docker run --rm --name jenkins -p 8080:8080 -p 50000:50000 -v jenkins_home:/var/jenkins_home jenkins/jenkins:2.303.1-jdk8
repositories { mavenCentral() } | |
configurations { sshAntTask } | |
dependencies { sshAntTask 'org.apache.ant:ant-jsch:1.9.2' } | |
ant.taskdef( | |
name: 'scp', | |
classname: 'org.apache.tools.ant.taskdefs.optional.ssh.Scp', | |
classpath: configurations.sshAntTask.asPath) |
from time import time, localtime, strftime, sleep, gmtime | |
from AWSsetup import AWS_user_secret_access_key,AWS_user_access_key_id | |
import boto.rds | |
def get_rds_instance_status(RDSconn, rds_instance_name): | |
# Grab the RDS instance status | |
instances = RDSconn.get_all_dbinstances( | |
instance_id = rds_instance_name, | |
) | |
# print instances #debug |
2020-05-06T10:17:35Z I! will use file based credentials provider | |
2020-05-06T10:17:35Z I! cloudwatch: publish with ForceFlushInterval: 1m0s, Publish Jitter: 37s | |
2020-05-06T10:17:35Z I! Starting AmazonCloudWatchAgent (version 1.237768.0) | |
2020-05-06T10:17:35Z I! Loaded outputs: cloudwatch cloudwatchlogs | |
2020-05-06T10:17:35Z I! Loaded inputs: tail cpu diskio processes statsd swap disk mem netstat socket_listener | |
2020-05-06T10:17:35Z I! Tags enabled: host=ip-X-X-X-X | |
2020-05-06T10:17:35Z I! Agent Config: Interval:1m0s, Quiet:false, Hostname:"ip-X-X-X-X", Flush Interval:1s | |
2020-05-06T10:17:35Z I! Started the statsd service on :8125 | |
2020-05-06T10:17:35Z I! Statsd listener listening on: [::]:8125 | |
2020-05-06T10:17:35Z I! will use file based credentials provider |
{ | |
"agent": { | |
"metrics_collection_interval": 10, | |
"logfile": "/opt/aws/amazon-cloudwatch-agent/logs/amazon-cloudwatch-agent.log" | |
}, | |
"metrics": { | |
"metrics_collected": { | |
"cpu": { | |
"resources": [ | |
"*" |
[Unit] | |
Description=PostgreSQL container | |
Requires=docker.service | |
After=docker.service | |
[Service] | |
Restart=on-failure | |
RestartSec=10 | |
ExecStartPre=-/usr/bin/docker stop postgres | |
ExecStartPre=-/usr/bin/docker rm postgres |
# How to encrypt/decrypt your text/blob secret with AWS KMS with AWS cli | |
KEY_ID=alias/my-key | |
SECRET_BLOB_PATH=fileb://my-secret-blob | |
SECRET_TEXT="my secret text" | |
ENCRYPTED_SECRET_AS_BLOB=encrypted_secret_blob | |
DECRYPTED_SECRET_AS_BLOB=decrypted_secret_blob # Result of decrypt-blob target | |
encrypt-text: |