Last active
April 19, 2022 08:44
-
-
Save pushp1997/b079b1621256e68e0fec0f5986907fce to your computer and use it in GitHub Desktop.
Local powershell functions
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
# Write functions in profile to persist | |
# > notepad $profile | |
# Paste the below functions. | |
Function ssh-prod { | |
ssh -i C:\Users\Pushp\.ssh\prodPemFile.pem ubuntu@127.0.0.1 | |
} | |
Function pgadmin { | |
$message = "Go to 127.0.0.1:5050 and login with email: me@pushp.ml and password: 1234" | |
docker run -d -t -i -e PGADMIN_DEFAULT_EMAIL='me@pushp.ml' -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