- Do you feel like you’re part of a team?
- Are you comfortable expressing your opinions?
- When you speak up, are your opinions valued?
- Do you feel confident you can be your authentic self at work?
- What, if anything, would make you feel more comfortable?
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
variable "environment" { | |
type = string | |
description = "A name identifying a type of resource i.e., qa, staging, release" | |
} | |
variable "name" { | |
type = string | |
description = "Name of service" | |
} |
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 | |
# Perform maintenance on secondary Pi if online | |
pi=$(timeout 0.2 ping -c1 10.0.0.3 &> /dev/null && echo "0" || echo "1") | |
if [ "$jd" -eq 0 ]; then | |
cd /etc/pihole/ | |
ssh -i /root/.ssh/id.pi "[email protected]" "[ ! -f '~/pihole' ] && mkdir ~/pihole" | |
scp -i /root/.ssh/id.pi adlists.list *list.txt setupVars.conf *.domains [email protected]:~/pihole | |
scp -i /root/.ssh/id.pi /etc/dnsmasq.d/03-pihole-wildcard.conf [email protected]:~/pihole/03-pihole-wildcard.conf | |
ssh -i /root/.ssh/id.pi "[email protected]" "sudo mv ~/pihole/03-pihole-wildcard.conf /etc/dnsmasq.d; sudo mv ~/pihole/* /etc/pihole" |
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 | |
TIMESTAMP=$(date +"%Y%m%d") | |
FS_FILENAME=ha-file-system-backup-$TIMESTAMP.tar.gz | |
SQL_FILENAME=ha-database-backup-$TIMESTAMP.sql.gz | |
# Removed influxdb since it's getting huge and I don't really | |
# think I have much benefit in backng it up | |
cd /local |
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
# fizzbuzz.tf | |
variable "start" {} | |
variable "end" {} | |
output "out_text" { | |
value = join( | |
"\n", [ | |
for i in range(var.start, var.end): | |
i % 15 == 0 ? "FizzBuzz" : |
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 | |
# example exponential backoff in bash | |
for (( i=0; ; i++)); do | |
TIME=$(echo "2^$i" | bc) | |
[ $TIME -ge 32 ] && exit 1 | |
sleep $TIME | |
// do stuff && break | |
done |
OlderNewer