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, 6/6/2021 state.
- Install Xcode from App Store or install Command Line Tools on your Mac running on Apple Silicon.
#!/usr/bin/env sh | |
# Shamelessly copied from https://github.com/technosophos/helm-template | |
PROJECT_NAME="helm-diff" | |
PROJECT_GH="databus23/$PROJECT_NAME" | |
export GREP_COLOR="never" | |
# Convert HELM_BIN and HELM_PLUGIN_DIR to unix if cygpath is | |
# available. This is the case when using MSYS2 or Cygwin |
# Automated AMI and Snapshot Deletion | |
# | |
# @author Bobby Kozora | |
# | |
# This script will search for all instances having a tag named "Backup" with a value of "Backup". | |
# As soon as we have the instances list, we loop through each instance | |
# and reference the AMIs of that instance. We check that the latest daily backup | |
# succeeded then we store every image that's reached its DeleteOn tag's date for | |
# deletion. We then loop through the AMIs, deregister them and remove all the | |
# snapshots associated with that AMI. |
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, 6/6/2021 state.
#!/usr/bin/env bash | |
set +x | |
############################# | |
# only root | |
if [ `id -u` != 0 ]; then | |
die "Must be launch with root privilege" | |
fi |
-- show running queries (pre 9.2) | |
SELECT procpid, age(clock_timestamp(), query_start), usename, current_query | |
FROM pg_stat_activity | |
WHERE current_query != '<IDLE>' AND current_query NOT ILIKE '%pg_stat_activity%' | |
ORDER BY query_start desc; | |
-- show running queries (9.2) | |
SELECT pid, age(clock_timestamp(), query_start), usename, query | |
FROM pg_stat_activity | |
WHERE query != '<IDLE>' AND query NOT ILIKE '%pg_stat_activity%' |
SHELL=/bin/bash | |
# to see all colors, run | |
# bash -c 'for c in {0..255}; do tput setaf $c; tput setaf $c | cat -v; echo =$c; done' | |
# the first 15 entries are the 8-bit colors | |
# define standard colors | |
BLACK := $(shell tput -Txterm setaf 0) | |
RED := $(shell tput -Txterm setaf 1) | |
GREEN := $(shell tput -Txterm setaf 2) |
$ vim /etc/nginx/nginx.conf
# Define environment | |
dist: xenial # Ubuntu 16.04 | |
language: bash | |
# Only build pushes to master branch | |
branches: | |
only: | |
- master | |
# Export variables |