This file contains 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 | |
defaultRecordTypes=( A CNAME MX TXT SOA PTR SRV ) | |
# Domain name input | |
if [ -z $1 ]; then | |
echo "Error: domain argument expected" | |
exit 1 | |
fi |
This file contains 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 | |
# Usage: | |
# print-padded-heading Some Heading | |
# | |
# Outputs: | |
# ============== | |
# Some Heading | |
# ============== |
This file contains 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
function getCalendar(config) { | |
var calendars = CalendarApp.getCalendarsByName(config.calendarName); | |
if (calendars.length === 0) { | |
var calendar = CalendarApp.createCalendar(config.calendarName, config.calendarConfig); | |
console.log('Created calendar: ' + calendar.getName()); | |
} else { | |
if (calendars.length > 1) { | |
console.warn("Non critical error: multiple calendars with applicable name.", calendars) | |
} |
This file contains 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 | |
# Get the current directory path | |
current_directory=$(pwd) | |
# Iterate over all tar files in the current directory | |
for tar_file in "$current_directory"/*.tar; do | |
# If the tar file exists, process it | |
if [ -f "${tar_file}" ]; then | |
# Iterate over all files in the current directory (excluding directories and tar files) |
This file contains 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
--- | |
- name: Install Docker on Ubuntu | |
hosts: workstations | |
become: true | |
tasks: | |
- name: Update the apt package index | |
apt: | |
update_cache: true |