| //! ====== | |
| //! file: mario_state_machine.zig | |
| //! This is an example of a Mario/Powerup state machine. | |
| //! It showcases the usefulness of switches and tagged unions in Zig. | |
| //! See state machine diagram: | |
| //! https://external-preview.redd.it/TgwKB-bdEWJase06sIDXmVtaGaP7AZTD9YKn0x4yUWo.png?auto=webp&s=c0318b178038bd83212392c8fdd16e1a4b1a0049 | |
| //! ====== | |
| /// This is a tagged union. | |
| /// See tagged union doc: |
| #!/bin/sh | |
| # Remove the performance overlay, it meddles with some tasks | |
| unset LD_PRELOAD | |
| ## Shadow kwin_wayland_wrapper so that we can pass args to kwin wrapper | |
| ## whilst being launched by plasma-session | |
| mkdir $XDG_RUNTIME_DIR/nested_plasma -p | |
| cat <<EOF > $XDG_RUNTIME_DIR/nested_plasma/kwin_wayland_wrapper | |
| #!/bin/sh |
Hello. I've decided to share a lot more of my knowledge in public forums from now on, and to not divert any of my focus away from improving the world in a way that stays written in history.
This Gist is about discussing on how to improve AV1 decoding performance on 2 fronts: improving performance through more efficient decoding, and through decoding aware encoding.
Here are many tips on how to improve decoding performance on any machine:
| #!/usr/bin/fish | |
| # You can add this to your ~/.config/fish/config.fish | |
| function __fish_complete_bash | |
| set cmd (commandline -cp) | |
| bash -c "source get-bash-completions.sh; get_completions '$cmd'" | |
| end | |
| # Set the tool to use bash completions |
| =========================== | |
| SID FILE FORMAT DESCRIPTION | |
| =========================== | |
| AUTHORS: | |
| Michael Schwendt (PSID v1 and v2) | |
| Simon White (PSID v2NG, RSID) | |
| Dag Lem (PSID v2NG) | |
| Wilfred Bos (PSID v3, RSID v3, PSID v4, RSID v4) |
How to configure pam_kwallet to auto-unlock the default kwallet5 "kdewallet" from sddm login credentials on openSUSE Leap 42.3 KDE Plasma5
Note: Many other guides & posts were attempted before creating this, however they either no longer work or are ugly hacks which don't follow SUSE's odd pam.d layouts. Essentially, this solution boils down to this: pam_kwallet needs to be loaded from it's own substack just like pam_gnome_keyring already is configured to do so, so new substacks were created based on the gnome_keyring ones so that they could be added to sddm. I'm unsure how both gnome_keyring and kwallet behave if both are loaded from the same substack so I kept them in separate stacks. This was tested with only kwallet5 installed but it should also optionally load the old kwallet4 if it's present. My understanding of PAM is limited, so I'm open to suggestions, but this seemed like the cleanest solution which doesn't get overwritten on updates, though it should probably be globally registered as a