docker run --rm -d -p 5000:5000 -v "$(pwd)"/registry:/var/lib/registry --name registry ghcr.io/oras-project/registry:latest
This file contains hidden or 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 listwill show you this. For example
This file contains hidden or 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 hidden or 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 |
This file contains hidden or 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 | |
| # 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" |
This file contains hidden or 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
| #!/usr/bin/env bash | |
| set -Eeuo pipefail | |
| readonly gopass_prefix="" | |
| generate_empty_store() { | |
| local target_file="$1" | |
| local master_password="" | |
| { |
This file contains hidden or 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
| 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', |