So today I read How To Switch Between TTYs Without Using Function Keys In Linux and learned about the `chvt` command which can change the virtual terminal on the host’s physical console. This is gonna come in handy!
Category Archives: Sys Admin
DRI3
Today I was reading How to Install The Latest AMD Radeon Drivers on Ubuntu 18.04 Bionic Beaver Linux wherein I read that “[enabling] DRI3 will increase graphical performance with the AMDGPU drivers”. You can read about DRI3 but the bottom line was to add the following to your /etc/X11/xorg.conf file:
Section "Device" Identifier "AMDGPU" Driver "amdgpu" Option "AccelMethod" "glamor" Option "DRI" "3" EndSection
How to Customize Firefox’s User Interface With userChrome.css
Today I read How to Customize Firefox’s User Interface With userChrome.css. You may need to enable with e.g. Firefox 69: userChrome.css and userContent.css disabled by default. If you change userContent.css you need to open your page in a new tab to force an update. I would guess that if you change userChrome.css you will need to restart Firefox (I don’t know I’ve only been using userContent.css).
I should be clear: there are two files: userChrome.css (which affects Firefox features like toolbars and tabs etc) and userContent.css (which affects web pages loaded in Firefox).
I’ve been using userContent.css to fixup CSS on various websites. You can limit your changes to a particular domain in this way:
/* 2020-07-01 jj5 - SEE: https://exploringjs.com/impatient-js/toc.html */ @-moz-document domain(exploringjs.com) { a:visited { color: purple !important; } }
Today on Hacker News: Our AWS bill is ~ 2% of revenue. Here’s how we did it. A good read about tricks for optimising the cost of AWS services. In short: use Lightsail!
5 modern alternatives to essential Linux command-line tools
Today this one popped up on r/programming. The suggestions were:
- `ncdu` as a replacement for `du`
- `htop` as a replacement for `top`
- `tldr` as a replacement for `man`
- `jq` as a replacement for `sed`/`grep` for JSON
- `fd` as a replacement for `find`
Triggering a PHP script when your Postfix server receives a mail
Today I discovered Triggering a PHP script when your Postfix server receives a mail. Looks interesting. Gonna have a read. It references this Postfix Architecture Overview document that is even more interesting, and which I will read first!
Scaling to 100k Users
Today on r/programming was an article Scaling to 100k Users which discusses the phases you go through as you grow.
Konsole column width
So after having read this I was trying to configure Konsole by editing my config files under
~/.local/share/konsole
and I couldn’t get my column width config to apply.
The problem was that I was configuring column width with the TerminalCols setting, but the correct setting is actually TerminalColumns, which was difficult to figure out! Not sure how I managed to get that wrong in the first place, but it’s fixed now.
My new Konsole dimension settings are:
TerminalColumns=100 TerminalRows=42
How to clear dashed lines from LibreOffice Calc
I don’t know how it happened but suddenly I found I had this annoying situation in LibreOffice Calc whereby there were “dashed lines” repeating regularly throughout my sheets. Turns out it was display of page breaks. Anyway I found this and the solution was:
Tools ▸ Options ▸ LibreOffice Calc ▸ View ▸ Visual Aids ▸ Page breaks
SQLite integrity check
To process an integrity check on an SQLite database:
$ sqlite3 database.sqlite 'pragma integrity_check'