Skip to content

Instantly share code, notes, and snippets.

View AzimsTech's full-sized avatar
🖨️
git push origin main --force

Wan Muhammad Azims AzimsTech

🖨️
git push origin main --force
View GitHub Profile
@AzimsTech
AzimsTech / me_cleaner-guide.md
Last active August 6, 2022 23:23
Erasing Intel ME via internal flashing with me_cleaner & Intel FPT (MSI H81M-P33)

Erasing Intel ME via internal flashing with me_cleaner & Intel FPT (MSI H81M-P33)

Requirements

Instructions

  1. Make a full flash dump
@AzimsTech
AzimsTech / Schedule-Nvidia-30W-PowerLimit.ps1
Last active July 13, 2022 17:33
PowerShell script to create a scheduled task that sets GPU Power Limits at machine startup
# See if nvidia-smi.exe is available. If not, stop execution
$nvCmd = Get-Command -Name 'nvidia-smi' -ErrorAction SilentlyContinue -WarningAction SilentlyContinue | Select-Object -ExpandProperty Source
if ($nvCmd -eq $null) { break }
# Settings for the scheduled task
$taskAction = New-ScheduledTaskAction -Execute $nvCmd -Argument '-pl 30'
$taskTrigger = New-ScheduledTaskTrigger -AtStartup
$taskUserPrincipal = New-ScheduledTaskPrincipal -UserId 'SYSTEM'
$taskSettings = New-ScheduledTaskSettingsSet -Compatibility Win8
@AzimsTech
AzimsTech / StartupOnce.bat
Last active June 30, 2022 19:03 — forked from valinet/StartupOnce.bat
Windows 10 deployment script that runs once for each newly created user account.
echo Y|del %appdata%\microsoft\windows\recent\automaticdestinations\*
rem Uninstall Photos
:: powershell -command "Get-AppxPackage Microsoft.Windows.Photos | Remove-AppxPackage"
rem Set region to English (Malaysia), regional format to Engliish (Malaysia), add English (Malaysia) keyboard
powershell -command Set-Culture -CultureInfo ro-RO
powershell -command Set-WinHomeLocation -GeoId 167
powershell -command "$langs = Get-WinUserLanguageList; $langs.Add(\"en-MY\"); Set-WinUserLanguageList $langs -Force"
powershell -command "Set-TimeZone -Id \"Singapore Standard Time\" -PassThru"
rem Install appx packages: HEVC codec, Pride theme
powershell -command Add-AppxPackage C:\Tools\packages\Microsoft.Pride2020Flags_3.0.0.0_neutral__8wekyb3d8bbwe.Appx
@AzimsTech
AzimsTech / unattend.xml
Last active June 29, 2022 07:33 — forked from valinet/unattend.xml
Custom Windows 10 unattend.xml for Sysprep.
<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
<component name="Microsoft-Windows-Setup" processorArchitecture="amd64" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<UserData>
<AcceptEula>true</AcceptEula>
</UserData>
</component>
</settings>
<settings pass="oobeSystem">
@AzimsTech
AzimsTech / deploy.ps1
Last active June 30, 2022 22:46 — forked from valinet/deploy.ps1
Windows 10 audit mode deployment script
##########
# Win10 Initial Setup Script
# Author: Disassembler <disassembler@dasm.cz>
# Version: 1.4, 2016-01-16
##########
# Ask for elevated permissions if required
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
@AzimsTech
AzimsTech / disable-win10-lock-screen.md
Last active June 27, 2022 13:59
[GUIDE] Disable Windows 10 Lock Screen

[GUIDE] Disable Windows 10 Lock Screen

  1. Open Regedit navigate to

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\PasswordLess\Device

  1. DWORD DevicePasswordLessBuildVersion set to 0
  2. Win + R type netplwiz
  3. Uncheck Users must enter a username and password to use this computer

Research

@AzimsTech
AzimsTech / adb-commands.md
Last active May 16, 2022 22:11
ADB commands

Useful ADB Commands (for Windows)

Get device ip address

adb shell su -c 'ip route | awk '"'"'{print $9}'"'"''

List user app's package name

@AzimsTech
AzimsTech / wsl2-adb.md
Last active May 15, 2022 13:42
ADB on WSL2
  1. Install android platform tools
    sudo apt-get install android-tools-adb android-tools-fastboot

  2. Start adb in windows powershell
    adb tcpip 555

  3. Connect adb in wsl2
    adb connect :5555

@AzimsTech
AzimsTech / ReVanced-cli-install-script.md
Last active February 14, 2024 21:30
ReVanced Batch Script (for Windows user)
@AzimsTech
AzimsTech / draft.md
Last active May 12, 2022 15:53
how to share files & folders

Here's how to share files & folders in Windows:

Open Computer Management

First, you will need to open Computer Management Win + XComputer Management

computer management