Localtunnel
#!/bin/bash
DOMAIN=$1
PORT=$2
if [ $# -eq 0 ] ; then
echo "No arguments supplied"
echo "Usage: clito DOMAIN PORT"
exit 1
fi
while true
echo "$(date +%Y-%M-%d\ %H:%M:%S) >>> Serving https://$DOMAIN.localtunnel.me"
do lt -p $PORT -s $DOMAIN &> /dev/null
sleep 2
echo "$(date +%Y-%M-%d\ %H:%M:%S) >>> Ops... Restarting"
done