apiVersion: rbac.authorization.k8s.io/v1
kind: Role
metadata:
namespace: argocd
name: argocd-readonly
rules:
- apiGroups: ["*"]
resources: ["*"]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
sudo apt update | |
sudo apt install -y curl | |
sudo apt install -y docker.io | |
sudo groupadd docker | |
sudo usermod -aG docker $USER | |
sudo snap install simplenote | |
sudo snap install slack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#--- Prereq to install: | |
#--- pip3 install pyttsx3 | |
#--- sudo apt-get install espeak | |
import pyttsx3 | |
# Create TTS engine | |
engine = pyttsx3.init() |
kubectl get configmap argocd-cm -n argocd -o yaml > argocd-cm.yml
data:
accounts.<new-username>: apiKey, login
admin.enabled: "false" ##This will disable the admin user, use it only if required
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#~~~Creator: Shivesh Abhishek~~~ | |
#Video: https://youtu.be/mDdnsnnNPDI | |
#Make sure to be a root user/user with root privileges. | |
sudo su - | |
#docker installation | |
sudo apt install docker.io |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Source: https://simpleit.rocks/linux/shell/connect-to-bluetooth-from-cli/ | |
## https://unix.stackexchange.com/questions/258074/error-when-trying-to-connect-to-bluetooth-speaker-org-bluez-error-failed | |
1. Identify your computer bluetooth | |
hcitool dev | |
Devices: | |
hci0 A3:3E:XX:XX:G3:86 |
Set passwordless SSH from A to B:
- Run
ssh-keygen
into the machine you want to ssh from(A) cd
into~/.ssh
- make a directory if not exist in the machine you want to ssh to(B) -->
mkdir ~/.ssh/
cp id_rsa.pub USER@IP_OF_B:~/.ssh/authorized_keys
The above line will copy id_rsa.pub, into the machine you want to ssh to(B), in the directory ~/.ssh/authorized_keys
VokscreenNG is a user friendly Open Source screencaster for Linux and Windows. Github: VokoscreenNG
- Ctrl+Shift+f10 --> Start recording
- Ctrl+Shift+f11 --> Stop recording
- Ctrl+Shift+f12 --> Pause recording
If you pause the recording, then you'll have to first start the recording before you can stop it.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For all the confusing Prometheus configuration and | |
// regular expressions, | |
// explained in examples. | |
// Remember, there are default values for each item if it's missing. | |
// regex is (.*), | |
// replacement is $1, | |
// separator is ; | |
// ,and action is replace |
1. Set-up desired namespace as default if you want to work with it for longer period : |
---|
Edit your bashrc and add this lines:
i. vi ~/.bashrc
ii. Paste this and save:
alias ns='kubectl config set-context $(kubectl config current-context) --namespace'
iii. Restart terminal and use:
ns YOURNAMESPACE
NewerOlder