Skip to content

Instantly share code, notes, and snippets.

@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

@andrewpayne68
andrewpayne68 / winboard-docker.md
Last active October 27, 2025 09:27
How To Install WinBoat on Ubuntu/Debian-based Distros

Download and installed WinBoat on Ubuntu/Debian-based Distros

Download and install deb: https://winboat.app

Tip: Download the deb file and use ''sudo apt install ./winboat-XXXX-amd64.deb'' to automatically install dependencies

Install Docker

Remove Conflicting Packages:

@andrewpayne68
andrewpayne68 / 365-powershell.md
Last active October 19, 2025 11:10
Manage MS 365 Exchange via PowerShell

Manage MS 365 Exchange via PowerShell (must be run as local admin).

Perform these commands once:

Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force

Install-Module -Name ExchangeOnlineManagement

Import-Module ExchangeOnlineManagement
@andrewpayne68
andrewpayne68 / remote-lock.md
Created October 19, 2025 11:04
Remotely lock Windows

Remotely Lock Windows

Click Start, Run

Rundll32.exe user32.dll,LockWorkStation

@andrewpayne68
andrewpayne68 / store.cmd
Created October 19, 2025 11:02
Enable Windows Store for Windows Server, Windows 10 LTSC and Windows 11 LTSC
wsreset -i
pause
@andrewpayne68
andrewpayne68 / asus-cleanup.cmd
Created October 19, 2025 11:00
Windows Script to clean up and remove all ASUS software
@echo off
:: ------------------------------------------------------------------------------------------------------------
:: Clean Up ASUS All
:: ------------------------------------------------------------------------------------------------------------
:: The tool helps to clean up all ASUS software from system
:: ------------------------------------------------------------------------------------------------------------
:: Before running the tools,
:: 1. Complete backup your system.
:: 2. Disable ASUS Apps from BIOS (MyASUS and Armoury)
:: 3. Run ASUS remove tools (Armoury Crate Uninstall Tool.exe, or geek_uninstall.exe).
@andrewpayne68
andrewpayne68 / winutil.md
Last active October 19, 2025 10:35
Chris Titus Tech's Windows Utility

Chris Titus Tech's Windows Utility

Winutil must be run in Admin mode because it performs system-wide tweaks. To achieve this, run PowerShell as an administrator.

Right-click on the start menu, choose "Windows PowerShell (Admin)" (for Windows 10) or "Terminal (Admin)" (for Windows 11).

Launch Command

irm "https://christitus.com/win" | iex