Skip to content

Instantly share code, notes, and snippets.

View kajov's full-sized avatar
🏠
Working from home

Karolis Jovaisas kajov

🏠
Working from home
View GitHub Profile
@kajov
kajov / k8s_permenant_kubeconf.sh
Created June 7, 2023 15:46
Create permenant kubernetes config while using temporary config
#!/bin/bash
echo "Preparing key Variables"
export WORKDIR=./.kube-conf
export SERVICE_ACCOUNT="k8s-cluster-admin"
export NAMESPACE="kube-system"
echo "Creating Service account"
kubectl -n ${NAMESPACE} create serviceaccount ${SERVICE_ACCOUNT}
@kajov
kajov / BDLinux.md
Created February 27, 2023 10:56 — forked from ObserverOfTime/BDLinux.md
Install BetterDiscord on Linux

Install BetterDiscord on Linux

This Gist contains simple instructions on how to install, update, and uninstall BetterDiscord on Linux.

For more thorough documentation, take a look at betterdiscordctl's README.

Do NOT submit issues here as I don't check the comments. You should submit them here instead.

@kajov
kajov / ifttt-webhooks-extended-guide.md
Created November 7, 2022 15:48 — forked from Birdie0/ifttt-webhooks-extended-guide.md
How to use Discord Webhooks

⚠️ This gist is no longer updated! For maintained, improved and even more extended guide click here.


Discord Webhook

It's a JSON

If you don't know anything about JSON, please, spend some time on learning JSON structure.

#!/bin/bash
# shellcheck disable=SC2162
# shellcheck disable=SC2086
#----------- Setup Mapi Start --------------#
echo "Checking if mapi exists"
if ! command -v mapi $> /dev/null
then
@kajov
kajov / kubectl_ubuntu_wsl.sh
Created November 9, 2020 15:48 — forked from cmendible/kubectl_ubuntu_wsl.sh
Install kubectl on ubuntu (WSL) and use kubectl config from Windows
#!/bin/bash
# Receives your Windows username as only parameter.
curl -LO https://storage.googleapis.com/kubernetes-release/release/v1.16.0/bin/linux/amd64/kubectl
chmod +x ./kubectl
sudo mv ./kubectl /usr/local/bin/kubectl
windowsUser=$1