Skip to content

Instantly share code, notes, and snippets.

@andrewpayne68
andrewpayne68 / gsettings-gnome-background.md
Last active September 13, 2025 18:57
Setting the wallpaper background padding to black in Gnome Desktop

Setting the wallpaper background padding to black in Gnome Desktop

gsettings set org.gnome.desktop.background primary-color '#000000'

@andrewpayne68
andrewpayne68 / gnome-extension-transparent-topbar.md
Created September 13, 2025 12:14
Bring back the transparent top bar in GNOME Shell with adjustable transparency
@andrewpayne68
andrewpayne68 / repair-grub.md
Last active September 14, 2025 09:14
Multi Boot Linux OS repair Grub

Multi Boot Linux repair/restore GRUB2 Bootloader Menu

If like me you have multiple Linux OS partitions on your computer/laptop hdd and you either update or reinstall one of the OS's, for some reason Grub may then boot using that OS's Grub Menu rather than the nice custom one you had configured under one of the other Linux OS's.

I have a lovely Custom Grub Menu - see first comment - which is installed under and managed by the Ubuntu OS Partition 'Grub Customizer', and when I installed the recently released Debian 13, it took over the Grub menu to it's own default/text based Grub Menu.

This was an easy fix, in the 'new' grub menu, I selected and booted to Ubuntu, then typed the following commands:

sudo grub-install
@andrewpayne68
andrewpayne68 / icons.md
Last active August 13, 2025 11:00
Steps to change application icons in Cinnamon Desktop (Mint/LMDE/Debian)

Steps to change application icons in Cinnamon Desktop (Mint/LMDE/Debian)

  1. Open a window and navigate to /usr/share/applicatons
  2. Right-click inside that window and select "Open as Root"
  3. In your "Elevated Privileges" window, right-click on "Chromium Web Browser" and select Properties
  4. Click on the icon and select the new icon

Alternative Method

@andrewpayne68
andrewpayne68 / matrix-black.xml
Last active August 20, 2025 07:20
Matrix Black Dark Theme for gedit (new format, versions 46+) copy xml file to ~/.local/share/libgedit-gtksourceview-300/styles/
<?xml version="1.0" encoding="UTF-8"?>
<!--
Author 2025 Matrix Theme by andrewpayne68 https://gist.github.com/andrewpayne68/
-->
<style-scheme id="matrix-black" name="Matrix Black" kind="dark">
<_description>A dark theme for Gedit</_description>
<!-- Matrix colors -->
<color name="background" value="#000000"/>
@andrewpayne68
andrewpayne68 / openconnect.md
Last active August 22, 2025 13:48
A bug in Debian 13 Trixie and LMDE 6 (plus other distributions using NetworkManager) can prevent the saving of usernames for OpenConnect VPN connection

A bug in Debian 13 Trixie and LMDE 6 (plus other distributions using NetworkManager) can prevent the saving of usernames for OpenConnect VPN connections

This requires that the user to re-enter them each time. This is often due to a workflow issue within NetworkManager's GUI, specifically with how it handles OpenConnect's "form:main:username" secret.

Workaround

A workaround involves using the nmcli command to directly modify the VPN connection's settings and save the username.

Open a terminal: You can use Ctrl+Alt+T.

@andrewpayne68
andrewpayne68 / vmware-linux.md
Last active September 7, 2025 15:01
Linux Mint and LMDE VM Guests Laggy when 3d graphics acceleration is enabled in VMware Workstation Pro 7.6 - Windows 11 Host / Nvidia GTX1080/RTX3070Ti

Linux Mint 22.1 and LMDE 6 VM Guests Laggy when 3d graphics acceleration is enabled in VMware Workstation Pro 7.6 - Windows 11 Host / Nvidia GTX1080/RTX3070Ti GPU

For 3D Acceleration related issues the only solution for me was add the following lines to the Linux Mint/LMDE Guest's vmx (config) file:

    mks.vk.allowMultiGPU = "TRUE"
    
    mks.forceDiscreteGPU = "TRUE"
@andrewpayne68
andrewpayne68 / openconnect.md
Created July 30, 2025 12:34 — forked from moklett/openconnect.md
OpenConnect VPN on Mac OS X

Unfortunately, the Cisco AnyConnect client for Mac conflicts with Pow. And by "conflicts", I mean it causes a grey-screen-of-death kernel panic anytime you connect to the VPN and Pow is installed.

As an alternative, there is OpenConnect, a command-line client for Cisco's AnyConnect SSL VPN.

Here's how to get it set up on Mac OS X:

  1. OpenConnect can be installed via homebrew:

     brew update
    

brew install openconnect

pip install --user pipx

pipx ensurepath

pipx install sherlock-project

pipx run sherlock-project "johndoe"

@andrewpayne68
andrewpayne68 / scp.md
Created December 14, 2024 13:06
scp root@192.168.2.19:/root/*.sh ~

scp root@192.168.2.19:/root/*.sh ~