Skip to content

Instantly share code, notes, and snippets.

View thomd's full-sized avatar

Thomas Dürr thomd

  • Hamburg, Germany
View GitHub Profile
@thomd
thomd / cli-libs.md
Last active November 18, 2023 12:41
A list of libraries for creating command line interfaces #list #cli
@thomd
thomd / azure-pipeline-ssl-check.yml
Last active September 6, 2023 11:59
Shell script for checking if a ssl-certificate expires within some next days. To be triggered by a cron job or a pipeline.
#
# 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
#
@thomd
thomd / workspace_utils.py
Last active July 30, 2023 21:53
Keeping Your Session Active in Google Colab
# 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
#
@thomd
thomd / vscode-plugins.md
Last active April 5, 2023 09:52
An opinionated list of VS Code Plugins for Webdevelopment #vscode #list #plugin
@thomd
thomd / software.md
Created February 28, 2023 16:53
software I like #list #software
@thomd
thomd / test.sql
Last active December 13, 2022 14:35
create a test database for learning sql #sql
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,