andrewpayne68’s gists
发布时间:2026-09-17 | 浏览:3
Instantly share code, notes, and snippets.
Sort Recently created Least recently created Recently updated Least recently updated
Recently created
Least recently created
Recently updated
Least recently updated
To stop your package manager (such as yay, pamac, or pacman) from looking for updates for Dropbox from the Arch User Repository (AUR), you must exclude the package or disable AUR search features. Here is how to hide or disable updates for Dropbox specifically:Method 1: Tell Pacman to Ignore Dropbox (Recommended)This method keeps Dropbox installed, but completely hides it from system updates.Open /etc/pacman.conf in your preferred terminal text editor with root privileges:
Look for the [options] section.Add the following line (or edit it if IgnorePkg already exists):
Save and exit (In nano, press Ctrl+O, Enter, then Ctrl+X).
To enable SSH on your CachyOS laptop, install the openssh package, start the OpenSSH daemon service (sshd), and configure your firewall to allow incoming traffic on port 22.Follow these step-by-step instructions to get it set up:1. Open the TerminalOpen your preferred terminal emulator on your CachyOS laptop (e.g., Alacritty, Konsole, or Foot).
Install and Start the SSH ServiceSince CachyOS is Arch-based, you can use the pacman package manager to quickly download and run the service.
Install and Start the SSH ServiceSince CachyOS is Arch-based, you can use the pacman package manager to quickly download and run the service.
Enter the following commands one by one: sudo pacman -S openssh sudo systemctl enable --now sshd
Enter the following commands one by one:
Clean pkg cache
Remove unused packages (orphans)
Clean cache in /home
remove old config files
Find and Remove duplicates empty files empty directories
empty directories
broken symlinks
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.
Save the install_gnome_extension.sh script to your local machine.
Save the install_gnome_extension.sh script to your local machine.
Make the script executable:
Make the script executable:
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:
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.
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.
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)"
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:
Check for Missing System Tray IconsIf Variety is running in the background but refuses to show an icon in your CachyOS s
Check for Missing System Tray IconsIf Variety is running in the background but refuses to show an icon in your CachyOS s
A complete reference for Markdown syntax supported on GitHub Gist (GitHub Flavored Markdown).
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
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:
Clear the "failed" thumbnail cache: This forces Nautilus to retry generating thumbnails for files that previously failed:
Set GDM accent colour to match GNOME Shell
Adding these lines to '/etc/gdm3/greeter.dconf-defaults'
Single Line Command:
Set kitty as the default Terminal app in Gnome 50/Ubuntu 26.04 LTS in a single command line: