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
{"label":"lighthouse","message":"99","schemaVersion":1,"color":"4c1","namedLogo":"Lighthouse"} |
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
import os | |
import sys | |
import time | |
import subprocess | |
import re | |
import paramiko | |
from paramiko import SSHClient, AutoAddPolicy | |
REMOTE_FILE_OUTPUT = "/home/site/wwwroot.tar" |
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
{"label":"lighthouse","message":"99","schemaVersion":1,"color":"4c1","namedLogo":"Lighthouse"} |
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
param ( | |
[Parameter(Mandatory=$true)] | |
[string]$PersonalToken, | |
[Parameter(Mandatory=$true)] | |
[string]$Organization, | |
[Parameter(Mandatory=$true)] | |
[string]$Project | |
) |
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
while true; do result=$(curl -s ifconfig.wearetriple.com); if [[ "$result" != "$previous_result" ]]; then echo "$(date) $result"; previous_result=$result; fi; sleep 1; done |
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 | |
print_help() { | |
echo "Usage: ./domain_check.sh DESIRED_OUTCOME DOMAIN1 [DOMAIN2 ...]" | |
echo "Check a list of domains against a desired outcome using the dig command." | |
echo "" | |
echo "Arguments:" | |
echo " DESIRED_OUTCOME The expected outcome for the domains." | |
echo " DOMAIN1 The first domain to check." | |
echo " DOMAIN2 ... Additional domains to check." |
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 | |
# Function to prompt for user input with a default value | |
prompt_input() { | |
local prompt_message="$1" | |
local default_value="$2" | |
local user_input | |
read -p "$prompt_message [$default_value]: " user_input | |
echo "${user_input:-$default_value}" | |
} |
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 list of resource types | |
resource_types=$(kubectl api-resources | tail +2 | awk '{ print $1 }') | |
# Iterate over each resource type | |
for resource_type in $resource_types; do | |
echo "Resource Type: $resource_type" | |
# Get the latest usable apiVersion |
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 | |
# Destination directory to save YAML files | |
DESTINATION_DIR="${1:-.}" | |
# Prompt for Azure Container Registry name if not provided | |
read -p "Enter Azure Container Registry name: " ACR_NAME | |
# Add Azure Container Registry to helm repositories | |
echo "Enter the password for your Azure Container Registry" |
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 | |
# Check if the backup directory is provided as an argument | |
if [ -z "$1" ]; then | |
echo "Usage: $0 <backup_directory>" | |
exit 1 | |
fi | |
# Get the backup directory from the command line argument | |
BACKUP_DIR="$1" |
NewerOlder