Skip to content

Instantly share code, notes, and snippets.

View beccauwu's full-sized avatar

Rebecca P. beccauwu

  • Sweden
  • 11:12 (UTC +02:00)
View GitHub Profile
@beccauwu
beccauwu / gnome2kde.sh
Created December 13, 2025 10:39
GNOME to KDE Migration Script for Fedora 43
#!/usr/bin/env bash
# GNOME to KDE Migration Script
# Description: Safely migrates from GNOME to KDE Plasma desktop environment on Fedora
# Warning: This will remove GNOME and install KDE. Backup important data first.
# Originally by @theking2 on fedora discussion board (https://discussion.fedoraproject.org/t/is-it-possible-to-switch-completely-to-kde-from-gnome/66747/13)
# Modified for newer versions of fedora (@group instead of "Group" in dnf)
# Added check that user is in terminal session
# (script made my screen go blank since it killed gdm i think)
@beccauwu
beccauwu / README.md
Last active September 29, 2024 16:01
type checked astro api route

Some helpers/utilities i made for dealing with Astro api routes

  • type checking for body using zod
  • helper functions for returning json/html/error/ok responses
  • request method validation

If the data to api route is contained within formdata just pass {formData: true} in options

Examples