Skip to content

Instantly share code, notes, and snippets.

@pholcroft
pholcroft / index.html
Last active January 6, 2022 13:30
Automa Test
<html>
<head>
<script src="script.js" type="text/javascript"></script>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="container">
<div class="flex-box">
<label for="txtMemberNumber">Member Number:</label>
<input class="txtMemberNumber" type="text" id="txtMemberNumber" name="MembershipNumber">
@pholcroft
pholcroft / Create-Dab-Email-Example.sql
Created November 24, 2023 14:09
Data API Builder Email Example
-- Create Tables
SET ANSI_NULLS ON
GO
SET QUOTED_IDENTIFIER ON
GO
IF EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[Contacts]') AND type in (N'U'))
DROP TABLE [dbo].[Contacts]
GO
@pholcroft
pholcroft / dab-config.json
Created November 24, 2023 14:15
Data API Builder Email Example dab-config.json
{
"$schema": "https://github.com/Azure/data-api-builder/releases/download/v0.9.7/dab.draft.schema.json",
"data-source": {
"database-type": "mssql",
"connection-string": "Server=localhost;Database=DabEmailExample;User ID=CHANGEME;Password=CHANGEME;TrustServerCertificate=true",
"options": {
"set-session-context": false
}
},
"runtime": {
@pholcroft
pholcroft / RunProgramWhenNetworkAvailable.ps1
Last active April 26, 2024 07:02
PowerShell: Run Program after Ping Succeeds
$Server = "server_address" # Replace "server_address" with the IP address or hostname of the server you want to ping
$Timeout = 3600 # Timeout in seconds (1 hour)
$LogFile = "C:\Path\To\ping_log.txt" # Path to log file
$DelaySeconds = 10 # Delay in seconds after successful ping
Write-Host "Waiting for server to respond..."
$PingResponse = $null
$StartTime = Get-Date
@pholcroft
pholcroft / Cloudflared Tunnel Environment Variables.md
Last active March 25, 2025 13:29
Cloudflared Tunnel Environment Variables

Cloudflared Tunnel Environment Variables

Below is a list of environment variables used in cloudflared tunnel commands, extracted from subcommands.go
Version: 2025.2.1
Official Documentation: Tunnel run parameters

Environment Variable Description
TUNNEL_LIST_SORT_BY Sorts the list of tunnels by the given field. Valid options are {name, id, createdAt, deletedAt, numConnections}.
TUNNEL_LIST_INVERT_SORT Inverts the sort order of the tunnel list.