Here is easy steps to try Windows 10 on ARM or Ubuntu for ARM64 on your Apple Silicon Mac. Enjoy!
NOTE: that this is current, 10/1/2021 state.
- Install Xcode from App Store or install Command Line Tools on your Mac
# Run Script to fetch monitors | |
# -------------------------------------- | |
# WORKSPACE=$(terraform workspace show) | |
# [[ -d "./tfvars" ]] && VAR_DEFS_PATH="./tfvars" | |
# [[ -d ".././tfvars" ]] && VAR_DEFS_PATH=".././tfvars" | |
# [[ -z "$VAR_DEFS_PATH" ]] && { echo 'VAR_DEFS_PATH not specified. Aborting' >&2 ; exit 1; } | |
# DD_API_KEY="$(awk -F'"' '/dd_api_key/{ print $2 }' $VAR_DEFS_PATH/$WORKSPACE.secret.tfvars)" | |
# DD_APP_KEY="$(awk -F'"' '/dd_app_key/{ print $2 }' $VAR_DEFS_PATH/$WORKSPACE.secret.tfvars)" | |
# [[ -z "$DD_API_KEY" ]] && { echo 'DD_API_KEY not specified. Aborting' >&2 ; exit 1; } | |
# [[ -z "$DD_APP_KEY" ]] && { echo 'DD_APP_KEY not specified. Aborting' >&2 ; exit 1; } |
variable "pipelines" { | |
description = "List of pipelines with their processors" | |
type = list(any) | |
} | |
resource "datadog_logs_custom_pipeline" "pipelines" { | |
for_each = { for idx, pipeline in var.pipelines : idx => pipeline } | |
name = each.value.name | |
is_enabled = each.value.is_enabled |
variable "records" { | |
description = "Cloudflare DNS zone records" | |
type = set(object({ | |
tf_obj_id = string # tf key used to organize records | |
name = string | |
proxied = bool | |
value = string | |
priority = number | |
ttl = number | |
type = string |
##### | |
# qemu command created by vagrant-qemu plugin example | |
# | |
# Description: | |
# This is an example of what the vagrant-qemu plugin creates. | |
# I am not sure if any of this works, this shell script is theory | |
# crafting for documentation and understanding. | |
########################################## | |
##################### |
Here is easy steps to try Windows 10 on ARM or Ubuntu for ARM64 on your Apple Silicon Mac. Enjoy!
NOTE: that this is current, 10/1/2021 state.
randpasswd() { | |
NUM=${1:-32} | |
# macOS scenario | |
if [[ $(uname -s) == "Darwin" ]]; then | |
perl -pe 'binmode(STDIN, ":bytes"); tr/A-Za-z0-9//dc;' < /dev/urandom | head -c $NUM | |
else | |
# tested with: GNU/Linux, Cygwin, MSys | |
tr -dc 'a-zA-Z0-9' < /dev/urandom | fold -w $NUM | sed 1q | |
fi |
mkdir ./{vault,dgraph} | |
cat << 'EOF' > compose.yml | |
services: | |
zero1: | |
image: dgraph/dgraph:${DGRAPH_VERSION} | |
command: dgraph zero --my=zero1:5080 --replicas 1 --raft idx=1 | |
ports: | |
- 6080:6080 | |
container_name: zero1 |