Live demo: https://dax.do/k1CMcd5fRbo6ax/
Do these DAX expressions equal the same thing? Or do they differ?
(-10) ^ 2
verses
| <# | |
| Output: | |
| ProcessNum BitFlag BitStr | |
| ---------- ------- ------ | |
| 10 1024 000000000000010000000000 | |
| 11 2048 000000000000100000000000 | |
| 12 4096 000000000001000000000000 | |
| 13 8192 000000000010000000000000 | |
| 14 16384 000000000100000000000000 |
Live demo: https://dax.do/k1CMcd5fRbo6ax/
Do these DAX expressions equal the same thing? Or do they differ?
(-10) ^ 2
verses
| #requires -Modules Pansies | |
| #requires -PSEdition Core | |
| remove-module PSFrameWork, psutil, string -ea ignore | |
| <# | |
| .SYNOPSIS | |
| parse a cisco router config from 10 years ago. split into groups. Show depths. Show warnings if any exit contained within | |
| .NOTES | |
| I used colors for a screenshot | |
| but if you use Num and DisplayNum you'd be able to have colors and still filter like |
Posted reddit thread: https://www.reddit.com/r/PowerShell/comments/1von1d7/comment/p41z4et Date: 2026-08-15
The version currently up didn't appear to execute something malicious currently -- but it looks more suspicious than not.
The domain is not github, and the cert was invalid. Unlike the guy below, who said he got 404
| #requires -Modules PSParseHTML | |
| <# | |
| .link | |
| javascript answer: https://gist.github.com/ninmonkey/b59e33cec6765a2c782edaf5c4807b17 | |
| #> | |
| Import-Module PSParseHTML | |
| $url = 'https://tavex.pl/zloto/zlote-sztabki/page/1?filter%5Bweight%5D%5B0%5D=1&meta%5B0%5D=tax-gold%3Azlote-sztabki&sorting=recommended' | |
| $html ??= Invoke-WebRequest -url $Url -UseBasicParsing |
| function EditFunc { | |
| <# | |
| .SYNOPSIS | |
| Finds where a function is defined, opens it in vs code -- and jumps to the line number it starts on | |
| .example | |
| gcm prompt | EditFunc | |
| #> | |
| [CmdletBinding()] | |
| param( | |
| [Parameter(ValueFromPipeline)] |
function Pow { param( $base, $pow ) [Math]::Pow( $base, $pow ) }
filter fPow { param( $Pow ) [Math]::Pow( $_, $pow ) }
filter IPow { param( $Base ) [Math]::Pow( $base, $_ ) }
function Csv { $input | Join-String -sep ', ' }3 Different interfaces
Pow 2 7 | filter EscapeCC { | |
| ($_)?.EnumerateRunes() | % { | |
| ($_.Value -le 32) ? [Text.Rune]( $_.Value + 0x2400 ) : $_ | |
| } | Join-String | |
| } | |
| "sdf `a sdjf hi world`t`n ${fg:#feaa99} more stuff `u{0} `r`n blah" | escapeCC | |
| # outputs: sdf␠␇␠sdjf␠hi␠world␉␊␠␛[38;2;254;170;153m␠more␠stuff␠␀␠␍␊␠blah |
| let | |
| startDate = DateTime.Date( DateTime.LocalNow() ), | |
| endingOffset = 1000, // in days | |
| endingOffsetDate = Date.AddDays( startDate, endingOffset ), | |
| allDays = List.Transform( | |
| { Number.From(startDate)..Number.From(endingOffsetDate) }, | |
| each { Date.From( _ ) } | |
| ), |