Skip to content

Instantly share code, notes, and snippets.

Contents

  • Clean pkg cache
  • Remove unused packages (orphans)
  • Clean cache in /home
  • remove old config files
  • Find and Remove
    • duplicates
    • empty files
    • empty directories
  • broken symlinks
@andrewpayne68
andrewpayne68 / README.md
Created May 22, 2026 10:18
Script to install GNOME Extensions from local zip files

Script to install GNOME Extensions from local zip files

This bash script allows you to install GNOME extensions from a local zip file. It's a helpful tool for installing GNOME extensions from local files rather than using GNOME Extensions or other online sources.

Usage

  1. Save the install_gnome_extension.sh script to your local machine.

  2. Make the script executable:

@andrewpayne68
andrewpayne68 / variety-cachyos-kdedesktop.md
Last active May 19, 2026 19:08
Variety Wallpaper Changer struggles on KDE Plasma / CachyOS

Variety often struggles on KDE Plasma due to how the desktop environment natively handles wallpaper scripting and Wayland display sessions.To get Variety functioning on your CachyOS KDE setup, apply these three quick fixes:

  1. Configure the Correct Display ServerVariety typically relies on X11 to change wallpapers dynamically. If you are running a Wayland session, it will fail to update your background. The Fix: Log out, click on your session in the login manager (bottom left/right corner), select Plasma (X11), and log back in.

  2. Allow Variety to Trigger ScriptsBy default, KDE locks desktop widgets, preventing external applications like Variety from evaluating the set_wallpaper script. The Fix: Open your terminal and force KDE's plasmashell to unlock desktop modifications by running this command:

     qdbus org.kde.plasmashell /PlasmaShell evaluateScript "lockCorona(false)"
    
  3. Check for Missing System Tray IconsIf Variety is running in the background but refuses to show an icon in your CachyOS s

@andrewpayne68
andrewpayne68 / markdown-cheat-sheet-gist.md
Last active May 11, 2026 07:01
Gist's Markdown Cheat Sheet

GitHub Gist — Markdown Cheat Sheet

A complete reference for Markdown syntax supported on GitHub Gist (GitHub Flavored Markdown).


Headings

# H1 Heading
@andrewpayne68
andrewpayne68 / gist-openwebui.md
Last active May 10, 2026 18:39
Installing Open-WebUI and Ollama on Apple Silicon (without Docker)

Installing Open-WebUI and Ollama on Apple Silicon (without Docker)

   

If you want to learn Open-WebUI, how it works, or you want to set up a server for more than one computer on your network to access or you want maximum performance (because running Ollama in Docker for Mac doesn't use your GPU) then follow this guide. This was tested on MacOS Tahoe 26.4.1

Note: Visit my GitHub Repo to download a script to update Ollama and Open-WebUI to their latest versions https://github.com/andrewpayne68/ollama-openwebui-macos26

   

@andrewpayne68
andrewpayne68 / ubuntu-thumbnails.md
Last active May 27, 2026 17:01
After latest April 2026 update to Ubuntu 24.04 LTS, thumbnails are no longer being generated

After latest April 2026 update to Ubuntu 24.04 LTS, thumbnails are no longer being generated

Steps to fix it:

Relax the security restriction (immediate fix): Open your terminal and run:

sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0

Clear the "failed" thumbnail cache: This forces Nautilus to retry generating thumbnails for files that previously failed:

@andrewpayne68
andrewpayne68 / gdm3.md
Last active April 24, 2026 12:55
Set GDM / Login accent color to match GNOME Shell

Set GDM accent colour to match GNOME Shell

Adding these lines to '/etc/gdm3/greeter.dconf-defaults'

[org/gnome/desktop/interface]
accent-color='orange'

Single Line Command:

@andrewpayne68
andrewpayne68 / set-kitty-default-gnome50.md
Last active April 12, 2026 10:56
How to set kitty as the default Terminal app in Gnome 50/Ubuntu 26.04 LTS

Set kitty as the default Terminal app in Gnome 50/Ubuntu 26.04 LTS in a single command line:

sudo ln -s ~/.local/kitty.app/bin/kitty /usr/bin/kitty~ && gsettings set org.gnome.desktop.default-applications.terminal exec kitty
@andrewpayne68
andrewpayne68 / fix-theme.md
Last active April 24, 2026 14:10
How to fix rooted applications which do not follow system theme

How to fix applications run as root or sudo which do not follow user's theme

If you start an application, such as Nautilus or Gparted as sudo or root and it has the default GTK theme, here is a solution: simply run the following commands:

sudo ln -s ~/.themes /root/.themes
sudo ln -s ~/.icons /root/.icons
sudo ln -s ~/.fonts /root/.fonts

This will create a symbolic link for your themes, icons and fonts in the root folder for the respective folders and will allow the root applications to to use the theme that you have set.

@andrewpayne68
andrewpayne68 / cleanup.md
Last active November 18, 2025 16:16
To clean up an Ubuntu 22.04 / 24.04 server

To clean up an Ubuntu 22.04 / 24.04 Server

Package and cache cleanup

Clear the apt package cache: This removes downloaded package files that are no longer needed.

sudo apt clean

Remove unused packages: This command removes packages that were automatically installed to satisfy dependencies for other packages but are no longer needed.