Skip to content

Instantly share code, notes, and snippets.

View sntxrr's full-sized avatar
💻
Working from home

Don O'Neill sntxrr

💻
Working from home
View GitHub Profile
@sntxrr
sntxrr / docker-compose.yaml
Created September 14, 2025 22:49
My working Traefik + Authentik config
---
services:
reverse-proxy:
image: traefik:v3.3.6
environment:
AWS_ACCESS_KEY_ID: ""
AWS_SECRET_ACCESS_KEY: ""
DUCKDNS_TOKEN: ""
NAMECHEAP_API_USER: "namecheapusername"
NAMECHEAP_API_KEY: "123456789abcdef123456789abcdef"
@sntxrr
sntxrr / scale_and_wait.sh
Created June 26, 2025 19:31
Roll a CloudRun service by scaling up and waiting for a container to come healthy, then scale back down.
#!/bin/bash
# Usage: ./scale_and_wait.sh <service-name> <region>
SERVICE_NAME="$1"
REGION="$2"
if [ -z "$SERVICE_NAME" ] || [ -z "$REGION" ]; then
echo "Usage: $0 <service-name> <region>"
exit 1
@sntxrr
sntxrr / simple-workstation.rb
Last active June 23, 2018 01:36
simple-workstation.rb
packages = %w[visualstudiocode 7zip google-chrome-x64 putty dropbox 1password winscp slack]
packages.each do |package_name|
chocolatey_package package_name
end
@sntxrr
sntxrr / self-divisible.rb
Last active December 12, 2017 06:17
kinda stucky stuck :(
def self_dividing_numbers(left, right)
# this will iterate through all the input numbers
for i in (left..right)
#puts "We're working on number: #{i}"
#puts "Each digit of #{i} is as follows"
#puts digits(i)
digits(i).each {|d|
(
#puts "Total digits: #{i}"
@sntxrr
sntxrr / keybase.md
Last active September 17, 2018 22:40
keybase.md

Keybase proof

I hereby claim:

  • I am sntxrr on github.
  • I am sntxrr (https://keybase.io/sntxrr) on keybase.
  • I have a public key ASBNCWJPcoY4UoT32Q_ksSPlwji1hKzAMlAtrCCDx-B21wo

To claim this, I am signing this object:

@sntxrr
sntxrr / basic.rb
Last active November 24, 2016 05:48
Basic Workstation Configuration
packages = %w[git conemu visualstudiocode 7zip vagrant google-chrome-x64 putty dropbox lastpass]
packages.each do |package_name|
chocolatey_package package_name
end
gems = %w[kitchen-pester kitchen-hyperv kitchen-dsc kitchen-azurerm azure-credentials pry pry-byebug pry-stack_explorer appbundle-updater]
gems.each do |gem|
chef_gem gem do
compile_time false if respond_to?(:compile_time)
end
@sntxrr
sntxrr / Microsoft.PowerShell_profile.ps1
Created September 28, 2016 21:58
Don's nifty PowerShell script that includes battery status
#Customize command prompt to include datetime stamp / user@computer / path / batter or AC status
function prompt
{
# battery status swiped from Bojan Rajkovic here:
# https://coderinserepeat.com/2015/04/12/customizing-your-prompt-in-powershell/
$battery = Get-WmiObject Win32_Battery
switch ($battery.BatteryStatus) {
{ $_ -eq 2 } { $status = "AC" }