Skip to content

Instantly share code, notes, and snippets.

View brandonmartinez's full-sized avatar

Brandon Martinez brandonmartinez

View GitHub Profile
@brandonmartinez
brandonmartinez / disable-storage-accounts-shared-key-access.sh
Created April 29, 2024 14:59
Disables shared key access on all storage accounts in the given subscription.
#!/usr/bin/env bash
# Be sure to run az login before running
# run this script with a single parameter which is the subscription ID
# Exit if SUBSCRIPTION_ID is empty
if [ -z "$1" ]; then
echo "Please provide a valid subscription ID as the first parameter."
exit 1
fi
@brandonmartinez
brandonmartinez / zen.toml
Created July 15, 2024 05:51
My personal ohmyposh.dev configuration
#:schema https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json
version = 2
final_space = true
console_title_template = '{{ .Shell }} in {{ .Folder }}'
[[blocks]]
type = 'prompt'
alignment = 'left'
newline = true
@brandonmartinez
brandonmartinez / UserScripts-UltimateGuitar-CopyTabToClipboard.js
Created January 9, 2025 19:31
A user script to copy the contents of an ultimate guitar tab to your clipboard.
// ==UserScript==
// @name Copy Tab to Clipboard
// @namespace https://tabs.ultimate-guitar.com/
// @version 1.1
// @description Adds a button to copy tab to clipboard
// @author Brandon Martinez
// @match https://tabs.ultimate-guitar.com/*
// @require https://code.jquery.com/jquery-3.7.1.slim.min.js
// @grant GM_setClipboard
// ==/UserScript==
# Based on: https://github.com/Klipper3d/klipper/blob/master/config/printer-creality-ender3-s1plus-2022.cfg
# This file contains pin mappings for the stock 2022 Creality Ender 3
# S1 Plus. To use this config check the STM32 Chip on the Mainboard,
# during "make menuconfig" select accordingly either the
# STM32F103 with "28KiB bootloader" or the STM32F401 with
# "64KiB bootloader" and serial (on USART1 PA10/PA9) for both.
# For a direct serial connection, in "make menuconfig" select
# "Enable extra low-level configuration options" and Serial
# (on USART2 PA3/PA2), which is on the 10 pin IDC cable used