Skip to content

Instantly share code, notes, and snippets.

View zeroc0d3's full-sized avatar
๐Ÿ‘Œ
Building Awesome Time (Infrastructure As Code)

Dwi Fahni Denni (dfdenni) zeroc0d3

๐Ÿ‘Œ
Building Awesome Time (Infrastructure As Code)
View GitHub Profile
@zeroc0d3
zeroc0d3 / zsh-plugin-history.md
Created March 24, 2025 23:20
ZSH History & Autocomplete Plugins

ZSH History & Autocomplete Plugins

Clone this repository:

git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
git clone https://github.com/zdharma-continuum/fast-syntax-highlighting.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/plugins/fast-syntax-highlighting
git clone --depth 1 -- https://github.com/marlonrichert/zsh-autocomplete.git $ZSH_CUSTOM/plugins/zsh-autocomplete
@zeroc0d3
zeroc0d3 / rancher_rke2_addons.sh
Created January 8, 2025 15:52
User Data Installation for EC2 RKE2 (CNI Calico)
#!/bin/bash
# ============================================================================== #
# Configuration for Docker runtime
# ============================================================================== #
echo "[INFO] Installing and configuring Docker..."
if [[ "$OS" == "Ubuntu" ]]; then
$PKG_INSTALL ca-certificates gnupg lsb-release
mkdir -p /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | gpg --dearmor -o /etc/apt/keyrings/docker.gpg
@zeroc0d3
zeroc0d3 / rancher_rke2_base.sh
Last active January 8, 2025 17:07
User Data Installation for EC2 RKE2 (CNI Calico)
#!/bin/bash
# base.sh - Main entry point for user data configuration
# ============================================================================== #
# Enable logging
# ============================================================================== #
exec > >(tee /var/log/user-data.log|logger -t user-data -s 2>/dev/console) 2>&1
echo "[START] UserData Script - $(date)"
# ============================================================================== #
@zeroc0d3
zeroc0d3 / how_to_get_telegram_chat_id.md
Created March 24, 2024 04:10 — forked from nafiesl/how_to_get_telegram_chat_id.md
How to get Telegram Bot Chat ID

How to get Telegram Bot Chat ID

Create a Telegram Bot and get a Bot Token

  1. Open Telegram application then search for @BotFather
  2. Click Start
  3. Click Menu -> /newbot or type /newbot and hit Send
  4. Follow the instruction until we get message like so
    Done! Congratulations on your new bot. You will find it at t.me/new_bot.
    
@zeroc0d3
zeroc0d3 / rancher-compose-v2.7.5.yml
Last active June 28, 2023 14:30
Rancher v2.7.5-rc6 Docker Compose
version: "3.7"
#================================================================================================
# NETWORK SETUP
#================================================================================================
networks:
devopscorner_net:
name: devopscorner_net
driver: bridge
ipam:
@zeroc0d3
zeroc0d3 / start-build.sh
Last active March 27, 2023 15:04
Docker Build Single Architecture Container --- CodeBuild
#!/usr/bin/env sh
# -----------------------------------------------------------------------------
# Docker Build Container
# -----------------------------------------------------------------------------
# Author : Dwi Fahni Denni
# License : Apache v2
# -----------------------------------------------------------------------------
set -e
export CI_PROJECT_PATH="devopscorner"
@zeroc0d3
zeroc0d3 / start-build-multiarch.sh
Last active March 27, 2023 14:06
Docker Build Multi Architecture Container --- CodeBuild
#!/usr/bin/env sh
# -----------------------------------------------------------------------------
# Docker Build Multi Architecture Container
# -----------------------------------------------------------------------------
# Author : Dwi Fahni Denni
# License : Apache v2
# -----------------------------------------------------------------------------
set -e
export CI_PROJECT_PATH="devopscorner"
@zeroc0d3
zeroc0d3 / gitflow-overview.puml
Created March 16, 2023 11:25 — forked from JakeGinnivan/gitflow-overview.puml
Overview of GitFlow and versions generated by GitVersion
@startuml
participant "pull/2/merge" as feature
participant develop
participant "release/2.0.0" as majorRelease
participant "release/1.3.0" as minorRelease
participant master
activate develop
activate master
master -> master: commit
master -> master: tag 1.2.0
@zeroc0d3
zeroc0d3 / Dockerfile-CICD
Last active February 13, 2024 13:38
Dockerfile for Build CI/CD Container (devopscorner/cicd) --- From NGINX 1.23-Alpine
FROM nginx:${NGINX_VERSION:-1.23-alpine}
ARG BUILD_DATE
ARG BUILD_VERSION
ARG GIT_COMMIT
ARG GIT_URL
ENV VENDOR="DevOpsCornerId"
ENV AUTHOR="DevOpsCorner.id <[email protected]>"
ENV IMG_NAME="cicd-alpine"
@zeroc0d3
zeroc0d3 / app-compose.yml
Last active February 13, 2024 13:41
Build Container CI/CD (devopscorner/cicd) with Docker Compose
version: "3.7"
#================================================================================================
# NETWORK SETUP
#================================================================================================
networks:
devopscorner_net:
name: devopscorner_net
driver: bridge
ipam: