Skip to content

Instantly share code, notes, and snippets.

View mbrightcpacket's full-sized avatar

Martin-Louis Bright mbrightcpacket

View GitHub Profile
#!/bin/bash
# Wait for a process to finish, then send a notification via ntfy.
# ntfy is a simple notification service that offers free, self-hosted, and hosted notifications: https://ntfy.sh/
# Usage: ./wait-for-process.sh <pid> <ntfy-topic>
if [ $# -ne 2 ]; then
echo "Usage: $0 <pid> <ntfy-topic>"
exit 1
fi
#!/bin/bash
# Wait for a process to finish, then send a notification via ntfy.
# ntfy is a simple notification service that offers free, self-hosted, and hosted notifications: https://ntfy.sh/
# Usage: ./wait-for-process.sh <pid> <ntfy-topic>
if [ $# -ne 2 ]; then
echo "Usage: $0 <pid> <ntfy-topic>"
exit 1
fi
#!/usr/bin/env bash
set -e
set -o pipefail
root_command() {
# shellcheck disable=SC2154
supplied_resource_group="${args['--resource-group']}"
if [[ -n "$supplied_resource_group" ]]; then
if [[ "$(az group list --query "[?name=='$supplied_resource_group'] | length(@)")" == 0 ]]; then
echo "Resource group '$supplied_resource_group' does not exist"
#!/usr/bin/env bash
set -e
set -o pipefail
root_command() {
# shellcheck disable=SC2154
supplied_resource_group="${args['--resource-group']}"
if [[ -n "$supplied_resource_group" ]]; then
if [[ "$(az group list --query "[?name=='$supplied_resource_group'] | length(@)")" == 0 ]]; then
echo "Resource group '$supplied_resource_group' does not exist"
#!/usr/bin/env bash
set -e
set -o pipefail
root_command() {
# shellcheck disable=SC2154
supplied_resource_group="${args['--resource-group']}"
if [[ -n "$supplied_resource_group" ]]; then
if [[ "$(az group list --query "[?name=='$supplied_resource_group'] | length(@)")" == 0 ]]; then
echo "Resource group '$supplied_resource_group' does not exist"
#!/usr/bin/env bash
set -e
set -o pipefail
root_command() {
# shellcheck disable=SC2154
supplied_resource_group="${args['--resource-group']}"
if [[ -n "$supplied_resource_group" ]]; then
if [[ "$(az group list --query "[?name=='$supplied_resource_group'] | length(@)")" == 0 ]]; then
echo "Resource group '$supplied_resource_group' does not exist"
#!/usr/bin/env bash
set -e
set -o pipefail
root_command() {
# shellcheck disable=SC2154
supplied_resource_group="${args['--resource-group']}"
if [[ -n "$supplied_resource_group" ]]; then
if [[ "$(az group list --query "[?name=='$supplied_resource_group'] | length(@)")" == 0 ]]; then
echo "Resource group '$supplied_resource_group' does not exist"
#!/usr/bin/env bash
set -e
set -o pipefail
root_command() {
# shellcheck disable=SC2154
resource_group="${args['--resource-group']}"
if [[ "$(az group list --query "[?name=='$resource_group'] | length(@)")" == 0 ]]; then
location="${args['--location']}"
if [[ -z "$location" ]]; then
#!/usr/bin/env bash
set -e
set -o pipefail
root_command() {
# shellcheck disable=SC2154
resource_group="${args['--resource-group']}"
if [[ "$(az group list --query "[?name=='$resource_group'] | length(@)")" == 0 ]]; then
location="${args['--location']}"
if [[ -z "$location" ]]; then
@mbrightcpacket
mbrightcpacket / test.md
Last active August 22, 2023 18:52
This is a test

Titile

header

header 2

echo "hi" | something