To generate an SSL private key for use with MySQL/MariaDB and PDO:
openssl genrsa -out client-key.pem 4096
To generate an SSL private key for use with MySQL/MariaDB and PDO:
openssl genrsa -out client-key.pem 4096
Today I was reading about Shadow IT over on Wikipedia.
There is a feature of NetBeans where it puts a red line as the right margin in the code editor. By default this margin is at 80 characters but I prefer it at 99 characters. To change the setting in NetBeans see Tools -> Options -> Editor -> Formatting -> All Languages -> Tabs And Indents -> Right Margin. For example:
See my reference configuration for hardware selections which worked well for me when running Kubuntu 18.04 guests on Kubuntu 18.04 hosts.
After configuring your VM you might like to read about installing Kubuntu on it.
So basically I want to run KDE Plasma under Ubuntu and this can be called Kubuntu.
This article is a little bit cargo-clutish. I.e. “I did this and it seemed to work.” and “I don’t do this because it didn’t seem to work.”
I have a pretty heavy reliance on Salt Stack for system configuration. My salt config is all built around Ubuntu 18.04 LTS.
When I need to install a Kubuntu desktop, this is how I do it:
Note that if your Kubuntu install is a VirtualBox guest you need to start it with a normal start if you want the shared clipboard to work. If you start headless or detachable the shared clipboard will not work (in my experience).
If your Kubuntu install is not a VirtualBox guest you can skip the virtualbox-guest-* package installation above.
My shared clipboard wasn’t working for my Ubuntu 18.04 guests running on my Ubutnu 18.04 host under VirtualBox 6.0.
To fix first make sure that the shared clipboard is enabled in VirtualBox for the VM. The setting for that is under General -> Advanced -> Shared Clipboard.
Then try running these commands in the guest:
These steps (or something similar) got the shared clipboard working for me. Hooray!
Note that these instructions will vary if you’re running a HWE kernel.
To disable the HTTP Referrer (Referer) header in Firefox open about:config and set network.http.sendRefererHeader to zero.
I read Everything you need (and don’t need) to know about PHP’s type system, it was interesting. My favourite quote was at the end:
“I believe php’s type system is incredibly rich and carries many innovative and legacy features and they all make much sense when you look at the history of the language development.”
Today I was reading Some SQL Tricks of an Application DBA and I learned about the RandomizedDelaySec systemd option.
Today I read How to Automatically Clear Browsing History in Chrome on Exit and learned how to clear cookies etc when closing the Chromium web browser. Basically it’s Settings -> Privacy and security -> Site settings -> Cookies and site data -> Clear cookies and site data when you quit Chromium.