Skip to content

Instantly share code, notes, and snippets.

View Aurora12's full-sized avatar
🔥
burning with the fires of Orc

Michael A. Aurora12

🔥
burning with the fires of Orc
  • @worldr
  • London, UK
View GitHub Profile
@Aurora12
Aurora12 / git-latest-unpushed.md
Last active December 1, 2021 12:36
Git: undo latest unpushed commit
@Aurora12
Aurora12 / show-listen-ports.md
Last active December 1, 2021 12:33
Bash commands to show open TCP listening ports
# Debian
# Without sudo won't show pids and process names
sudo netstat -tlpn|grep LISTEN

# macOS
# Increase +c for better names visibility
# Without sudo only shows processes of the current user
sudo lsof -i -nP +c 30|grep LISTEN