Skip to content

Instantly share code, notes, and snippets.

View amrutprabhu's full-sized avatar

Amrut Prabhu amrutprabhu

View GitHub Profile
@amrutprabhu
amrutprabhu / Kubernetes cheat sheet - Very Helpful
Created December 2, 2020 09:39
Kubernetes cheat sheet - Very Helpful
https://kubernetes.io/docs/reference/kubectl/cheatsheet/
@amrutprabhu
amrutprabhu / oh my zsh autosuggestions like fish shell.md
Last active September 5, 2024 15:08
Configure autocompletion/ autosuggestions like fish shell for zsh
  1. clone zsh-autosuggestion in custom plugins location
git clone https://github.com/zsh-users/zsh-autosuggestions.git $ZSH_CUSTOM/plugins/zsh-autosuggestions

(optional) if you want syntax highlighting like fish shell. clone zsh-syntax-highlighting to custom plugins location.

git clone https://github.com/zsh-users/zsh-syntax-highlighting.git $ZSH_CUSTOM/plugins/zsh-syntax-highlighting
@amrutprabhu
amrutprabhu / Delete multiple kubernetes pod
Created April 2, 2020 11:55
Delete multiple kubernetes pod based on pattern
kubectl -n amrut get pods | awk '{print $1}' | grep 'podname-' | xargs kubectl -n amrut delete pod
@amrutprabhu
amrutprabhu / Helm template output
Last active May 4, 2021 20:26
helm template output locally after making changes
helm template templates/deployment.yaml <chart location>
e.g
helm template templates/deployment .
https://github.com/awslabs/amazon-ecr-credential-helper
@amrutprabhu
amrutprabhu / Raspberry pi via wifi - Headless SSH
Last active February 18, 2019 00:29
Connect Raspberry PI via SSH with the pi connecting to wifi on boot
Image burner : https://www.balena.io/etcher/?ref=etcher_footer
Image : Raspbian Stretch (https://www.raspberrypi.org/downloads/raspbian/)
Enable SSH
To enable it you need to place a blank text file called "ssh" in the root of the "boot" drive of the SD card.
Wifi Connection Setup:
create a second text file called `wpa_supplicant.conf` and place that in the root of the "boot" drive of the SD card.
Content:
https://stedolan.github.io/jq/
@amrutprabhu
amrutprabhu / Maven compiler properties
Created February 7, 2019 14:22
Maven compiler properties
<properties>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
</properties>
@amrutprabhu
amrutprabhu / ssh-tunnelling
Created December 21, 2018 11:53
ssh tunnelling
ssh -N -f -L <localport>:localhost:<remote port> <remote host>
@amrutprabhu
amrutprabhu / Useful Intellij Plugins
Created December 11, 2018 09:30
Some intellij plugins which are very useful
CamelCase
https://plugins.jetbrains.com/plugin/7160-camelcase