Last active
December 16, 2020 21:11
-
-
Save boarnoah/e8b7c79c0b09a5c11fd4cbb27a65736d to your computer and use it in GitHub Desktop.
Revisions
-
boarnoah revised this gist
Dec 16, 2020 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -9,4 +9,4 @@ function port { Get-Process -Id (Get-NetTCPConnection -LocalPort $args[0]).OwningProcess } New-Alias grep Select-String -
boarnoah created this gist
Jul 25, 2020 .There are no files selected for viewing
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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,12 @@ # Should be put into powershell's $PROFILE which acts similar to a .bashrc # ex: notepad $PROFILE New-Alias which Get-Command # Get process by port #, ex: "port 8080" -> Find culprit process *cough* random postgres server *cough* function port { Get-Process -Id (Get-NetTCPConnection -LocalPort $args[0]).OwningProcess } New-Alias grep findstr