Created
November 23, 2025 02:43
-
-
Save comprofix/01f70acac57cdd0d4069703815415f1a to your computer and use it in GitHub Desktop.
Powershell Profile
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
| function reload-profile { | |
| & $profile | |
| } | |
| Function Get-PubIP { | |
| (Invoke-WebRequest -UseBasicParsing http://ifconfig.me/ip).Content | |
| } | |
| Function Get-Zulu { | |
| Get-Date -Format u | |
| } | |
| Function Get-Pass { | |
| $dinopass = (Invoke-WebRequest -UseBasicParsing https://www.dinopass.com/password/simple).Content | |
| $dinopass.substring(0,1).toupper()+$dinopass.substring(1).tolower() | |
| #-join(48..57+65..90+97..122|ForEach-Object{[char]$_}|Get-Random -C 20) | |
| #38..47 - Symbols | |
| #97..122 - Lower case | |
| #65..90 - Upper case | |
| #48..57 - Numerals | |
| } | |
| function uptime { | |
| Get-WmiObject win32_operatingsystem | select csname, @{LABEL='LastBootUpTime';EXPRESSION={$_.ConverttoDateTime($_.lastbootuptime)}} | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment