Check your IP from the command line

TLDR; curl ifconfig.co This website, ifconfig.co, is pretty neat and useful when you play with VPNs and SSH. You can have a more detailed output with http ifconfig.co/json.

May 24, 2020

How to print UFW logs

TLDR; sudo tail -f /var/log/ufw.log The following applies to an Ubuntu server. The log files are usually in /var/log, list them with: sudo ls -l /var/log/ufw* It should return a list of log files like the following. The oldest ones are compressed: -rw-r----- 1 syslog adm 1383548 May 18 12:42 /var/log/ufw.log -rw-r----- 1 syslog adm 6492572 May 17 06:24 /var/log/ufw.log.1 -rw-r----- 1 syslog adm 1270159 May 11 06:24 /var/log/ufw.log.2.gz -rw-r----- 1 syslog adm 1459552 May 3 06:25 /var/log/ufw....

May 24, 2020

Installing Graphviz on MacOS

The Brew install did not work for me, so here is how to install the Graphviz backend with MacPorts. Install XCode. The complete AppStore version is not necessary: you can simply install the command line tools with xcode-select —install and click on ‘Install’ in the window that opens (if it is not already installed). Install MacPorts. There is a pkg installer for Catalina. In a new terminal, run sudo port -v selfupdate and then sudo port install graphviz If MacPorts returns with errors, you might have to fix some ports: sudo port -f activate xorg-xorgproto sudo port -f activate xorg-libX11 sudo port select --set python python38 If you use the Python API for Graphviz, you can run pip install graphviz in your dedicated environment, and import graphviz in your code....

March 31, 2020