class SignedIntConverter(IntegerConverter):
regex = r'-?\d+'
app.url_map.converters['signed_int'] = SignedIntConverterThen use <signed_int:user_id> in your route.
Source:
class SignedIntConverter(IntegerConverter):
regex = r'-?\d+'
app.url_map.converters['signed_int'] = SignedIntConverterThen use <signed_int:user_id> in your route.
Source:
Run the following account as the Unix account running the Mastodon instance:
RAILS_ENV=production bundle exec rails cIn the Rails shell, run the following command, replacing username with the actual local username to destroy and purge from the instance:
Create /usr/lib/systemd/system/mac-keyboard.service with the following contents:
[Unit]
Description=mac-keyboard
[Service]
Type=oneshot
ExecStart=/bin/sh -c "echo 2 > /sys/module/hid_apple/parameters/fnmode"
ExecStop=/bin/sh -c "echo 1 > /sys/module/hid_apple/parameters/fnmode"
RemainAfterExit=yes
| #!/bin/sh | |
| export PATH="$HOME/.local/bin:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" | |
| umask 0027 | |
| # Local backup destination root | |
| LOCAL_BACKUP_PATH="/u01/backups/mysql" | |
| # How long to keep local backup files | |
| LOCAL_BACKUPS_DAYS_TO_KEEP=10 |
| Desired=Unknown/Install/Remove/Purge/Hold | |
| | Status=Not/Inst/Conf-files/Unpacked/halF-conf/Half-inst/trig-aWait/Trig-pend | |
| |/ Err?=(none)/Reinst-required (Status,Err: uppercase=bad) | |
| ||/ Name Version Architecture Description | |
| +++-=======================================-====================================-============-================================================================================ | |
| ii 7zip 24.09+dfsg-8 amd64 7-Zip file archiver with a high compression ratio | |
| ii accountsservice 23.13.9-7 amd64 query and manipulate user account information | |
| ii acl 2.3.2-2+b1 amd64 access control list - utilities | |
| ii adduser 3.152 all add and remove users and groups | |
| ii adwaita-icon-theme |
Update: A full write-up has been posted on my blog at: https://linhpham.org/blog/2025/installing-running-freebsd-on-steam-deck/. The post also includes some corrections and new learnings since creating this gist.