-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
41 additions
and
10 deletions.
There are no files selected for viewing
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
{:add-missing {:add-to-rcf :always} | ||
:java {:download-jdk-source? true} | ||
:semantic-tokens? true | ||
:semantic-tokens? false | ||
:source-aliases #{:dev :test :cljs}} |
22 changes: 22 additions & 0 deletions
22
modules/yqrashawn/home-manager/dotfiles/local-bins/killport
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/bin/bash | ||
# killport.sh: kill the process listening on a specific port. | ||
# Usage: killport 3000 | ||
|
||
if [ -z "$1" ]; then | ||
echo "Usage: $0 PORT_NUMBER" | ||
exit 1 | ||
fi | ||
|
||
PORT=$1 | ||
|
||
# Get the process IDs (PIDs) that are listening on the port. | ||
# The '-t' flag ensures only the numeric PID is returned. | ||
PIDS=$(lsof -t -i:"$PORT") | ||
|
||
if [ -z "$PIDS" ]; then | ||
echo "No process is listening on port $PORT" | ||
exit 0 | ||
fi | ||
|
||
echo "Killing process(es) on port $PORT: $PIDS" | ||
kill -9 $PIDS |