Skip to content

Instantly share code, notes, and snippets.

View hl2guide's full-sized avatar
🫒
stuck in a for loop

Dean hl2guide

🫒
stuck in a for loop
  • Australia
View GitHub Profile
@hl2guide
hl2guide / update_debian_linux.sh
Last active April 2, 2022 03:51
A bash script that updates Debian-based linux distros.
#!/bin/sh
sudo apt-get update && sudo apt-get upgrade --yes && sudo apt autoremove --yes && echo ✅ UPDATES COMPLETED
@hl2guide
hl2guide / settings.json
Created March 28, 2022 16:45
Windows Terminal Settings - Full Acrylic
{
"$help": "https://aka.ms/terminal-documentation",
"$schema": "https://aka.ms/terminal-profiles-schema",
"actions":
[
{
"command":
{
"action": "copy",
"singleLine": false
@hl2guide
hl2guide / linux_remove_libreoffice.md
Last active March 25, 2022 05:38
Removes LibreOffice from common linux distros.

Pop! OS, Zorin (Debian based)

sudo apt purge -y libreoffice*
@hl2guide
hl2guide / linux_commands_to_update.md
Last active March 26, 2022 15:01
Terminal Commands that update and clean up old versions of all installed packages on popular Linux distros.

Distros

Linux Mint, Zorin or Pop!_OS (Debian based)

sudo apt-get update && sudo apt-get upgrade --yes && sudo apt autoremove --yes && echo ✅ UPDATES COMPLETED

Manjaro (Arch based)

This file has been truncated, but you can view the full file.
2022/02/11 00:05:15.2168636 1500 13468 Agent Earliest future timer found:
2022/02/11 00:05:15.2168745 1500 13468 Agent Timer: 29A863E7-8609-4D1E-B7CD-5668F857F1DB, Expires 2022-02-11 10:10:19, not idle-only, not network-only
2022/02/11 00:05:16.2179971 1500 14340 Shared UninitializeSUS
2022/02/11 00:05:16.2179981 1500 14340 Misc CSusClientGlobal::DoServicePreShutdown
2022/02/11 00:05:16.2180268 1500 14340 IdleTimer Idle timer disabled in preparation for service shutdown
2022/02/11 00:05:16.2180314 1500 14340 Misc WUTaskManager uninit
2022/02/11 00:05:16.2180330 1500 14340 Agent Earliest future timer found:
2022/02/11 00:05:16.2180473 1500 14340 Agent Timer: 29A863E7-8609-4D1E-B7CD-5668F857F1DB, Expires 2022-02-11 10:10:19, not idle-only, not network-only
2022/02/11 00:05:16.2212705 1500 14340 Misc CreateSessionStateChangeTrigger, TYPE:2, Enable:No
2022/02/11 00:05:16.2212735 1500 14340 Misc C
@hl2guide
hl2guide / check_ISO_checksum.ps1
Created January 31, 2022 09:14
A PowerShell script that checks the checksum of one or more linux ISO files for four common Linux distros. Supports: POP!_OS, Mint, Manjaro and Ubuntu.
# A PowerShell script that checks the checksum of one or more linux ISO files for four common Linux distros.
# Supports: POP!_OS, Mint, Manjaro and Ubuntu
# - It's faster and more accurate than manually checking.
# - Be sure to download the ISO files solely from the official sites!
# - To be clear this DOES NOT also check GPG signatures.
$isoFolder = "C:\VMs\ISOs\"
# Checks the ISO folder exists
@hl2guide
hl2guide / adblocker_list.txt
Created October 7, 2021 23:40
Custom Adblocker List
[Adblock Plus 2.0]
! Version: 1.0.1
! Title: Dean Custom List
! Last modified:
! Expires: 4 days (update frequency)
@@||ajax.googleapis.com^
@@||ajax.aspnetcdn.com^
@@||ajax.microsoft.com^
@@||cdnjs.cloudflare.com^
@hl2guide
hl2guide / clear_visual_studio_code_caches.ps1
Last active July 20, 2024 01:04
PowerShell script that clears Visual Studio Code User Data caches. Code.exe must be closed and $userdataFolder must match your system. Can improve slow performance and free up disk space.
# Clears the Visual Studio Code User Data caches
# Backup your Visual Studio Code user folder before running!
# === Start Edit
$userdataFolder = "C:\Portable Software\PortableApps\PortableApps\Visual Studio Code\data\user-data"
# === End Edit
$cacheFolder = $userdataFolder + "\Cache"
$cachedDataFolder = $userdataFolder + "\CachedData"
@hl2guide
hl2guide / python_fix_warnings_invalid_distribution.md
Last active May 16, 2022 11:01
How to fix Python when you get messages like: WARNING: Ignoring invalid distribution -ip (c:\python39\lib\site-packages)

How to fix Python when you get messages like:

WARNING: Ignoring invalid distribution -ip (c:\python39\lib\site-packages)

Since Python is messy in the way it handles packages you sometimes need this fix.

This can happen when a package fails to install (reason may be permissions based).

Steps for Windows OS

@hl2guide
hl2guide / aria2.conf
Last active April 1, 2023 06:23
aria2 config for 2023
# Ref: https://aria2.github.io/manual/en/html/aria2c.html
# Ref: https://trackerslist.com/#/?id=aria2
# Basic Options
dir=C:\Users\Dean\Downloads\Aria2-Downloads
max-concurrent-downloads=1
max-overall-download-limit=4500K
max-overall-upload-limit=1K
check-integrity=true