Skip to content

Instantly share code, notes, and snippets.

Avatar
🏠
Working from home

icedterminal icedterminal

🏠
Working from home
View GitHub Profile
View SearchRebuild.ps1
# This checks if PowerShell is admin role. If not an admin, consent is prompted before the rest of the script is ran.
# YOU NEED ADMIN RIGHTS!
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit }
# End File Explorer so system icon cache can be deleted.
taskkill /f /im explorer.exe
# Delete recent and icon cache.
# We are deleting recents here so start menu jump lists can be reset.
# And then of course icon cache.
@icedterminal
icedterminal / EdgeLockdown.ps1
Last active Nov 12, 2020
Prevent installing "New" Edge
View EdgeLockdown.ps1
# If you're an IT / Systems Admin and need to prevent users from installing the "new" Edge, run this script on each computer.
# Standard users can still install Edge to their profile folder.
# This script removes access to the folders needed to install and run Edge. The installer will simply fail.
# UNINSTALL EDGE FIRST!
# Right click this file and select "Run with PowerShell"
# This checks if PowerShell is admin role. If not an admin, consent is prompted before the rest of the script is ran.
# YOU NEED ADMIN RIGHTS!
if (!([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) { Start-Process powershell.exe "-NoProfile -ExecutionPolicy Bypass -File `"$PSCommandPath`"" -Verb RunAs; exit }
View teredo.reg
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\TCPIP\v6Transition]
"Teredo_State"="Client"
"Teredo_ServerName"="win1910.ipv6.microsoft.com"
"Teredo_RefreshRate"=dword:0000001e
"Teredo_DefaultQualified"="Enabled"
"Teredo_ClientPort"=dword:00000000
@icedterminal
icedterminal / vmxfile.md
Last active Oct 11, 2020
Hide VM status in guest OS (VMWare)
View vmxfile.md

Hide VM Identification in VMWare (Stealthy)

Tested using WorkStation Pro 16.x, Windows host and guest in UEFI mode, using an Intel CPU.

  1. Create a Windows 10 VM.
  2. Edit VM settings Processor section. Enable (tick) these:
    • Virtualize Intel VT-x/AMD-V
    • Virtualize CPU Performance Counters
    • Virtualize IOMMU
  3. Install Windows 10 in VM.
View 0.txt
0x33CF1 Form: View/Configure CPU Lock Options, FormId: 0x2734 {01 86 34 27 24 07}
0x33CF7 One Of: CFG Lock, VarStoreInfo (VarOffset/VarName): 0x502, VarStore: 0x1, QuestionId: 0x254, Size: 1, Min: 0x0, Max 0x1, Step: 0x0 {05 91 C7 08 C8 08 54 02 01 00 02 05 10 10 00 01 00}
0x33D08 One Of Option: Disabled, Value (8 bit): 0x0 {09 07 04 00 00 00 00}
0x33D0F One Of Option: Enabled, Value (8 bit): 0x1 (default) {09 07 03 00 30 00 01}
0x33D16 End One Of {29 02}
0x33D18 One Of: Overclocking Lock, VarStoreInfo (VarOffset/VarName): 0x5B1, VarStore: 0x1, QuestionId: 0x255, Size: 1, Min: 0x0, Max 0x1, Step: 0x0 {05 91 C3 08 C4 08 55 02 01 00 B1 05 10 10 00 01 00}
0x33D29 One Of Option: Disabled, Value (8 bit): 0x0 (default) {09 07 04 00 30 00 00}
0x33D30 One Of Option: Enabled, Value (8 bit): 0x1 {09 07 03 00 00 00 01}
0x33D37 End One Of {29 02}
0x33D39 End Form {29 02}
@icedterminal
icedterminal / entry.txt
Created Feb 25, 2020
Custom block filters. Add these to ad/content blocking extension.
View entry.txt
Video Sources that autoplay
-----------------------------------
*.anyclip.com
https://x.kinja-static.com/assets/new-client/videojs.*
View uwpcommands.ps1
# You've already noticed 10 comes preloaded with apps you won't use or don't need. Most can be removed safely.
# Others should be left alone! There are also other useful commands found at the bottom of this page.
# To uninstall pre-installed Windows 10 UWP apps, you can enter the commands below in Powershell as Admin.
# I have excluded the command to uninstall Snip and Sketch.
# In a future build, it will be your only option as the win32 based Snipping Tool will be removed.
# These apps are safe to remove:
# If you want to remove Zune Video and Music, use Zune. Otherwise, specify which one you want to remove.
get-appxpackage -allusers *zune* | remove-appxpackage -verbose
@icedterminal
icedterminal / overrides.css
Last active Mar 6, 2020
css overrides for wowhead
View overrides.css
/* https://chrome.google.com/webstore/detail/custom-style-script/ecjfaoeopefafjpdgnfcjnhinpbldjij */
/* wowhead.com */
.sidebar-wrapper {display:none !important;}
.sidebar {display:none !important;}
.blocks {display:none !important;}
.element-highlight-dialog {display:none !important;}
.element-highlight-highlighter {display:none !important;}
div#page-content {margin:0;padding:0;}
.news-recent-content {display:none !important;}
@icedterminal
icedterminal / terminal.sh
Last active Nov 10, 2020
Helpful macOS commands
View terminal.sh
#!/bin/bash
# Mount EFI
sudo diskutil mount EFI
# Rebuild Kextcache
sudo kextcache -i /
# Disable Gatekeeper. Allow apps from anywhere, unsigned
sudo spctl --master-disable
View elvui_threebar.lua
-- With a new installation, DO NOT setup yet. Just click X on the installation screen.
-- /ec > Import into ElvUI under Profile section.
-- /reload > Again, DO NOT setup yet. Just click X on the installation screen.
-- /ec > Under Profiles, choose your character name.
-- /reload > Just click X on the installation screen.
-- /ec > Under profiles, COPY from ICEDTERMINAL. Close settings.
-- /reload
-- Now go through the install. If it doesn't show, /ec > Install at bottom. ONLY click 'Setup cvars', 'Setup chat' and 'Use Class Colors'.
-- This ensures the imported profile is untouched by any specific class variables.
You can’t perform that action at this time.