Skip to content

Instantly share code, notes, and snippets.

View jbontech's full-sized avatar
:octocat:
Focusing

Jothibasu jbontech

:octocat:
Focusing
View GitHub Profile
# 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
@jbontech
jbontech / multiple_ssh_setting.md
Created January 23, 2024 18:01 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

Multiple SSH Keys settings for different github account

create different public key

create different ssh key according the article Mac Set-Up Git

$ ssh-keygen -t rsa -C "your_email@youremail.com"
@jbontech
jbontech / dagger.sh
Created December 30, 2023 19:32 — forked from vfarcic/dagger.sh
#####################################################################
# 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
# -
@jbontech
jbontech / scp-ssh.gradle
Created December 30, 2021 20:05 — forked from chilicat/scp-ssh.gradle
A simple gradle task to upload a file via SCP to a remote host and to execute a command via SSH on a remote host.
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)
@jbontech
jbontech / Restore_RDS_from_Snapshot.py
Created December 27, 2021 17:41 — forked from wehappyfew/Restore_RDS_from_Snapshot.py
A script that finds the most recent snapshot of an existing rds instance and creates a new db instance based on that
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
@jbontech
jbontech / amazon-cloudwatch-agent.log
Created September 28, 2021 19:20 — forked from mdemblani/amazon-cloudwatch-agent.log
Cloudwatch Agent Configuration Snippets
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
@jbontech
jbontech / CloudWatchAgentConfig.json
Created September 28, 2021 19:15 — forked from csereno/CloudWatchAgentConfig.json
AWS CloudWatch Agent configuration file example for Linux with standard /var/log/messages, secure, and yum logs
{
"agent": {
"metrics_collection_interval": 10,
"logfile": "/opt/aws/amazon-cloudwatch-agent/logs/amazon-cloudwatch-agent.log"
},
"metrics": {
"metrics_collected": {
"cpu": {
"resources": [
"*"
@jbontech
jbontech / postgres.service
Created September 21, 2021 19:34 — forked from BenHall/postgres.service
Docker Systemd Unit File
[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
@jbontech
jbontech / Makefile
Created August 12, 2021 18:58 — forked from ryu1kn/Makefile
Encrypt/decrypt with AWS KMS using AWS cli
# 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: