Skip to content

Instantly share code, notes, and snippets.

View greyhoundforty's full-sized avatar
🏠
Working from home

Ryan Tiffany greyhoundforty

🏠
Working from home
View GitHub Profile
@greyhoundforty
greyhoundforty / disk-scan.md
Created October 30, 2026 15:31
disk size scan

Find What's Filling Up "System Data" on macOS

A small Python script that scans a folder (or the whole disk) and reports the top 10 largest directories and top 10 largest files. It uses only the Python standard library, so there is nothing to install.

Quick start

1. Check that Python 3 is available

Open Terminal (Cmd+Space, type "Terminal") and run:

@greyhoundforty
greyhoundforty / test.md
Created September 30, 2026 18:02
Python IAM Access Policy Test

Python test

Full code at ibm-iam-issue-test

% python python/reproduce_policy_get.py run --brief --registry-namespace rst-iamdemo-ns
created service ID iam-ServiceId-77468a8e-a301-4f26-a25e-5cb0ee417caa (dreamvu-iam-repro-20260930T175824Z-caller)
created service ID iam-ServiceId-ad666c10-e297-494a-bd92-e21c65eb44fa (dreamvu-iam-repro-20260930T175824Z-subject)
created API key ApiKey-3868b0d1-1ff7-4f85-b175-fdcddc5488c3 for iam-ServiceId-77468a8e-a301-4f26-a25e-5cb0ee417caa
created policy 76fc0c60-a7a3-49a8-8e53-155b34d28cdb: Viewer on IAM Access Management
#!/usr/bin/env bash
#
# speedtest_client.sh
#
# Runs download, upload, and latency tests against a speedtest server
# (see the accompanying app.py) using only curl -- nothing needs to be
# installed on the client side, since curl ships by default on virtually
# every Linux distro, macOS, and Windows 10+.
#
# Usage:
@greyhoundforty
greyhoundforty / organize_excel.py
Created May 8, 2026 08:57
Organize Excel Files
#!/usr/bin/env python3
"""
organize_excel.py
Scans a directory of Excel files, extracts a customer name from each
filename, creates a per-customer subfolder in the output directory,
and moves each file into the appropriate folder.
Customer name extraction is controlled by --separator and --position:
- The filename stem (no extension) is split on the separator string
@greyhoundforty
greyhoundforty / resume.json
Last active March 20, 2026 08:42
jsonresume
{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Ryan Tiffany",
"label": "Technical Sales Engineer | DevOps & Automation Specialist",
"image": "",
"email": "ryantiffany@fastmail.com",
"phone": "",
"url": "https://ryantiffany.com",
"summary": "Technical sales engineer with 10+ years at IBM translating complex cloud, DevOps, and automation solutions into success for clients. Deep hands-on expertise across the modern DevOps toolchain — Terraform, Ansible, Serverless, Tekton, Kubernetes, and OpenShift — fueled by a dangerous amount of coffee, too many YouTube Shorts about homelab setups, and a lot of playlists.",
@greyhoundforty
greyhoundforty / proxmox-system-info.py
Created January 22, 2026 13:29
Gather system information ahead of proxmox install
#!/usr/bin/env python3
"""
Proxmox Deployment Information Gatherer
========================================
This script collects detailed system information needed to create a custom
Proxmox installation and configuration script for IBM Cloud Classic bare metal servers.
Focuses on:
- Network configuration (bonded interfaces, static IPs)
@greyhoundforty
greyhoundforty / cos_access.py
Created January 12, 2026 17:11
Test COS bucket access
#!/usr/bin/env python3
"""
IBM Cloud Object Storage - HMAC Credential Bucket Access Tester
This script tests HMAC credentials to determine which buckets you can actually
read from and download files. Useful when credentials may only work for certain
buckets due to regional restrictions or permissions.
Usage:
python test_bucket_access.py
@greyhoundforty
greyhoundforty / demo-apps.md
Created July 25, 2025 14:47
OCP-Demo-Apps

Select project

oc project demodays

Create new cat app

oc new-app https://github.com/greyhoundforty/demo-cats --name=cats --strategy=docker
@greyhoundforty
greyhoundforty / wifi_qr.py
Created June 18, 2025 18:47
WiFi QR Code Generator with Click prompts
#!/usr/bin/env python3
"""
Generates QR codes for WiFi network connection
"""
import click
import qrcode
from pathlib import Path
@greyhoundforty
greyhoundforty / parser.py
Created May 7, 2025 20:21
RVtools Python Parser
import os
import pandas as pd
import glob
from typing import Dict, List, Optional, Union, Tuple
import statistics
import click
class RVToolsAnalyzer:
def __init__(self, directory_path: str = None):
"""