Skip to content

Instantly share code, notes, and snippets.

View PIPIPIG233666's full-sized avatar
🐖
Michigan Engineering

Pig PIPIPIG233666

🐖
Michigan Engineering
View GitHub Profile
@caccialdo
caccialdo / article.adoc
Last active August 29, 2026 09:20
How to reinstall Windows 11 Home on a Snapdragon X Elite device

How to reinstall Windows 11 Home on a Snapdragon X Elite device

Table of Contents
Note
As of June 2024, Snapdragon X Elite devices are still very new and support for installations of Windows on ARM by the consumers is not (yet) as straight forward as "burning" an ISO file supplied by Microsoft onto a USB drive like for their x86 counterparts. Currently, the only way to get a USB device to boot is to use an EFI partition created with diskpart or a WinPE boot drive.

What you’ll need

@allenk
allenk / deepclean.cmd
Last active August 15, 2026 22:31
⚠️ MOVED — ASUS Software Clean Up Tool → github.com/allenk/ASUS-Software-Clean-Up-Tool
@echo off
:: ============================================================================
:: ASUS Software Clean Up Tool — HAS MOVED
:: ============================================================================
::
:: This Gist is no longer maintained.
:: The tool has moved to a full repository with new features:
::
:: https://github.com/allenk/ASUS-Software-Clean-Up-Tool
::
@damico
damico / test-rocm.py
Created April 10, 2023 18:54
Script for testing PyTorch support with AMD GPUs using ROCM
import torch, grp, pwd, os, subprocess
devices = []
try:
print("\n\nChecking ROCM support...")
result = subprocess.run(['rocminfo'], stdout=subprocess.PIPE)
cmd_str = result.stdout.decode('utf-8')
cmd_split = cmd_str.split('Agent ')
for part in cmd_split:
item_single = part[0:1]
item_double = part[0:2]
@AveYo
AveYo / . Pitch Black Theme.reg
Last active August 29, 2026 13:37
Pitch Black Theme.reg - now for Ctrl+Alt+Del (and logon on 11) as well - revised 2026-05-15
Windows Registry Editor Version 5.00
; Pitch Black Theme with Gray Accent preset by AveYo
; for Ctrl+Alt+Del, Logon, Taskbar, Start Menu, Action Center (10 & 11)
; revised 2026.05.15
[HKEY_CURRENT_USER\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Accent]
"AccentColorMenu"=dword:ff000000 ; Window borders and titlebar [black]
"StartColorMenu"=dword:ff000000 ; Modals in UWP ex. Apply new refresh rate in 10 [black]
"AccentPalette"=hex:\
using namespace System.Management.Automation
using namespace System.Management.Automation.Language
if ($host.Name -eq 'ConsoleHost')
{
Import-Module PSReadLine
}
#Import-Module PSColors
#Import-Module posh-git
Import-Module -Name Terminal-Icons
@shanselman
shanselman / ohmyposhv3-v2.json
Last active August 18, 2026 10:39
ohmyposhv3-v2
{
"final_space": true,
"console_title": true,
"console_title_style": "folder",
"blocks": [
{
"type": "prompt",
"alignment": "left",
"horizontal_offset": 0,
"vertical_offset": 0,
@rojenzaman
rojenzaman / dynmotd
Last active February 7, 2026 17:12 — forked from cha55son/dynmotd
RHEL (Centos/Fedora) dynamic motd
#!/bin/bash
# Installation:
#
# 1. nano /etc/ssh/sshd_config
# PrintMotd no
#
# 2. nano /etc/profile
# /usr/bin/dynmotd # Place at the bottom
#
@Velocet
Velocet / Unlock-PowerCfg.ps1
Last active August 15, 2026 04:44
Unlock/Unhide all Power Plan Settings/Options on Windows 10/11
#Requires -RunAsAdministrator
# Unlock-PowerCfg - v22.05.11
# Disable "Connected Standby"
Set-ItemProperty -Path 'HKLM:\SYSTEM\CurrentControlSet\Control\Power' -Name 'CSEnabled' -Value 0 -Force
# Get Power Settings entries and add/set 'Attributes' to 2 to unhide
$PowerCfg = (Get-ChildItem 'HKLM:\SYSTEM\CurrentControlSet\Control\Power\PowerSettings' -Recurse).Name -notmatch '\bDefaultPowerSchemeValues|(\\[0-9]|\b255)$'
foreach ($item in $PowerCfg) { Set-ItemProperty -Path $item.Replace('HKEY_LOCAL_MACHINE','HKLM:') -Name 'Attributes' -Value 2 -Force }
@anotherlab
anotherlab / adb-32.png
Last active September 18, 2024 21:46
Quick little PowerShell script to add the ADB tools to the path
adb-32.png