Skip to content

Instantly share code, notes, and snippets.

@comprofix
Created November 23, 2025 02:43
Show Gist options
  • Select an option

  • Save comprofix/01f70acac57cdd0d4069703815415f1a to your computer and use it in GitHub Desktop.

Select an option

Save comprofix/01f70acac57cdd0d4069703815415f1a to your computer and use it in GitHub Desktop.
Powershell Profile
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