Skip to content

Instantly share code, notes, and snippets.

View dylanberry's full-sized avatar
🛠️
Code.Build.Test.Deploy.Monitor.Repeat(); 🥇

dylanberry dylanberry

🛠️
Code.Build.Test.Deploy.Monitor.Repeat(); 🥇
View GitHub Profile
@rayalex
rayalex / init-alloy.sh
Created August 13, 2025 07:42
Publish host-level metrics from Databricks clusters to Prometheus/Grafana using Alloy
#!/bin/bash
set -euo pipefail
# Init script to send host-level metrics from Databricks clusters to Prometheus/Grafana using Alloy agent.
#
# 1. Add the init script to your cluster(s).
# 2. Add required environment variables in your cluster configuration, e.g.:
# PROMETHEUS_HOST=10.0.0.1:9090
# DB_CLUSTER_ID=cluster-or-job-name
# 3. Add more labels if needed (job name, etc)
@mikebranstein
mikebranstein / disable-windows-update.ps1
Created September 1, 2016 20:26
Disables Windows Update with PowerShell
# set the Windows Update service to "disabled"
sc.exe config wuauserv start=disabled
# display the status of the service
sc.exe query wuauserv
# stop the service, in case it is running
sc.exe stop wuauserv
# display the status again, because we're paranoid