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
#!/bin/sh | |
# Copy the contents of this file to the clipboard, then get a terminal open on your device and enter: | |
# $ cat > n.sh | |
# [Ctrl+V] or Right Click, Paste. Then [Ctrl+D]. | |
# chmod +x n.sh | |
# To run: ./n.sh eth0 | |
SLP=1 # display / sleep interval | |
DEVICE=$1 | |
IS_GOOD=0 | |
for GOOD_DEVICE in `grep \: /proc/net/dev | awk -F: '{print $1}'`; do |
// Checkout the readme for this here: https://github.com/tilaklodha/google-authenticator | |
package main | |
import ( | |
"bytes" | |
"crypto/hmac" | |
"crypto/sha1" | |
"encoding/base32" | |
"encoding/binary" |
Thank you everybody, Your comments makes it better
sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
# delete local tag '12345' | |
git tag -d 12345 | |
# delete remote tag '12345' (eg, GitHub version too) | |
git push origin :refs/tags/12345 | |
# alternative approach | |
git push --delete origin tagName | |
git tag -d tagName |