Skip to content

Instantly share code, notes, and snippets.

@pushp1997
Last active April 19, 2022 08:44
Show Gist options
  • Save pushp1997/b079b1621256e68e0fec0f5986907fce to your computer and use it in GitHub Desktop.
Save pushp1997/b079b1621256e68e0fec0f5986907fce to your computer and use it in GitHub Desktop.
Local powershell functions
# Write functions in profile to persist
# > notepad $profile
# Paste the below functions.
Function ssh-prod {
ssh -i C:\Users\Pushp\.ssh\prodPemFile.pem [email protected]
}
Function pgadmin {
$message = "Go to 127.0.0.1:5050 and login with email: [email protected] and password: 1234"
docker run -d -t -i -e PGADMIN_DEFAULT_EMAIL='[email protected]' -e PGADMIN_DEFAULT_PASSWORD='1234' -p 5050:80 --name pgadmin dpage/pgadmin4
echo $message
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment