Skip to content

Instantly share code, notes, and snippets.

View ashutoshsahoo's full-sized avatar

Ashutosh Sahoo ashutoshsahoo

  • Bengaluru, India
  • 19:55 (UTC +05:30)
View GitHub Profile
@ashutoshsahoo
ashutoshsahoo / Kong-Kubernetes-Hybrid-Mode.MD
Created February 16, 2025 10:11
Run Kong in Hybrid mode inside kubernetes cluster

Run Kong in Hybrid mode inside Kubernetes cluster

Prerequisites

  • Helm 3
  • kubectl v1.19 or later

Installation

@ashutoshsahoo
ashutoshsahoo / Docker-compose-MySQL-phpMyAdmin.md
Last active February 9, 2025 16:37
MySQL and PhpMyAdmin Docker Compose Setup

MySQL and PhpMyAdmin Docker Compose Setup

Docker compose file

Create a file named docker-compose.yml and add following content into it.

services:
 mysqldb:
@ashutoshsahoo
ashutoshsahoo / Create-Release-Branch.MD
Last active February 3, 2025 08:14
Create Release Branch for a list of bitbucket URLs

Create Release Branch from Develop for Multiple Bitbucket Repositories

Overview

This script automates the process of creating a release branch from the develop branch for multiple Bitbucket repositories. It ensures that a new branch is only created if it does not already exist.

Features

  • Reads a list of Bitbucket repository URLs from a file.
  • Clones each repository (if not already cloned).
@ashutoshsahoo
ashutoshsahoo / Microsoft.PowerShell_profile.ps1
Created August 3, 2022 17:11
Windows Terminal command autocomplete
Import-Module posh-git
Import-Module oh-my-posh
Import-Module PSReadLine
Set-PoshPrompt -Theme gmay_ashu
New-Alias kc kubectl
# Shows navigable menu of all options when hitting Tab
Set-PSReadLineKeyHandler -Key Tab -Function MenuComplete
# Autocompleteion for Arrow keys
@ashutoshsahoo
ashutoshsahoo / Kafka-Commands.MD
Created February 11, 2022 18:47
Kafka commands

Kafka Commands

Create topic

  • Check version
kafka-topics --version
@ashutoshsahoo
ashutoshsahoo / PythonProjectSetup.MD
Created February 5, 2022 04:15
Set up a new Python project
  • Create Folder and Virtual environment
mkdir myproject
cd myproject
python -m venv venv
  • Activate Virtual Environment
@ashutoshsahoo
ashutoshsahoo / DockerCLICommands.MD
Last active February 5, 2022 04:28
Docker commands
  • Stop all containers:

docker stop $(docker ps -a -q)

  • Remove all containers:

docker rm $(docker ps -a -q)

  • Remove <none> images:
@ashutoshsahoo
ashutoshsahoo / curlURLRecursively.sh
Last active March 27, 2022 16:37
Curl URL recursively from bash shell
for i in {1..10}; do echo && curl --ssl-no-revoke "https://www.google.com" && sleep 1; done
for i in $(seq 1 100); do curl -s -o /dev/null "http://localhost:8080"; done