Skip to content

Instantly share code, notes, and snippets.

@rosivaldo
rosivaldo / check_port.sh
Created April 16, 2024 17:47
Quick discover port connectivity, if you don't have nc or can't install it
#!/bin/bash
</dev/tcp/ip.add.r/port && echo conn-OK || echo conn-ERR
@rosivaldo
rosivaldo / livehosts
Created April 13, 2017 12:49
Small utility to check hosts on your network with nmap. Very simple and handful for me.
#!/bin/bash
if [ -z $1 ]
then
echo "type livehosts network [port]"
exit -1
fi;
if [ -z $2 ]
then
@rosivaldo
rosivaldo / .vimrc
Created April 21, 2010 20:06
another .vimrc example
set nocompatible
set loadplugins
set encoding=utf-8
set showmode
set ruler
set wildmenu
set nu
set showmatch
set mat=2
set backspace=start,indent,eol