Skip to content

Instantly share code, notes, and snippets.

View shiveshabhishek's full-sized avatar
👨‍💻
Wingardium Leviosa 🎉

Shivesh Abhishek shiveshabhishek

👨‍💻
Wingardium Leviosa 🎉
View GitHub Profile
@shiveshabhishek
shiveshabhishek / text-to-speech.py
Created May 15, 2023 06:23
python text to speech
#--- Prereq to install:
#--- pip3 install pyttsx3
#--- sudo apt-get install espeak
import pyttsx3
# Create TTS engine
engine = pyttsx3.init()
@shiveshabhishek
shiveshabhishek / argocd-user.md
Created April 17, 2023 21:53
argocd user creation

Create user in ArgoCD

Get the configmap from the cluster and edit it

kubectl get configmap argocd-cm -n argocd -o yaml > argocd-cm.yml

Add data field in the yaml like below:

data:
  accounts.<new-username>: apiKey, login 
  admin.enabled: "false" ##This will disable the admin user, use it only if required
@shiveshabhishek
shiveshabhishek / argocd.sh
Last active April 16, 2023 20:45
Installation useful commands : ArgoCD v2.6.7
#!/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
@shiveshabhishek
shiveshabhishek / ubuntu-bluetooth-fix
Created July 21, 2022 09:49
Linux Bluetooth fix
## 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
@shiveshabhishek
shiveshabhishek / ssh.md
Last active April 26, 2020 09:13
Passwordless ssh via keygen

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
@shiveshabhishek
shiveshabhishek / keyboard-shortcuts.md
Last active October 20, 2021 06:57
Vokoscreen keyboard shortcuts in Ubuntu

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.

@shiveshabhishek
shiveshabhishek / prometheus.yml
Created April 14, 2020 07:41 — forked from reachlin/prometheus.yml
sample prometheus configuration explained
// 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
@shiveshabhishek
shiveshabhishek / k8s.md
Last active December 29, 2019 06:48
Kubernetes Useful Commands
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
@shiveshabhishek
shiveshabhishek / gist:cb494eca8bca0b6772c7de78002b3b10
Created November 17, 2018 17:09
Wifi error fix for Ubuntu 18.04
http://ubuntuhandbook.org/index.php/2018/08/no-wifi-adapter-found-hp-laptops-ubuntu-18-04/
@shiveshabhishek
shiveshabhishek / Useful commands.md
Created October 28, 2018 12:16 — forked from chandankumar4/Useful commands.md
Minikube and Docker

Install minikube and Docker

sudo apt-get install docker.io
sudo usermod -a -G docker $USER
reboot

curl -LO https://storage.googleapis.com/kubernetes-release/release/$(curl -s https://storage.googleapis.com/kubernetes-release/release/stable.txt)/bin/linux/amd64/kubectl

chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl