Skip to content

Instantly share code, notes, and snippets.

View mostafawkhd's full-sized avatar

Mostafa Khoshnood mostafawkhd

View GitHub Profile
@GusAntoniassi
GusAntoniassi / README.md
Last active February 14, 2026 17:00
Configure autocompletion to kubectl with zsh

kubectl with ZSH (oh-my-zsh)

How to configure

Use the following commands to add the kubectl autocomplete to zsh:

mkdir -p ~/.oh-my-zsh/custom/plugins/kubectl-autocomplete/
kubectl completion zsh > ~/.oh-my-zsh/custom/plugins/kubectl-autocomplete/kubectl-autocomplete.plugin.zsh
@Godofbrowser
Godofbrowser / axios.refresh_token.1.js
Last active November 30, 2025 18:30 — forked from culttm/axios.refresh_token.js
Axios interceptor for refresh token when you have multiple parallel requests. Demo implementation: https://github.com/Godofbrowser/axios-refresh-multiple-request
// for multiple requests
let isRefreshing = false;
let failedQueue = [];
const processQueue = (error, token = null) => {
failedQueue.forEach(prom => {
if (error) {
prom.reject(error);
} else {
prom.resolve(token);