Skip to content

Instantly share code, notes, and snippets.

# Source: https://gist.github.com/vfarcic/42d96b7a284a5435a2d1eca0156644b5
#######################################################################
# Secrets Made My Life Miserable - Consume Secrets Easily With Teller #
# https://youtu.be/Vcjz-YM3uLQ #
#######################################################################
# Additional Info:
# - Teller: https://tlr.dev
# - Manage Kubernetes Secrets With External Secrets Operator (ESO): https://youtu.be/SyRZe5YVCVk
@mkol5222
mkol5222 / git lol.md
Created September 9, 2023 10:29 — forked from Omerr/git lol.md
git lol - an alias to Git that shows the commit graph in a pretty format

log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit

To configure as an alias git lol:

git config --global alias.lol "log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)&lt;%an&gt;%Creset' --abbrev-commit"

var client_id = pm.environment.get("client_id");
var client_secret = pm.environment.get("client_secret");
var tenant = pm.environment.get("tenant")
pm.sendRequest({
url: 'https://login.microsoftonline.com/' + tenant + '/oauth2/token',
method: 'POST',
header: {
'Content-Type': 'multipart/form-data',
@mkol5222
mkol5222 / sync_credentials.sh
Created November 14, 2023 13:43 — forked from cburgmer/sync_credentials.sh
Sync gopass to Keypass using kpcli
#!/usr/bin/env bash
set -Eeuo pipefail
readonly gopass_prefix=""
generate_empty_store() {
local target_file="$1"
local master_password=""
{
@mkol5222
mkol5222 / api-calls.sh
Created January 8, 2024 19:58 — forked from rajbos/api-calls.sh
Load jwt token from GitHub App for authentication
#!/bin/bash
# Purpose
# grab the jwt token
# make API calls as the GitHub App used
# get a temporary jwt token from the key file and app id (hardcoded in the file:)
generated_jwt=$(./github-app-jwt.sh)
github_api_url="https://api.github.com/app"

Setup MQTT with SSL

  • :1883 will be for local use only
  • :8083 websocket secure
  • :8883 mqtt secure
sudo apt-get install mosquitto

Getting certificate & Auto-Renewal

Don't forget to change the domain and allow port 443 through firewall

@mkol5222
mkol5222 / ARO - Shell Script
Created January 17, 2024 10:51 — forked from aymenabdelwahed/ARO - Shell Script
ARO - Terraform main file
#!/bin/bash
########################################################
#Enable the account subscription
SUBSCRIPTION_ID="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
az account set --subscription $SUBSCRIPTION_ID
if [ $? -eq 0 ]; then
echo "Account set to subscription: " $SUBSCRIPTION_ID
fi
@mkol5222
mkol5222 / aro4_install.sh
Created January 17, 2024 10:52 — forked from rcarrata/aro4_install.sh
Aro OCP4 quickly installation
#!/bin/bash
## USAGE
function usage() {
echo
echo "Usage:"
echo " $0 [command] [options]"
echo " $0 --help"
echo
echo "Example:"
@mkol5222
mkol5222 / notes.md
Created January 21, 2024 19:14 — forked from mbwhite/notes.md
Connecting VSCode to Multipass VM (Windows)
multipass launch --name fabric-dev --disk 80G --cpus 8 --mem 8G --cloud-init https://raw.githubusercontent.com/hyperledgendary/full-stack-asset-transfer-guide/main/infrastructure/multipass-cloud-config.yaml
  • Find out the IP address of the machines thats created - multipass list will show you this. For example