Skip to content

Instantly share code, notes, and snippets.

Disable Device Enrollment Program (DEP) notification on macOS Monterey.md

NB! command-R is replaced with holding the power button on M1 macs.

With full reinstall (recommended)

   a. Boot into recovery using command-R during reboot, wipe the harddrive using Disk Utility, and select reinstall macOS

   b. Initial installation will run for approximately 1 hour, and reboot once

Things to do before proceeding

  • Install Roboto, and Inconsolata fonts
sudo apt install -y fonts-roboto-unhinted fonts-inconsolata
@andrewpayne68
andrewpayne68 / config_gnome_apps.sh
Created November 25, 2023 10:56 — forked from illucent/config_gnome_apps.sh
Configure GNOME applications
#To list all settings for a app
# gsettings list-recursively | sort | grep gedit | uniq
#gtk, shell, icon theme
gsettings set org.gnome.desktop.interface gtk-theme 'Arc'
gsettings set org.gnome.desktop.wm.preferences theme 'Arc'
gsettings set org.gnome.shell.extensions.user-theme name 'Arc-Dark'
gsettings set org.gnome.desktop.interface cursor-theme 'Paper'
gsettings set org.gnome.desktop.interface icon-theme 'Paper'
@andrewpayne68
andrewpayne68 / windows_update_powershell.md
Created February 10, 2024 16:01
Windows update powershell cli (PSWindowsUpdate, Get-WindowsUpdate)
@andrewpayne68
andrewpayne68 / windows-update.ps1
Last active February 12, 2024 07:05
Windows Update PowerShell Script
# ==========================================
# WINDOWS UPDATE VIA TERMINAL POWERSHELL
# ==========================================
# Written 02-2024 Andrew Payne
# Run the following command to allow execution of PowerShell Scripts:
# Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
# Check if the PSWindowsUpdate module is installed
if (!(Get-InstalledModule -Name PSWindowsUpdate)) {
@andrewpayne68
andrewpayne68 / pfSense stuck on 2.7.0.md
Last active August 31, 2024 10:17
pfSense stuck on 2.7.0

pfSense stuck on 2.7.0

At the time of writing the latest current stable pfSense CE firmware version is 2.7.2 but sometimes it is stuck at 2.7.0 and doesnt offer the update, web or CLI.

Perform a config backup (just in case) via the web interface

SSH to the IP and use the CLI menu

Attempt option 13) Update from Console , which will probably fail with a message similar to: ERROR: It was not possible to determine pfSense-upgrade remote version

@andrewpayne68
andrewpayne68 / increase-disk-linux.md
Last active October 20, 2024 17:38
Use this method to increase the disk space on Virtual Linux Server

Use this method to increase the disk space on Virtual Linux Server (Guest VM)

increase disk size on vmware console.

Then SSH to Ubuntu/Debian/Linux VM

run

cfdisk
@andrewpayne68
andrewpayne68 / macbook_pro_ubuntu_install.md
Created May 27, 2024 11:37 — forked from cjonesy/macbook_pro_ubuntu_install.md
Installing Ubuntu on MacBook Pro

Macbook Pro - Ubuntu Install

Requirements

2 USB drives > 2GB

Pre-Install

Create bootable USB drive

  1. Grab the latest Ubuntu Desktop iso image
@andrewpayne68
andrewpayne68 / UBUNTU SNAP UPDATE FIX.md
Last active August 31, 2024 10:55
UBUNTU SNAP UPDATE FIX

UBUNTU SNAP UPDATE FIX

snap-store --quit && sudo snap refresh snap-store

I too ran into the same issue. I was only able to update snap-store (Ubuntu Software) by running:

killall snap-store
sudo snap refresh snap-store