Skip to content

Instantly share code, notes, and snippets.

View smoonlee's full-sized avatar
🏠
Working from home

Simon Lee smoonlee

🏠
Working from home
View GitHub Profile
<#
.SYNOPSIS
Lazy Conversion Script for StreamDeckAudio
.DESCRIPTION
This script converts Stream Deck audio files from ".streamDeckAudio" to WAV format.
.AUTHOR
Simon Lee
Twitter: @smoon_lee
@smoonlee
smoonlee / PSPROFILE
Last active January 26, 2023 21:55
PSPROFILE - Oh-My-Posh [Gen2 Edition]
# Import PowerShell Modules
Import-Module -Name 'Posh-Git'
Import-Module -Name 'PSReadLine'
Import-Module -Name 'Az.Accounts'
# Define PSReadLine Configuration
Set-PSReadLineOption -PredictionSource History # https://learn.microsoft.com/en-us/powershell/module/psreadline/set-psreadlineoption?view=powershell-7.3#-predictionsource
Set-PSReadLineOption -PredictionViewStyle ListView # https://learn.microsoft.com/en-us/powershell/module/psreadline/set-psreadlineoption?view=powershell-7.3#-predictionviewstyle
Set-PSReadLineOption -EditMode Windows # https://learn.microsoft.com/en-us/powershell/module/psreadline/set-psreadlineoption?view=powershell-7.3#-editmode
Set-PSReadLineOption -HistoryNoDuplicates:$Ture #https://learn.microsoft.com/en-us/powershell/module/psreadline/set-psreadlineoption?view=powershell-7.3#-historynoduplicates
@smoonlee
smoonlee / powershell-create-32x32-png-with-hex
Last active April 30, 2023 18:44
New-HexColourSwatch.ps1
# Load the System.Drawing assembly
Add-Type -AssemblyName System.Drawing
# Prompt the user for a hex color code
$hex = Read-Host "Enter a hex color code (e.g. #FF0000)"
# Remove the '#' character from the beginning of the hex code, if present
if ($hex.StartsWith("#")) {
$hex = $hex.Substring(1)
}
name: Test Code - Version Check
on:
workflow_dispatch
jobs:
Job:
name: Checkout code
runs-on: ubuntu-latest
name: Test Code - Version Check
on:
workflow_dispatch
jobs:
Job:
name: Checkout code
runs-on: ubuntu-latest
name: Test Code - Version Check
on:
workflow_dispatch
jobs:
Job:
name: Checkout code
runs-on: ubuntu-latest
name: Update Docker Container (Manual Trigger)
on:
workflow_dispatch
jobs:
get_package_version:
name: Get Package Version
runs-on: ubuntu-latest
outputs:
name: Update Docker Image
on:
push:
branches:
- main
jobs:
update_docker_image:
name: Update Docker Image
name: Update Docker Image
on:
push:
branches:
- main
jobs:
update_docker_image:
name: Update Docker Image
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"newline": true,
"segments": [
{
"background": "#d75f00",
"foreground": "#f2f3f8",