feat: add network-tools
This commit is contained in:
parent
b273cdb62e
commit
4cf8950556
@ -95,7 +95,6 @@ function strip_color() {
|
||||
function docker_rm_all() {
|
||||
docker rm -f `docker ps --no-trunc -aq`
|
||||
}
|
||||
alias ag="ag --hidden"
|
||||
# Replace replaces non-regex pattern recursively
|
||||
# Example: Replace 'ctx.Status(400)' "ctx.Status(http.StatusBadRequest)"
|
||||
function Replace () {
|
||||
|
5
zsh/network-tools.zsh
Normal file
5
zsh/network-tools.zsh
Normal file
@ -0,0 +1,5 @@
|
||||
alias intercept_request_hosts="sudo tcpdump -i any -A -vv -s 0 | grep -e 'Host:'"
|
||||
|
||||
test_port() {
|
||||
nc -z localhost $1
|
||||
}
|
Loading…
Reference in New Issue
Block a user