Skip to content

Instantly share code, notes, and snippets.

View justynroberts's full-sized avatar

Justyn Roberts justynroberts

View GitHub Profile
@justynroberts
justynroberts / readme.md
Last active June 26, 2024 10:29
Rundeck User Reporting

API Data Fetch and CSV Export Script

This script fetches user data from an API, processes it, writes it to a CSV file, and provides a summary of user activities. The API URL and headers have been sanitized for security purposes.

Features

  • Fetches data from an API.
  • Processes and fills missing data fields.
  • Writes data to a CSV file.
  • Parses datetime fields.
@justynroberts
justynroberts / sample.json
Created October 24, 2024 11:01
Sample Node-Red Flow for OPC-UA to PagerDuty Events
[
{
"id": "be12058e8765348e",
"type": "switch",
"z": "d7d5b52d.77f328",
"name": "Check Status",
"property": "payload.value",
"propertyType": "msg",
"rules": [
{
@justynroberts
justynroberts / analyze.sh
Last active November 9, 2024 17:01
OpenAI Image - Bash
#!/bin/bash
# www.fintonlabs.com
export OPENAI_API_KEY="ADD_KEY"
check_requirements() {
for cmd in curl base64 mktemp jq; do
if ! command -v "$cmd" > /dev/null; then
echo "Error: Required command '$cmd' is not installed." >&2
exit 1
fi
@justynroberts
justynroberts / main.py
Created February 2, 2025 16:08
Simple Webcam
import argparse
import asyncio
import json
import logging
import ssl
import uuid
import datetime
import socket
import cv2
from aiohttp import web
@justynroberts
justynroberts / docker-compose.yml
Created February 11, 2025 13:02
Rundeck Deployment
version: '3.8'
services:
rundeck:
platform: linux/amd64
image: rundeck/rundeck:5.9.0
container_name: rundeck
restart: unless-stopped
ports:
- "4440:4440"
@justynroberts
justynroberts / gist:87dcd57aaac8e8320d30eda94a63c397
Created November 25, 2025 10:39
CheckMK Rundeck Notification
#!/bin/bash
# CheckMK Notification Script for Rundeck Webhook
# Securely posts CheckMK alerts to Rundeck webhooks with authentication
set -euo pipefail
# Configuration - Set these via CheckMK notification rule parameters
WEBHOOK_URL="${NOTIFY_PARAMETER_WEBHOOK_URL:-}"
AUTH_TOKEN="${NOTIFY_PARAMETER_AUTH_TOKEN:-}"