Skip to content

Instantly share code, notes, and snippets.

View ryanmaclean's full-sized avatar
Harnessing GenAI 💜

Ryan MacLean ryanmaclean

Harnessing GenAI 💜
View GitHub Profile
@ryanmaclean
ryanmaclean / analyze_macos_noise_drift.py
Last active February 17, 2026 17:56
macOS Tahoe logging with Datadog (Vector + Unified Log noise control)
#!/usr/bin/env python3
"""Analyze unsquelched macOS Unified Log noise drift from Datadog logs."""
from __future__ import annotations
import argparse
import json
import os
import re
import sys
@ryanmaclean
ryanmaclean / macos-datadog-noise-pipeline-gist.md
Created February 16, 2026 04:49
macOS Datadog unified log noise classification pipeline

macOS + Datadog: Noise Classification Pipeline (OpenClaw-friendly)

Use a Datadog Logs Pipeline to classify recurring low-signal macOS Unified Log noise into @noise_class.

Then exclude in dashboards/monitors with:

-@noise_class:*
 Context Graph & Agent Team Plan

                           CODEBASE HEALTH
                                │
      ┌───────────┬─────────────┼─────────────┬───────────┐
      ▼           ▼             ▼             ▼           ▼
  ┌────────┐ ┌────────┐   ┌──────────┐  ┌─────────┐ ┌────────┐
  │SECURITY│ │QUALITY │   │  INFRA   │  │   OPS   │ │  DATA  │
  │        │ │        │   │          │  │         │ │        │
@ryanmaclean
ryanmaclean / wipe_macos_Dock.sh
Created November 20, 2025 18:13
Clear all apps from macOS / OSX Dock
#!/usr/bin/env zsh
set -euox
# Remove all Application shortcuts from Apple macOS Dock
defaults write "com.apple.dock" "persistent-apps" -array
# Kill the OSX Dock, which will restart
killall Dock
@ryanmaclean
ryanmaclean / disable_click_to_show_desktop.sh
Last active March 5, 2024 04:27
MacOS Sonoma Turn Off or Disable Click Wallpaper to Reveal Desktop Unless in Stage Manager
#!/usr/bin/env bash
set -euox
##
# Disable click to show desktop
# run with `bash disable_click_to_show_desktop.sh`
# or `chmod +x disable_click_to_show_desktop.sh && ./$_`
# `defaults` is pretty handy! https://ss64.com/mac/defaults.html
##
@ryanmaclean
ryanmaclean / main.tf
Last active April 20, 2023 05:34
Vicuna-Generated Terraform AKS Cluster
provider "azurerm" {
version = "2.0"
}
resource "azurerm_resource_group" "example" {
name = "example-rg"
location = "westus2"
}
resource "azurerm_virtual_network" "example" {
@ryanmaclean
ryanmaclean / system-probe.yaml
Created November 15, 2022 19:05
Windows system-probe.yaml Network, Security Agent and File Integrity Monitoring Enabled
# From https://docs.datadoghq.com/network_monitoring/performance/setup/?tab=agentwindows
# File location: C:\ProgramData\Datadog\system-probe.yaml
##################################
## System Probe Configuration ##
##################################
## @param system_probe_config - custom object - optional
## Enter specific configurations for your System Probe data collection.
## Uncomment this parameter and the one below to enable them.
@ryanmaclean
ryanmaclean / dashboard_via_api.py
Created October 4, 2022 03:48 — forked from QuentinFra/dashboard_via_api.py
How to create a custom dashboard with the Datadog API
from dogapi import dog_http_api as api
##### Parameters #####
# Credentials
api.api_key = 'my_api_key'
api.application_key = 'my_application_key'
# Dashboard information
title = "Test Quentin via API"
@ryanmaclean
ryanmaclean / conf.yaml
Created September 2, 2022 07:02
IIS Datadog Configuration
## All options defined here are available to all instances.
#
init_config:
## @param use_localized_counters - boolean - optional - default: false
## Whether performance object and counter names should refer to their
## locale-specific versions rather than their English name.
#
# use_localized_counters: false
@ryanmaclean
ryanmaclean / gtd-windows.md
Last active September 2, 2022 06:50
Getting Things Done on Windows

Open a Powershell Admin shell by pressing Winkey+R, type “powershell” and hit ctrl+shift+enter to run as admin.

Run the follwing to install Chocolatey:

Set-ExecutionPolicy Bypass -Scope Process -Force; [System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; iex ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))

Then install some packages you'll want, using -y to confirm:

choco install -y google-chrome-x64 vscode conemu git github-desktp curl far powershell-core