Skip to content

Instantly share code, notes, and snippets.

@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 9, 2026 15:45
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.

@andrewpayne68
andrewpayne68 / grub2.md
Last active November 7, 2025 15:36
Troubleshooting GRUB2

Troubleshooting GRUB2 GFX Mode

The issue of being unable to use gfxmode in GRUB2, resulting in a console-only display, typically stems from a lack of compatible video modes supported by your hardware's firmware (BIOS/UEFI) or a misconfiguration in the GRUB settings. GRUB uses VESA BIOS Extensions (VBE) to display graphics, and the maximum resolution might be lower than expected. Troubleshooting Steps: Here are the steps to diagnose and fix the issue in Ubuntu:

  1. Check Supported Video Modes in GRUB You need to determine which resolutions your system's firmware actually supports. Reboot your computer and enter the GRUB menu (you might need to hold down the Shift key or press the Esc key repeatedly during boot, depending on your setup). At the GRUB menu, press c to enter the command line interface. Type videoinfo or vbeinfo and press Enter (the exact command depends on the GRUB version; videoinfo is more common in recent Ubuntu versions).
@andrewpayne68
andrewpayne68 / ubuntu-nautilus.md
Created November 7, 2025 13:23
open the Ubuntu file manager as root

Open the Ubuntu file manager (Nautilus) as root

You can open the Ubuntu file manager as root by using

admin:// 

in the file manager's location bar or by using the terminal command sudo -H nautilus. Using admin:// is the recommended method as it is safer than running the entire application as root.

@andrewpayne68
andrewpayne68 / forky.md
Last active November 6, 2025 20:23
Change Debian 13 Trixie to Debian Sid Forky

Change Debian 13 Trixie to Debian Sid Forky

sudo nano /etc/apt/sources.list

Change "trixie" to "forky" everywhere you see it. Save and close the document.

sudo apt update

sudo apt full-upgrade