I hereby claim:
- I am telmofcosta on github.
- I am telmocosta (https://keybase.io/telmocosta) on keybase.
- I have a public key whose fingerprint is 2384 C6C9 607B A52F 36A2 5377 3836 68C6 3FC3 A250
To claim this, I am signing this object:
#!/bin/bash | |
PORT=$1 | |
if [ -n "$PORT" ]; then | |
LINE=$(lsof -i tcp -n -P | grep ":$PORT (LISTEN)") | |
if [ -n "$LINE" ]; then | |
echo $LINE | |
PID=$(echo $LINE | awk '{print $2}') | |
fi | |
if [ -n "$PID" ]; then | |
echo "kill -9 $PID" |
# insert SD and find out where it is mounted | |
diskutil list | |
# /dev/disk0 | |
# #: TYPE NAME SIZE IDENTIFIER | |
# 0: GUID_partition_scheme *250.1 GB disk0 | |
# ... | |
# /dev/disk1 | |
# #: TYPE NAME SIZE IDENTIFIER | |
# 0: FDisk_partition_scheme *15.7 GB disk1 | |
# ... |
I hereby claim:
To claim this, I am signing this object: