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
# | |
# Notify on an upcoming expiration of a SSL ceritficate | |
# | |
# SETUP | |
# | |
# Create an Variable Group 'SSL-Cert-Check' within the Pipeline Library with the variables | |
# SSL_HOSTNAME | |
# SSL_THRESHOLD_DAYS | |
# TEAMS_WEBHOOK_URL | |
# |
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
# The workspace_utils.py module includes an iterator wrapper called keep_awake and a context manager | |
# called active_session that can be used to maintain an active session during long-running processes. | |
# The two functions are equivalent, so use whichever fits better in your code. | |
# | |
# EXAMPLE 1 | |
# | |
# from workspace_utils import keep_awake | |
# for i in keep_awake(range(5)): #anything that happens inside this loop will keep the workspace active | |
# # do iteration with lots of work here | |
# |
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
CREATE DATABASE IF NOT EXISTS test; | |
USE test; | |
DROP TABLE IF EXISTS t1; | |
CREATE TABLE t1 ( | |
c1 BIGINT(20) NOT NULL, | |
c2 tinytext NOT NULL, | |
c3 tinytext NOT NULL, | |
c4 DATE NOT NULL, |