This file contains 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
for ($($i = 0; $j = 0); $i -lt 3; $($i++; $j = 0)) { | |
# What is $j? | |
Write-Host "$j" | |
$j++ | |
Write-Host "$j" | |
} |
This file contains 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
$InstalledAppxPackages = Get-AppxPackage -AllUsers | |
$AumidList = foreach ($app in $InstalledAppxPackages) { | |
# Get the AppId from the manifest file | |
try { | |
$ManifistPath = Join-Path -Path $app.InstallLocation -ChildPath "AppxManifest.xml" | |
$ManifestPathLeaf = Split-Path -Path $app.InstallLocation -Leaf | |
if ($(Test-Path -Path $ManifistPath -ErrorAction SilentlyContinue)) { | |
[xml]$Manifest = Get-Content -Path $ManifistPath -ErrorAction Stop | |
$Name = $Manifest.Package.Identity.Name | |
$Publisher = @( |
This file contains 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
# Found working config here: https://github.com/esphome/issues/issues/5864 | |
# From my testing it does compiles, uploads, and runs with out issues. | |
esphome: | |
name: my-esp32c6 | |
friendly_name: My ESP32C6 | |
platformio_options: | |
platform: https://github.com/platformio/platform-espressif32/archive/refs/tags/v6.7.0.zip | |
board_build.f_cpu: 160000000L | |
board_build.f_flash: 80000000L | |
board_build.flash_size: 4MB |
This file contains 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
esphome: | |
name: temp-monitor | |
friendly_name: Temp Monitor | |
esp32: | |
board: esp32dev | |
framework: | |
type: arduino | |
# Enable logging |
This file contains 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
function Get-TMI { | |
<# | |
.SYNOPSIS | |
Calculates the TMI of a given object. | |
.DESCRIPTION | |
Calculates the TMI of a given object. | |
.PARAMETER Length | |
The length of the object | |
.PARAMETER Diameter | |
The diameter of the object |
This file contains 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
"Magic Missile": | |
3C3F786D6C2076657273696F6E3D22312E302220656E636F64696E673D227574662D3136223F3E0D0A3C5370656C6C54656D706C61746520786D6C6E733A7873643D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612220786D6C6E733A7873693D22687474703A2F2F7777772E77332E6F72672F323030312F584D4C536368656D612D696E7374616E6365223E0D0A20203C546F6B656E733E0D0A202020203C546F6B656E3E0D0A2020202020203C547970653E496E737472756374696F6E3C2F547970653E0D0A2020202020203C4576616C7561746564547970653E4E756D6265723C2F4576616C7561746564547970653E0D0A2020202020203C4B65793E5265706561743C2F4B65793E0D0A2020202020203C44617461202F3E0D0A2020202020203C4368696C6472656E3E0D0A20202020202020203C546F6B656E3E0D0A202020202020202020203C547970653E436F6E7374616E743C2F547970653E0D0A202020202020202020203C4576616C7561746564547970653E4E756D6265723C2F4576616C7561746564547970653E0D0A202020202020202020203C4B6579202F3E0D0A202020202020202020203C446174613E333C2F446174613E0D0A202020202020202020203C4368696C6472656E202F3E0D0A20202020202020203C2F546F6B656E3E0D0 |
This file contains 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
package main | |
// License: Do what ever you want with this. | |
// Example use case | |
// audioengineConfig = miniaudio.engine_config_init() | |
// result: miniaudio.result = miniaudio.engine_init(&audioengineConfig, &audioEngine) | |
// assert(checkAudioResult(result), "Failed to initialize audio engine") | |
import "vendor:miniaudio" |
This file contains 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
package main | |
import "vendor:miniaudio" | |
import "vendor:raylib" | |
// Example use case: | |
// result: miniaudio.result = miniaudio.engine_init(&audioengineConfig, &audioEngine) | |
// assert(checkAudioResult(result), "Failed to initialize audio engine") | |
checkAudioResult :: proc(result: miniaudio.result) -> bool { |
This file contains 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 bash | |
# Licence: MIT or use how you like | |
# Description: | |
# This script is used to get a list of system packages that can be updated and save them to a Custom Field. | |
# It also gets a list of snaps and flatpaks that can be updated and saves them to a Custom Field. | |
# Create the following Script Variables: | |
# | |
# packagesCustomField as a text field |
This file contains 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
function Get-ProgramBit { | |
[CmdletBinding()] | |
param ([string]$Path) | |
process { | |
if (-not $(Test-Path -Path $Path -ErrorAction SilentlyContinue)) { | |
Write-Error "Invalid Path" | |
return | |
} | |
$re32 = [regex]::new('PE\W\WL') | |
Get-Content -Path $Path -ReadCount 1 | ForEach-Object { |
NewerOlder