Skip to content

Instantly share code, notes, and snippets.

View fdcastel's full-sized avatar

F.D.Castel fdcastel

View GitHub Profile
@fdcastel
fdcastel / Monitor-SyncthingConnections.ps1
Created January 2, 2026 12:19
Monitors Syncthing connections in real-time with transfer rate calculations
<#
.SYNOPSIS
Monitors Syncthing connections in real-time with transfer rate calculations.
.DESCRIPTION
Runs every 5 seconds to display Syncthing connection status. The first iteration
shows current values without rate information. Subsequent iterations include
inTotalMbps showing the data transfer rate.
.PARAMETER IntervalSeconds
# -- https://github.com/duckdb/odbc-scanner/discussions/115
#
# Configuration
#
$odbcConnectionString = 'Driver={Firebird ODBC Driver};Database=/temp/test.fdb;UID=SYSDBA;PWD=masterkey;CHARSET=UTF8'
$sourceQueryFile = '/temp/odbc-scanner-benchmark/source.sql'
$destQueryFile = '/temp/odbc-scanner-benchmark/dest.sql'
@fdcastel
fdcastel / Get-ComputerInventory.ps1
Created March 5, 2026 18:36
Retrieve computer information using Get-CimInstance
$result = [ordered]@{
ComputerSystem = Get-CimInstance CIM_ComputerSystem | Select-Object -Property `
'Name',
'Description',
'PrimaryOwnerName',
'ChassisSKUNumber',
'CurrentTimeZone',
'DaylightInEffect',
'DNSHostName',
'EnableDaylightSavingsTime',