Skip to content

Instantly share code, notes, and snippets.

View ashutoshsahoo's full-sized avatar

Ashutosh Sahoo ashutoshsahoo

  • Bengaluru, India
  • 05:22 (UTC +05:30)
View GitHub Profile
@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