Skip to content

Instantly share code, notes, and snippets.

View scarolan's full-sized avatar
🤸‍♂️
In whatever position one is in...one must find balance. -BKS Iyengar

Sean Carolan scarolan

🤸‍♂️
In whatever position one is in...one must find balance. -BKS Iyengar
View GitHub Profile
@scarolan
scarolan / act3-deploy.md
Last active September 9, 2026 19:21
Arch Demo Act III: Two Pipelines, One Platform — Mermaid diagram

Application Pipeline (CI/CD)

flowchart LR
    Push["🔀 Git Push / PR<br/><i>+ AI code review</i>"] --> Build["🔨 Build & Test<br/><i>Go + Kaniko</i>"]
    Build --> Scan["🔍 Security Scan<br/><i>Gitleaks</i>"]
    Scan --> Dev["🚀 Deploy Dev<br/><i>Helm + smoke test</i>"]
    Dev --> SNOW2["📝 ServiceNow<br/><i>create CHG</i>"]
    SNOW2 --> Approve2["✋ Human Approval"]
 Approve2 --&gt; Prod["🚀 Deploy Prod<i>same artifact</i>"]
@scarolan
scarolan / artifact-deploy-flow.md
Last active August 24, 2026 13:53
Harness Artifact → Deployment Flow (Verizon follow-up)

Harness: Artifact → Deployment Flow

flowchart LR
    subgraph Registry["Harness Artifact Registry"]
        A[New artifact version pushed]
        B[Browse artifacts in UI]
    end

    subgraph Triggers["Trigger Paths"]
@scarolan
scarolan / geomap.json
Created March 10, 2025 16:17
Geomap data for Grafana Demos
{
"data": [
{ "latitude": 40.7128, "longitude": -74.0060, "value": 75 },
{ "latitude": 34.0522, "longitude": -118.2437, "value": 42 },
{ "latitude": 51.5074, "longitude": -0.1278, "value": 88 },
{ "latitude": 35.6895, "longitude": 139.6917, "value": 67 },
{ "latitude": -33.8688, "longitude": 151.2093, "value": 55 },
{ "latitude": 48.8566, "longitude": 2.3522, "value": 91 },
{ "latitude": 55.7558, "longitude": 37.6173, "value": 60 },
{ "latitude": 37.7749, "longitude": -122.4194, "value": 78 },
@scarolan
scarolan / llm_prompts.md
Last active October 3, 2023 20:50
LLM prompts for writing apps

App for endless cat photos

Generate a web application written in Python that will show a random cat photo every ten seconds. Import the time, random, and requests modules, and import Flask and Response classes from the flask module.

Get the photos from the placekitten.com API. The format of the URL should be: https://placekitten.com/width/height for example https://placekitten.com/600/400.

The photos of the cats should be between 400-800 pixels height and width. The app should continue running and log inbound requests for files to the terminal. Do not use an index.html template. The entire app should be in a single file.

@scarolan
scarolan / hangman.py
Created October 3, 2023 20:22
ChatGPT Hangman with snarky replies and emoji
import random
WORD_LIST = ['APPLE', 'BANANA', 'CHERRY', 'DONKEY', 'ELEPHANT',
'FLAMINGO', 'GORILLA', 'HIPPO', 'IGUANA', 'JAGUAR',
'KANGAROO', 'LEMUR', 'MONKEY', 'NYALA', 'OSTRICH',
'PENGUIN', 'QUOKKA', 'RABBIT', 'SQUIRREL', 'TURTLE',
'UGUISU', 'VULTURE', 'WALRUS', 'XERUS', 'YAK', 'ZEBRA']
HANGMAN_PICS = [
'''
+---+
|
@scarolan
scarolan / install_ponysay.sh
Last active September 8, 2023 15:15
Bash script to install ponysay on Ubuntu
#!/bin/bash
echo "Installing ponysay for user $(id)"
cd $HOME
[[ -d $HOME/ponysay ]] && rm -rf $HOME/ponysay
sudo apt -y update && sudo apt -y install texinfo git cowsay fortune-mod
git clone https://github.com/erkin/ponysay && cd ponysay
python3 ./setup.py install --private --freedom=partial
$HOME/.local/bin/ponythink -f rarity "Ponysay was successfully installed at $HOME/.local/bin/ponysay"
echo "Run this command to add ponysay to your PATH:"
@scarolan
scarolan / index.html
Created March 1, 2022 15:23 — forked from arosenkranz/index.html
CSS Lightbox
<a href="#unique-id-of-image">
<img alt="alt text" src="../assets/filename.png" />
</a>
<a href="#" class="lightbox" id="unique-id-value">
<img alt="alt text" src="../assets/filename.png" />
</a>
@scarolan
scarolan / instruqt_style.css
Created December 3, 2021 14:23
Example CSS file
summary { color: cyan; }
hr.cyan { background-color: cyan; }
hr.thick { background-color: cyan; color: cyan; height: 2px; }
h2.cyan { color: cyan; }
@scarolan
scarolan / azure_terraform_example.tf
Created August 27, 2021 22:17
An example snippet of Terraform code for Azure
resource "azurerm_resource_group" "example" {
name = "example"
location = "Central US"
}