Showing posts from 2019

Setting up Wireguard on a home linux server

Wireguard is a peer-to-peer VPN solution with manual IP assignment and pre created keys, so it works well if you want to dial home to your home network, but is not really suited for something large scale that requires dynamic allocation and user management. Step 1 - set up the server on Ubuntu Enable IP forwarding To have access the outside network through your server once you dial home. Run first sysctl -w net.ipv4.ip_forward=1 Then edit /etc/sysctl.conf and uncomment the next line to enable packet forwarding for IPv4 net.ipv4.ip_forward=1 Install Wireguard for Ubuntu sudo add-apt-repository ppa:wireguard/wireguard apt install wireguard Generate private and public keys # generate private key wg genkey > example.key # generate public key wg pubkey < example.key > Take note of the content of, you will need it for the client. Enable the Wireguard network interface sudo sys

My LaTeX workflow - from Google Docs to PDF

As much as I enjoy writing my academic work in LaTeX , it had a steep learning curve and took a significant time to set up all my tools to work conveniently with it. Cloud One of my requirements was to be able to edit my documents anywhere and potentially collaborate with others on them. While Overleaf is an excellent tool, it's not a great platform to write long texts in, and the collaboration features are somewhat limited compared to Google Doc. Google Doc was missing LaTeX syntax highlights, so I created a plugin to do exactly that . Tables Everyone who's using LaTeX agrees that editing tables is as painful as it can get. I like storing my data in Google Sheets, so I created a plugin that converts from Google Sheets to LaTex . Reference management I chose Zotero with Better Bibtex for managing my references, which is a great toolset, but I ran into the problem several times: author names across papers were slightly misspelled, and it caused rendering artefa