Welcome to nowhere.dk
Using proxy pac with Chrome (and derivatives) and Linux
As many people know, Chrome (and other browser based on Chromium, at least Brave and Edge) still rely on the desktop鈥檚 proxy settings on Linux (I remember writing about this back in 2011). Under normal circumstances, it is as easy as running the program with --proxy-pac-url commandline switch, like so: $ brave --proxy-pac-url="https://example.com/proxy.pac" But what if you want to use a local file? At some point (around Chrome 77 it seems), Chrome stopped accepting file:// URLs for --proxy-pac-url....
Tweaking Firefox urlbar (Awesomebar)
I try getting backup on the Firefox wagon from time to time, but most of the time I revert to Brave because of the small things that bug me. This article is mostly to remind myself what to change in case I frack up my profile. Make Firefox read userChrome.css Type about:config in the address bar (you will be presented with a warning), accept and move on. Search for toolkit.legacyUserProfileCustomizations.stylesheets and double click to set it to true....
Moving to Hugo
I have decided to move my site to Hugo. All previosly posted articles should have retained their permalinks but most do require some cleanup of the content, something I will do over the next couple of weeks. I have been using Wordpress for almost 12 years but now it鈥檚 time for a change....
Implementing SRS with Mailcow
Preface Mailcow is an awesome self-hosted, container-based email solution. SRS (Sender Rewriting Framework) (from Wikipedia): For a mail transfer agent (MTA), the Sender Rewriting Scheme (SRS) is a scheme for rewriting the envelope sender address of an email message, in view of remailing it. In this context, remailing is a kind of email forwarding. SRS was devised in order to forward email without breaking the Sender Policy Framework (SPF), in 2003....
Installing Pulse Secure client in Ubuntu 16.04+
Update 2021-01-03: I haven鈥檛 used Pulse VPN on Linux since August 2018, so I don鈥檛 know if these instructions still work or are needed. First off, you need to obtain the Pulse Secure client as a deb file from your network administrator. I have version 8.2R5. For some reason the client does not list any dependencies when installing so you must install the needed (32 bit) libraries by hand (PulseClient.sh does not work without changes):...
Change the default terminal emulator in GNOME 3
After using Linux Mint with Cinnamon for a long time I am now back with Ubuntu with GNOME (reluctantly, I may add). One thing I have noticed is there does not seem to be an option in the settings to change your preferred terminal emulator. Luckily it can be changed in several other ways, The generic fix in a terminal, write $ gsettings set org.gnome.desktop.default-applications.terminal exec tilix In this case I have changed to the Tilixterminal emulator....
Installing Linux Mint/Ubuntu desktop edition with full-disk encryption and LVM
(This guide applies to any Debian/Ubuntu based distribution) For some reason (complexity perhaps) it is not possible to configure full-disk encryption and LVM from the graphical installer in the desktop edition. It is possible to select full-disk encryption but this only creates one filesystem (root). I want to use LVM to allow me to have more than one filesystem without having to enter more than one password during boot-up. It is not impossible to install Ubuntu desktop (or Linux Mint as in this guide) with encryption and LVM but it does require a little more work....
Using WordPress plugin CodeColorer under PHP 7
I decided to upgrade my web server containers to PHP 7 but ran into a problem with WordPress, all articles had no text. The problem seemed to be within the plugin CodeColorer since disabling it resolved the problem PHP Warning: preg_replace(): The /e modifier is no longer supported, use preg_replace_callback instead in /var/www/wp-content/plugins/codecolorer/codecolorer-core.php on line 50 In wp-content/plugins/codecolorer/codecolorer-core.php locate this code block: /** Search content for code tags and replace it */ function BeforeHighlightCodeBlock($content) { $content = preg_replace('#(\s*)\[cc([^\s\]_]*(?...