Skip to content

Instantly share code, notes, and snippets.

View bryanroscoe's full-sized avatar

Bryan Roscoe bryanroscoe

View GitHub Profile
@bryanroscoe
bryanroscoe / complete_benchmark_analysis.md
Last active January 27, 2026 15:35
CI Runner Benchmark Raw Data - BuildJet vs Blacksmith vs WarpBuild

CI Runner Benchmark - Complete Analysis

Total samples: 157 Django, 214 Next.js runs across 5 workflow executions
Workflow runs analyzed: 21303815025, 21366075868, 21366987511, 21367602080, 21368567991, 21370119015, 21371232547, 21372158500, 21372265822

Expected Savings (Median Execution Time)

Workflow BuildJet Blacksmith Savings
Django 7m 45s 6m 28s 1m 17s (17% faster)
format = """
[╭─](mauve)\
$os\
[](bg:red fg:mauve)\
$username\
$hostname\
[](bg:peach fg:red)\
[📁](bg:peach fg:black)\
$directory\
[ ](bg:peach)\
@bryanroscoe
bryanroscoe / procare.sh
Created August 5, 2025 18:22
Procare download
# Parse the HAR file to get just the URLs
grep thumb schools.procareconnect.com.har | grep "url" | cut -d '"' -f 4 > image_links
# Replace the resultant thumbnail links with the main picture links
sed -i.bak 's/thumb/main/g' image_links
# Download the images
@bryanroscoe
bryanroscoe / ConfigureRemotingForAnsible.ps1
Created November 17, 2020 19:32
ConfigureRemotingForAnsible.ps1
#Requires -Version 3.0
# Configure a Windows host for remote management with Ansible
# -----------------------------------------------------------
#
# This script checks the current WinRM (PS Remoting) configuration and makes
# the necessary changes to allow Ansible to connect, authenticate and
# execute PowerShell commands.
#
# All events are logged to the Windows EventLog, useful for unattended runs.
const { Octokit } = require("@octokit/rest");
const fs = require('fs');
var os = require("os");
let githubkey = 'secretkey'
const revOrg = 'revdotcom'
const usersCsvFileName = './users.csv'
const progressFilename = './progress.json'
const teamsFileName = './teams.json'
@bryanroscoe
bryanroscoe / .gitconfig
Last active April 29, 2022 14:01
.gitconfig rev
[user]
name = Bryan Roscoe
email = bryanroscoe@gmail.com
[core]
editor = vim
autocrlf = false
longpaths = true
eol = LF
[color]
branch = auto
trigger PullOrderSiteAccount on Orders__c (before insert) {
// Collect site codes for duplicate checking
Set<String> codes = new Set<String>();
for (Orders__c order : trigger.new) codes.add(order.Site_Code__c);
// Find accounts with matching site codes
Map<String, List<Account>> siteAccounts = new Map<String, List<Account>>();
for (Account record : [SELECT Site_Code_ID__c FROM Account WHERE Site_Code_ID__c IN :codes]
)