If your US-ANSI keyboard supports VIA Show archive.org snapshot you can use it to create macros for the German Umlauts. All Keychron models should support this by now.
Requirement
- Set the compose key of your desktop environment. I use
Caps Lock
for that. - The momentary layer key like
MO(3)
is bound tofn
Default behavior
# Type ö
Caps Lock, Shift-', o
# Type Ö
Caps Lock, Shift-', Shift-o
Custom behavior
# Type ö
fn-o
# Type Ö
fn-Shift-o
Macros
# Type ä/Ä
{KC_CAPS}{KC_RSFT,KC_QUOT}a
# Type ö/Ö
{KC_CAPS}{KC_RSFT,KC_QUOT}o
# Type ü/Ü
{KC_CAPS}{KC_RSFT,KC_QUOT}u
# Type ß
{KC_CAPS}ss
# Bonus: Type €
{KC_CAPS}e=
Setup
- Create macros
- Bind them on the non-umlaut key (Example:
A
) of the secondary layer
Related cards:
Why Apple Silicon MacBooks Can Only Use One External Display Through A Dock
It's quite confusing how many external displays are usable with a MacBook that uses an M1 or M2 Chip. Documentation on the Internet is sparse and not even the Geniuses at the Genius Bar are 100% sure. We found out some things and can explain the b...
Capistrano 3: assets:precompile only on one server
Disclaimer
This should not be necessary in any case and is only for special cases, for e.g. if the assets directory is linked to a shared storage (for e.g. glusterfs). Please mind that it isn't wise to move your assets directory to a shared s...
Controlling multiple PostgreSQL installations on Debian/Ubuntu
Hint
This applies only to distributions based on Debian.
Requirement
You need to setup the PostgreSQL Apt Repository first.
If you have multiple Postgres versions install...
Use Terraform grouping mode like Golang's Ellipsis expression
The terraform documentation states the ...
syntax as (grouping mode*. See: Grouping-Results).
But this seems not the be the whole truth. Instead the ...
sy...
dumping and restoring PostgreSQL databases
This card is just about creating simple PostgreSQL dumps. This is no instruction for a backup strategy nor a guide for SQL dump performance optimization.
Read before starting
- I will assume that all commands will be executed as local `postgr...
Useful PostgreSQL commands
on the bash (issued as postgres user)
Start/Stop/Restart PostgreSQL
pg_ctl -D $configdir start|stop|restart
Start/Stop/Restart the corresponding PostgreSQL using the given configuration directory. The configuration directory sh...
Desktop notification for failed systemd user services
You can execute systemctl --user --failed
to check for failed systemd user units. But let's face it: It's inconvenient and you'll probably miss failures. Better use desktop notifications.
~/.config/systemd/user/service.d/user-failure-notifi...
SSH add/remove port forwarding to active session
It is possible to manipulate the forwarded ports of an established interactive SSH session.
This is done by opening the command line with the escape character ~C
. This will open a ssh>
prompt. If it doesn't, make sure it's the first character...
HowTo: Curl applications that are usually behind reverse proxies with TLS termination without the application redirecting to https schema
A lot of web applications require being called over https
, which is a good thing. It's possible to configure this requirement at the web- or proxy server level, where nginx
or apache
will just redirect every request on http
to https
. Som...
Don't use puppet `exec` type without `cwd` and `user` parameter
-
Don't use
exec
withoutuser
parameterIf you use
exec
withoutuser
parameter, the command will get executed as root. You mostly don't want this. -
There is a difference in the env variables of the exec if you run puppet man...