Skip to content

Instantly share code, notes, and snippets.

View sussycatgirl's full-sized avatar
🏳️‍⚧️

Lea sussycatgirl

🏳️‍⚧️
  • Laniakea Supercluster
  • 00:21 (UTC +02:00)
View GitHub Profile
@sussycatgirl
sussycatgirl / I hate Android.md
Created January 16, 2024 00:32
Fixing Signal backups (org.thoughtcrime.securesms.database.NoExternalStorageException)

I had an issue where Signal never created backups, even when I manually tried to make one.

The logs reveal the following:

01-16 00:54:39.725  8241  8299 I GenericForegroundServic: [startForegroundTask] Task: Creating Signal backup…, ID: 12
01-16 00:54:39.734  8241  8241 D GenericForegroundServic: [onCreate]
01-16 00:54:39.734  8241  8241 D GenericForegroundServic: [onStartCommand] Action: start
01-16 00:54:39.734  8241  8241 I GenericForegroundServic: [onStartCommand] Adding entry: ChannelId: backups_v2, ID: 12, Progress: 0/0 determinate
01-16 00:54:39.735  8241  8299 W NotificationController: Tried to update the progress, but the service was no longer bound!
@sussycatgirl
sussycatgirl / Caddyfile
Last active May 4, 2023 08:33
Authentik Forward Auth with Caddy
# Put this somewhere near the top of your Caddyfile (at the root, not in a site directive).
# Replace `http://127.0.0.1:9000` with your *internal* Authentik outpost's hostname and port
(authentik_forwardauth) {
reverse_proxy /outpost.goauthentik.io/* http://127.0.0.1:9000
forward_auth {args.0} http://127.0.0.1:9000 {
uri /outpost.goauthentik.io/auth/caddy
copy_headers X-Authentik-Username X-Authentik-Groups X-Authentik-Email X-Authentik-Name X-Authentik-Uid X-Authentik-Jwt X-Authentik-Meta-Jwks X-Authentik-Meta-Outpost X-Authentik-Meta-Provider X-Authentik-Meta-App X-Authentik-Meta-Version
trusted_proxies private_ranges
}
}
@sussycatgirl
sussycatgirl / readme.md
Last active October 9, 2022 16:19
Calculate total torrent down/upload from flood API

qBitTorrent keeps forgetting global download/upload statistics but remembers it on individual torrents. This script uses flood's API (Because I couldn't figure out qBit's API) to calculate those values.

@sussycatgirl
sussycatgirl / pterodactyl
Created August 24, 2022 18:41
OpenRC service file for pterodactyl
#!/sbin/openrc-run
name="Pterodactyl Wings"
#command="/usr/local/bin/wings"
depend() {
after docker
}
@sussycatgirl
sussycatgirl / README.md
Last active July 19, 2023 12:51
Revolt Rounded Theme

Revolt Rounded Theme

Custom CSS which adds a rounded chat bar, along with several other improvements.

Since this is just a style sheet instead of a complete theme, you can add it alongside your existing theme.

Installation

@sussycatgirl
sussycatgirl / mailcow_wg.md
Created February 27, 2022 14:49
Tunneling a Mailcow server through a remote server using Wireguard

Tunneling a Mailcow server through Wireguard

Mailcow is a easy to set up Mailserver running in Docker.

Unfortunately, most ISPs block port 25. In addition to that, residential IP addresses are generally blacklisted, making it impossible to self-host a mailserver at home. Mailcow by itself requires at least 6GB of RAM, which makes hosting it on a VPS rather expensive.

The solution: Running Mailcow at home and tunneling it's traffic through a cheap VPS.

The final setup will look like this:

@sussycatgirl
sussycatgirl / i3_kde_connect.md
Last active May 5, 2023 11:30
KDE Connect presentation mode with i3wm+picom

Leaving this here as a note to myself, but maybe someone else gets some use out of it.
This fixes KDE Connect's presentation overlay thingy which forces itself into fullscreen by default.

in .config/i3/config, add this and adjust for your display:

for_window [class="kdeconnect.daemon"] fullscreen disable; floating enable; resize set width 1920 height 1080; move absolute position center

If you enabled transparency in picom, add this to blur-background-exclude = [] in picom.conf:

@sussycatgirl
sussycatgirl / Based vscode.md
Last active October 3, 2023 14:37
Based vscode

Update: Get CSS from here instead

based_vscode.mp4

Based VSCode CSS

Installation:

  1. Install this extension. Since it modifies VSCode's index.html, it might get pissed at you.
    You will also have to chown vscode to your user (kekw): sudo chown -R $(whoami) /opt/visual-studio-code/
  2. Follow instructions in the extension's readme to load based.css.