start new:
tmux
start new with session name:
tmux new -s myname
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 |
#!/bin/bash | |
display_usage() { | |
echo "$0 <dir with vmdk files>" >&2 | |
} | |
exit_with_error() { | |
MSG="$1" | |
echo "$MSG" >&2 | |
exit 1 |
--- | |
extension_requests: | |
pp_preshared_key: "${psk}" |
# 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 |
#!/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.
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
multipass list
will show you this. For example#!/bin/bash | |
## USAGE | |
function usage() { | |
echo | |
echo "Usage:" | |
echo " $0 [command] [options]" | |
echo " $0 --help" | |
echo | |
echo "Example:" |