Skip to content

Instantly share code, notes, and snippets.

View diogow3's full-sized avatar

Diogo Oliveira dos Santos diogow3

View GitHub Profile
@diogow3
diogow3 / windows-11-context-menu-fix.md
Created December 4, 2025 02:42
windows 11 context menu fix

restore old context menu

reg.exe add "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}\InprocServer32" /f /ve

restore modern context menu

reg.exe delete "HKCU\Software\Classes\CLSID\{86ca1aa0-34aa-4e8b-a509-50c905bae2a2}" /f

@diogow3
diogow3 / bypass_windows_11_microsoft_account_login.md
Created March 30, 2025 18:52
Bypass Windows 11 Microsoft Account Login

Bypass Windows 11 Microsoft Account Login

at user creation screen press SHIFT + F10 to bring up the console and type

start ms-cxh:localonly

@diogow3
diogow3 / Restore_ALL_default_New_context_menu_items.reg
Created January 3, 2025 14:12
Restore default right-click context menus on Windows 10
Windows Registry Editor Version 5.00
; Created by: Shawn Brink
; Created on: September 28th 2015
; Updated on: June 18, 2022
; Tutorial: https://www.tenforums.com/tutorials/24412-add-remove-default-new-context-menu-items-windows-10-a.html
; Library
[-HKEY_CLASSES_ROOT\.library-ms\ShellNew]
@diogow3
diogow3 / .dockerignore
Created November 5, 2024 19:35
docker ignore file
**/.classpath
**/.dockerignore
**/.env
**/.git
**/.gitignore
**/.project
**/.settings
**/.toolstarget
**/.vs
**/.vscode
@diogow3
diogow3 / autounattend.xml
Created November 4, 2024 15:37
windows 10/11 autounattend
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State">
<!--https://schneegans.de/windows/unattend-generator/?LanguageMode=Interactive&ProcessorArchitecture=amd64&BypassRequirementsCheck=true&ComputerNameMode=Random&CompactOsMode=Default&TimeZoneMode=Implicit&PartitionMode=Interactive&WindowsEditionMode=Interactive&UserAccountMode=Unattended&AccountName0=user&AccountPassword0=&AccountGroup0=Administrators&AccountName1=&AccountName2=&AccountName3=&AccountName4=&AutoLogonMode=Own&PasswordExpirationMode=Unlimited&LockoutMode=Default&HideFiles=HiddenSystem&TaskbarSearch=Hide&ShowFileExtensions=true&DisableWidgets=true&WifiMode=Interactive&ExpressSettings=DisableAll&KeysMode=Skip&ColorMode=Default&WallpaperMode=Default&RemoveOffice365=true&RemoveOneDrive=true&RemoveOneNote=true&RemoveOutlook=true&RemoveSkype=true&RemoveSolitaire=true&RemoveTeams=true&StartTilesMode=Empty&StartPinsMode=Empty&FirstLogonScript0=curl+-L
@diogow3
diogow3 / fix_nvidia_on_gnome_wayland.sh
Last active November 27, 2024 16:22
Fix Nvidia on Gnome + Wayland
echo"
options nvidia NVreg_EnableGpuFirmware=0
options nvidia Nvreg_PreserveVideoMemoryAllocations=1
options nvidia_drm modeset=1
options nvidia_drm fbdev=1
" | sudo tee -a /etc/modprobe.d/nvidia_fix.conf
[/]
animate-appicon-hover-animation-extent={'RIPPLE': 4, 'PLANK': 4, 'SIMPLE': 1}
appicon-margin=2
appicon-padding=4
available-monitors=[0]
dot-position='BOTTOM'
hide-overview-on-startup=true
hotkeys-overlay-combo='TEMPORARILY'
leftbox-padding=-1
panel-anchors='{"0":"MIDDLE"}'
@diogow3
diogow3 / remove-gamebar.ps1
Last active January 28, 2024 04:03
Remove windows 11 gamebar
# win + x
# Terminal (admin)
Get-AppxPackage Microsoft.XboxGamingOverlay | Remove-AppxPackage
@diogow3
diogow3 / replace-windows-desktop-shell-with-steam.md
Last active October 15, 2023 18:08
replace windows desktop shell with steam

Replace Windows Desktop Shell with Steam

  • Set steam to launch in big picture mode

  • Set steam as your windows shell (making it run instead of the desktop) :

  • Open regedit and navigate to HKEY_CURRENT_USER\Software\Microsoft\WindowsNT\CurrentVersion\Winlogon

  • Make a new string entry with Name=Shell and Value="[path-to-steam-folder]\steam.exe"

@diogow3
diogow3 / ssh-keys.md
Last active November 5, 2024 18:49
SSH key for Authentication and Signing commits

SSH key for Authentication and Signing commits

Generate a SSH key

ssh-keygen -t ed25519 -C "your_email@example.com"

If you are on Windows, do not rename the file