This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==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== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#: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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/zsh | |
DEBUG=${DEBUG:-false} | |
fullpath=$1 | |
log_header() { | |
RED=$(tput setaf 1) | |
WHITE=$(tput setaf 7) | |
RESET=$(tput sgr0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#################################################################################### | |
# This script searches the passed in directory for video files (*.mp4, *.mov, *.m4v) | |
# and stabilizes them using ffmpeg and libvidstab (required before running). It will | |
# create a transform file (*.trf), then use the information to create a new video | |
# with a `-stabilized` suffix. | |
# | |
# Based on https://www.paulirish.com/2021/video-stabilization-with-ffmpeg-and-vidstab/ | |
#################################################################################### |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name Azure Portal | Hide User Information | |
// @version 0.1 | |
// @description Hides the signed in user name and avatar in the Azure portal. | |
// @author Brandon Martinez | |
// @grant none | |
// @include https://portal.azure.com/* | |
// @include https://ms.portal.azure.com/* | |
// ==/UserScript== |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env pwsh | |
param ( | |
[Parameter(Position = 1, mandatory = $true)] | |
[string]$resourceType, | |
[Parameter(Position = 2, mandatory = $true)] | |
[string]$workload, | |
[Parameter(Position = 3, mandatory = $true)] | |
[string]$environment, | |
[Parameter(Position = 4, mandatory = $true)] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Linq.Expressions; | |
using System.Reflection; | |
namespace MyProject.Services.SystemExtensions | |
{ | |
public static class ExpressionExtensions | |
{ | |
/// <summary> | |
/// Compiles a getter Func from an expression to access a property |
NewerOlder