Skip to content

Instantly share code, notes, and snippets.

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

Jothibasu jbontech

:octocat:
Focusing
View GitHub Profile
@jbontech
jbontech / yadm_aliases
Created December 30, 2024 19:25 — forked from justVikram/yadm_aliases
yadm aliases
alias y=yadm
alias ya='yadm add'
alias yaa='yadm add -u'
alias yap='yadm apply'
alias yapa='yadm add --patch'
alias yau='yadm add --update'
alias yb='yadm branch'
alias yba='yadm branch -a'
alias ybd='yadm branch -d'
alias ybda='yadm branch --no-color --merged | command grep -vE "^(\*|\s*(master|develop|dev)\s*$)" | command xargs -n 1 yadm branch -d'
@jbontech
jbontech / Mac-OS-Setup.md
Created December 3, 2024 16:34 — forked from prashant0085/Mac-OS-Setup.md
Mac OS setup for DevOps Engineer

Update Mac to latest version

Update your Mac to latest version of macOS.

Install Mac Xcode Command Line Tools

xcode-select --install
# 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 "[email protected]"
@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": [
"*"