docker run --rm -d -p 5000:5000 -v "$(pwd)"/registry:/var/lib/registry --name registry ghcr.io/oras-project/registry:latest
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
function Get-AzLastCall { | |
<# | |
.SYNOPSIS | |
Get the last caller from the ActivityLog on a resource or resource group. | |
Useful to find who what & when. | |
.DESCRIPTION | |
Inputs: ResourceGroupName (required) and ResourceName (optional). | |
Outputs: Array-list of PSEvent Objects |
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 | |
display_usage() { | |
echo "$0 <dir with vmdk files>" >&2 | |
} | |
exit_with_error() { | |
MSG="$1" | |
echo "$MSG" >&2 | |
exit 1 |
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
--- | |
extension_requests: | |
pp_preshared_key: "${psk}" |
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
# will not work in all cases, see https://gist.github.com/angelo-v/e0208a18d455e2e6ea3c40ad637aac53#gistcomment-3439904 | |
function jwt-decode() { | |
sed 's/\./\n/g' <<< $(cut -d. -f1,2 <<< $1) | base64 --decode | jq | |
} | |
JWT=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ | |
jwt-decode $JWT |
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 -y | |
sudo apt upgrade -y | |
# jq | |
echo "Installing jq..." | |
sudo apt install jq -y | |
# helm |
Add terraform plan
output to merge requests and expose details from
terraform plan
runs directly into a merge request widget enabling you to see
statistics about the resources that Terraform creates, modifies, or destroys.
- setup Multipass on Windows (recommened to enable Hyper_V)
- setup vscode and make sure you've the remote development extension pack installed
- you've probably already done this
- start up a multipass vm for example
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
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 | |
## USAGE | |
function usage() { | |
echo | |
echo "Usage:" | |
echo " $0 [command] [options]" | |
echo " $0 --help" | |
echo | |
echo "Example:" |
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 | |
######################################################## | |
#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 |