4 ms·
I have an alias in my .bashrc for that: alias instashare='python3 -m http.server 8082'
by Phelinofist 4y ago
I have an alias in my .bashrc for that:
alias instashare='python3 -m http.server 8082'
- creata 4y agoIf you have qrencode on your system, you can also print a QR code with echo "http://$(ip route get 1 | sed -n 's/.*src \([0-9.]\+\).*/\1/p'):8082" | qrencode -t UTF8 -o - Credit to https://stackoverflow.com/a/49552792 https://stackoverflow.com/a/49552792 for fetching the IP address.
- BeefWellington 4y agoI find hostname -I Generally simpler and works in the 90% case.