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 / 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
# -
#####################################################################
# 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
# -
@ustayready
ustayready / gpt.py
Created January 16, 2023 23:49
CloudGPT - Use ChatGPT to analyze AWS policies for vulnerabilities
import openai
import boto3
import json
import time
from typing import Dict, List
openai.api_key = '### SET YOUR OPENAPI API KEY HERE ###'
session = boto3.session.Session()
client = session.client('iam')
@justVikram
justVikram / yadm_aliases
Created April 5, 2022 16:46
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'
# 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
@pietrorea
pietrorea / mysql-here-document.sh
Created January 28, 2022 16:47
MySQL here document example
mysql -u root --password="${PASSWORD}" <<EOF
CREATE DATABASE ${DB_NAME};
CREATE USER '${APP_USER}'@'localhost' IDENTIFIED BY '${APP_PASSWORD}';
GRANT ALL ON ${DB_NAME}.* TO '${APP_USER}'@'localhost'
EOF
@pietrorea
pietrorea / ssh-here-document.sh
Created January 28, 2022 16:45
SSH config here document
cat > /etc/ssh/sshd_config << "EOF"
Include /etc/ssh/sshd_config.d/*.conf
#Port 22
#AddressFamily any
#ListenAddress 0.0.0.0
#ListenAddress ::
...
EOF

Local Development Techniques with Kubernetes

This talk is all live demos of tools developers can use in their inner-loop, at development time to be more productive with containers.

Start Easier

Docker Compose captures the build arguments and run arguments so we can focus on our coding.

@jbontech
jbontech / gitlab-api.py
Created May 7, 2021 19:48
Python Gitlab API example
import yaml
import gitlab
from prettytable import PrettyTable
#############################
# THIS SCRIPT WILL PRINT THE SHORT COMMIT_ID,AUTHOR,DATE,TITLE OF COMMIT FROM GITLAB API
##############################
###########################################################################################
# 1. Create the personal access token in the gitlab profile settings then user in th eprivate_token