Skip to content

Instantly share code, notes, and snippets.

@mirogta
mirogta / skills-update.sh
Last active April 14, 2026 15:59
Daily auto-updater for Claude Code skills (macOS launchd)
#!/bin/zsh
#
# skills-update.sh
#
# Story:
# As a Claude Code user
# I want my superpowers skills kept up to date automatically each morning
# So that I always have the latest skill definitions without manual intervention
#
# Install (one-liner for colleagues):
@mirogta
mirogta / kubectl-cert-manager-install.sh
Last active February 4, 2022 22:39
POC - install script for cert-manager kubectl-plugin
#!/bin/sh
set -eu
VERSION=${VERSION:-v1.7.1}
os=$(uname -s)
arch=$(uname -m)
OS=${OS:-"${os}"}
ARCH=${ARCH:-"${arch}"}
@mirogta
mirogta / features - 2.2-UserRights.feature
Last active August 24, 2021 15:52
Windows Server Hardening for CIS benchmark using Pester/BDD - Example
Feature: 2 Local Policies - 2.2 User Rights Assignment
Background:
When I get the user rights assignment
@2 @2.2 @2.2.1 @CCE-37056-9
Scenario: CCE-37056-9 Ensure 'Access Credential Manager as a trusted caller' is set to 'No One'
Then Ensure "SeTrustedCredManAccessPrivilege" is assigned to no one
@2 @2.2 @2.2.2 @CCE-35818-4
@mirogta
mirogta / Set-FileDate.ps1
Created April 24, 2021 14:40
Set file date in PowerShell
$file='...'
$date=$(get-date "01/01/2000 12:00:00")
$(Get-Item $file).lastaccesstime=$date
$(Get-Item $file).lastwritetime=$date
$(Get-Item $file).creationtime=$date
@mirogta
mirogta / BART stations
Last active December 10, 2020 11:35
data sources properties
# unique ID - {station.abbr}
label = f'Station info for : {station.name}, {station.address}'
add_labels=[
CommonLangLiteral(value=label, lang='en'), # this is the station name
],
# labels need to be specific to the twin, so can't be a generic "Bus"
mandatory_properties = [
CommonProperty(key='http://data.iotics.com/ns/category',
uri_value='http://data.iotics.com/category/Transport',
@mirogta
mirogta / xero.user.js
Created April 14, 2020 23:51
Xero Timesheets User Script - Snippet 3
// ==UserScript==
// @name Xero Timesheets User Script
// @namespace https://github.com/mirogta/tampermonkey-xero-timesheets
// @version 0.0.1
// @description Script to help with submitting timesheets in Xero
// @author mirogta
// @license MIT
// @homepageURL https://github.com/mirogta/tampermonkey-xero-timesheets
// @match https://projects.xero.com/*
// @grant GM_addStyle
@mirogta
mirogta / xero.user.js
Created April 14, 2020 23:51
Xero Timesheets User Script - Snippet 3
// ==UserScript==
// @name Xero Timesheets User Script
// @namespace https://github.com/mirogta/tampermonkey-xero-timesheets
// @version 0.0.1
// @description Script to help with submitting timesheets in Xero
// @author mirogta
// @license MIT
// @homepageURL https://github.com/mirogta/tampermonkey-xero-timesheets
// @match https://projects.xero.com/*
// @grant GM_addStyle
@mirogta
mirogta / xero.user.js
Last active April 14, 2020 22:55
Xero Timesheets User Script - Snippet 2
// ==UserScript==
// @name Xero Timesheets User Script
// @namespace https://github.com/mirogta/tampermonkey-xero-timesheets
// @version 0.0.1
// @description Script to help with submitting timesheets in Xero
// @author mirogta
// @license MIT
// @homepageURL https://github.com/mirogta/tampermonkey-xero-timesheets
// @match https://projects.xero.com/*
// @grant GM_addStyle
@mirogta
mirogta / xero.user.js
Last active April 13, 2020 22:44
Xero Timesheets User Scripts - Snippet 1
// ==UserScript==
// @name Xero Timesheets User Script
// @namespace https://github.com/mirogta/tampermonkey-xero-timesheets
// @version 0.0.1
// @description Script to help with submitting timesheets in Xero
// @author mirogta
// @license MIT
// @homepageURL https://github.com/mirogta/tampermonkey-xero-timesheets
// @match https://projects.xero.com/*
// @run-at document-end
2018-05-22T08:29:26.236+0100 [DEBUG] plugin.terraform-provider-azurerm_v1.5.0_x4.exe: Content-Type: application/json; charset=utf-8
2018-05-22T08:29:26.236+0100 [DEBUG] plugin.terraform-provider-azurerm_v1.5.0_x4.exe: Accept-Encoding: gzip
2018-05-22T08:29:26.236+0100 [DEBUG] plugin.terraform-provider-azurerm_v1.5.0_x4.exe:
ndary_access_key: "" => "<computed>"
secondary_blob_connection_string: "" => "<computed>"
secondary_blob_endpoint: "" => "<computed>"
secondary_connection_string: "" => "<computed>"
secondary_location: "" => "<computed>"
secondary_queue_endpoint: "" => "<computed>"
secondary_table_endpoint: "" => "<computed>"