Settings schema - https://github.com/microsoft/terminal/blob/master/doc/cascadia/SettingsSchema.md
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
| param ( | |
| [string]$Find, | |
| [string]$Replace | |
| ) | |
| # iwr "https://gist.githubusercontent.com/mitch-b/4a18d1a96a5d763cf3436174a616edc0/raw/Rename-DirFiles.ps1" -Out "$HOME\Rename-DirFiles.ps1"; powershell -ep Bypass -f "$HOME\Rename-DirFiles.ps1" -Find "Old" -Replace "New" | |
| function Show-Header { | |
| Write-Host "" | |
| Write-Host "╔══════════════════════════════════════════════════╗" -ForegroundColor Magenta |
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
| Get-ChildItem -Path . -Include bin,obj -Directory -Recurse | Remove-Item -Recurse -Force |
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
| # instead of specifying all chores that need to be reset, this can find any input_boolean that is prefixed with 'chore_' to turn off | |
| alias: Reset Chores | |
| description: "" | |
| trigger: | |
| - platform: time | |
| at: "01:00:00" | |
| condition: [] | |
| action: | |
| - service: homeassistant.turn_off |
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
| # Modified from examples found here: https://community.home-assistant.io/t/wled-script-to-alternate-between-effects-every-5-minutes/227553/39 | |
| # List of all effects: https://github.com/Aircoookie/WLED/wiki/List-of-effects-and-palettes | |
| alias: WLED Cycle Random Effects | |
| description: Sets WLED to random effect from list on interval while WLED remains on. | |
| trigger: | |
| - platform: device | |
| type: turned_on | |
| device_id: 94b3087d775f6f1a48286fc1e0230d6a # update to match device_id | |
| entity_id: light.wled # update to match entity_id | |
| domain: light |
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
| // This file was initially generated by Windows Terminal (Preview) 1.0.1402.0 | |
| // It should still be usable in newer versions, but newer versions might have additional | |
| // settings, help text, or changes that you will not see unless you clear this file | |
| // and let us generate a new one for you. | |
| // To view the default settings, hold "alt" while clicking on the "Settings" button. | |
| // For documentation on these settings, see: https://aka.ms/terminal-documentation | |
| { | |
| "$schema": "https://aka.ms/terminal-profiles-schema", |
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
| # Self-elevate the script if required | |
| if (-Not ([Security.Principal.WindowsPrincipal] [Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] 'Administrator')) { | |
| if ([int](Get-CimInstance -Class Win32_OperatingSystem | Select-Object -ExpandProperty BuildNumber) -ge 6000) { | |
| $CommandLine = "-File `"" + $MyInvocation.MyCommand.Path + "`" " + $MyInvocation.UnboundArguments | |
| Start-Process -FilePath PowerShell.exe -Verb Runas -ArgumentList $CommandLine | |
| Exit | |
| } | |
| } | |
| # TODO stuff |
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
| # Editor configuration, see https://editorconfig.org | |
| root = true | |
| [*] | |
| charset = utf-8 | |
| indent_style = space | |
| indent_size = 2 | |
| insert_final_newline = false | |
| trim_trailing_whitespace = true | |
| quote_type = double |
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
| <# | |
| AssociateHybridConnections | |
| #> | |
| param | |
| ( | |
| [string] $webAppName, | |
| [string] $relayName, | |
| [string] $region, | |
| [string] $webAppResourceGroup, |
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
| var array1 = [1,2,3]; | |
| var array2 = [1,2,3]; | |
| var isJavaScriptCrazy = true; | |
| if (array1 === array2 || array1 == array2) { | |
| isJavaScriptCrazy = false; | |
| } | |
| if (isJavaScriptCrazy) { | |
| console.log('Indeed...'); | |
| } |
NewerOlder