Skip to content

Instantly share code, notes, and snippets.

View sixeyed's full-sized avatar

Elton Stoneman sixeyed

View GitHub Profile
@sixeyed
sixeyed / ca-4.crt.sha256
Created September 17, 2026 06:42
Sixeyed CA
08:06:B9:8F:FE:0C:05:74:7A:A3:C2:60:E4:6D:F9:B8:DF:B4:E7:36:5F:98:59:C0:64:DB:F8:57:DB:BD:F0:D8
@sixeyed
sixeyed / new-music.md
Last active September 8, 2026 04:56
Claude Scheduled Tasks

You are scanning the music press for newly released and recently announced JAZZ and ELECTRONIC albums, then posting curated recommendations to Slack.

DEDUPE STATE FILE — READ FIRST, IN FULL Everything already recommended lives in a state file, NOT in this prompt:

/Users/elton/claude-schedule-state/posted-albums.md

At the start of every run:

  1. If the folder /Users/elton/claude-schedule-state is not already connected, request it with mcp__cowork__request_cowork_directory using that exact path.
  2. Read posted-albums.md in a single pass, before doing any searching. It stays small by design (~24 KB steady state), so this is cheap.
@sixeyed
sixeyed / runbook-fluentd-indices-filling.md
Last active April 21, 2025 09:41
Runbook for Fluentd indices filling

Runbook - Elasticsearch Fluentd Indices

Fluentd indices filling in Elasticsearch.

Summary

Centralized log collection from application services goes through Fluentd to Elasticsearch.

Fluentd creates an index for each hour of each day's logs - we do not autmatically clear the indices.

az aks nodepool add -g $rgName --cluster-name $aksName `
-n $nodePoolName `
--mode User `
--enable-cluster-autoscaler `
--node-count 1 `
--min-count 0 `
--max-count $nodeMaxCount `
--node-osdisk-size $aksNodeDiskSize `
--node-vm-size $nodeVmSize `
--vnet-subnet-id $subnetId `
{"keys":[{"kty":"RSA","use":"sig","kid":"-KI3Q9nNR7bRofxmeZoXqbHZGew","x5t":"-KI3Q9nNR7bRofxmeZoXqbHZGew","n":"tJL6Wr2JUsxLyNezPQh1J6zn6wSoDAhgRYSDkaMuEHy75VikiB8wg25WuR96gdMpookdlRvh7SnRvtjQN9b5m4zJCMpSRcJ5DuXl4mcd7Cg3Zp1C5-JmMq8J7m7OS9HpUQbA1yhtCHqP7XA4UnQI28J-TnGiAa3viPLlq0663Cq6hQw7jYo5yNjdJcV5-FS-xNV7UHR4zAMRruMUHxte1IZJzbJmxjKoEjJwDTtcd6DkI3yrkmYt8GdQmu0YBHTJSZiz-M10CY3LbvLzf-tbBNKQ_gfnGGKF7MvRCmPA_YF_APynrIG7p4vPDRXhpG3_CIt317NyvGoIwiv0At83kQ","e":"AQAB","x5c":["MIIDBTCCAe2gAwIBAgIQGQ6YG6NleJxJGDRAwAd/ZTANBgkqhkiG9w0BAQsFADAtMSswKQYDVQQDEyJhY2NvdW50cy5hY2Nlc3Njb250cm9sLndpbmRvd3MubmV0MB4XDTIyMTAwMjE4MDY0OVoXDTI3MTAwMjE4MDY0OVowLTErMCkGA1UEAxMiYWNjb3VudHMuYWNjZXNzY29udHJvbC53aW5kb3dzLm5ldDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALSS+lq9iVLMS8jXsz0IdSes5+sEqAwIYEWEg5GjLhB8u+VYpIgfMINuVrkfeoHTKaKJHZUb4e0p0b7Y0DfW+ZuMyQjKUkXCeQ7l5eJnHewoN2adQufiZjKvCe5uzkvR6VEGwNcobQh6j+1wOFJ0CNvCfk5xogGt74jy5atOutwquoUMO42KOcjY3SXFefhUvsTVe1B0eMwDEa7jFB8bXtSGSc2yZsYyqBIycA07XHeg5CN8q5JmLfBnUJrtGAR0yUmYs/jNdAmNy27y83/rWw
from azure.keyvault.secrets import SecretClient
from azure.identity import DefaultAzureCredential
keyVaultName = input("Enter Key Vault name:")
KVUri = f"https://{keyVaultName}.vault.azure.net"
secretName = "mySecret"
credential = DefaultAzureCredential()
client = SecretClient(vault_url=KVUri, credential=credential)
retrieved_secret = client.get_secret(secretName)
param(
[string] $sqlServerName,
[string] $sqlPassword
)
Start-Transcript -path C:\vm-setup.log
Write-Output '* Setup starting'
Write-Output '** Installing Windows features'
param(
[string] $sqlServerName,
[string] $sqlPassword
)
Write-Output '* Setup starting'
Write-Output '** Installing Windows features'
Install-WindowsFeature Web-Server,NET-Framework-45-ASPNET,Web-Asp-Net45
Write-Output '* Installing Chocolatey'
Set-ExecutionPolicy Bypass -Scope Process -Force
[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072
Invoke-Expression ((New-Object System.Net.WebClient).DownloadString('https://community.chocolatey.org/install.ps1'))
Write-Output '* Installing tools'
choco install -y git
choco install -y vscode
Write-Output '-VM setup script done-'
@sixeyed
sixeyed / job.sh
Created June 24, 2019 17:15
Jenkins snippet for remote building on a Docker Swarm node
build_and_push() {
ip=$1
os=$2
arch=$3
docker \
--host tcp://$ip:2376 --tlsverify --tlscacert $ca --tlscert $cert --tlskey $key \
image build --pull -t org/repo:$os-$arch .