Category Archives: HOWTOs

Finding Unique Web Visitors

I use this commandline to determine how many unique IP addresses visit my websites.  It isn't completely accurate because many visit from behind NAT firewalls and also I'm not checking between certain hours, etc …  This is just for fun: … Continue reading

Posted in CLI HOWTOs, HOWTOs | Comments Off on Finding Unique Web Visitors

Appending +4 to zip5

I have a huge list of addresses and I'm preparing a mailing.   We're going to use zip9 but some addresses only have zip5 so I have to append -0000 to those. for i in `cat zip5.csv`; do echo $i-0000 >> … Continue reading

Posted in CLI HOWTOs, HOWTOs | Comments Off on Appending +4 to zip5

Find An Available GID

I use this command whenever I have to add a group id (UGID) to the system in the area usually reserved for system groups only (below 500 on some systems and below 1000 on others).  It's nice to be able … Continue reading

Posted in CLI HOWTOs, HOWTOs | Comments Off on Find An Available GID

EasyTether Android Tethering Script

I created this script for my lady.  She uses it when she's on the road and needs to tether her Ubuntu laptop with her Android phone. #!/bin/bash## a quick script to enable tethering/usr/bin/sudo -k/usr/bin/gnome-terminal –window-with-profile=NoScrollBar –hide-menubar –geometry=80×6 –title="Tethering Active – … Continue reading

Posted in CLI HOWTOs, HOWTOs | Comments Off on EasyTether Android Tethering Script

Automate NMAP scans

I wrote this script to speed up periodic TCP scans of my network(s).  It's not perfect but it does what I want and there's plenty of room for improvement.  Please adapt it for your use. #!/bin/bash#Author: Frank Sfalanga Jr#Description: A … Continue reading

Posted in CLI HOWTOs, HOWTOs | Comments Off on Automate NMAP scans