Skip to content

Instantly share code, notes, and snippets.

@thorsager
thorsager / access-token.sh
Created May 2, 2024 09:30
Getting AccessToken from KeyCloak on CLI
#!/usr/bin/env bash
#
# env-vars
# - CLIENT_ID
# - CLIENT_SECRET
# - ISSUER_URL
# - USERNAME
# - PASSWORD
[ -r .env ] && source .env
@thorsager
thorsager / ubuntu_init.sh
Last active June 20, 2023 21:58
Initial Ubuntu Setup
#!/usr/bin/env bash
# Script to install inital packages, services and utils on fresh ubuntu-host
set -e
GO_URL=https://go.dev/dl/go1.20.5.linux-amd64.tar.gz
K9S_URL=https://github.com/derailed/k9s/releases/download/v0.27.4/k9s_Linux_amd64.tar.gz
DIVE_URL=https://github.com/wagoodman/dive/releases/download/v0.10.0/dive_0.10.0_linux_amd64.tar.gz
apt update
apt install -y apt-transport-https ca-certificates curl software-properties-common lsb-release gnupg

Keybase proof

I hereby claim:

  • I am thorsager on github.
  • I am thorsager (https://keybase.io/thorsager) on keybase.
  • I have a public key whose fingerprint is F97C 7D14 2DA0 7DF2 E9D1 1C71 15F7 3158 1564 B539

To claim this, I am signing this object: