Skip to content

Instantly share code, notes, and snippets.

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

Wan Azims AzimsTech

🖨️
git push origin main --force
View GitHub Profile
@AzimsTech
AzimsTech / readme.md
Last active February 22, 2023 12:51
OpenWrt 22.03.x TMNet UniFi Configurations | D-Link DIR-842 (swconfig)

OpenWrt 22.03.x TMNet UniFi Configurations | D-Link DIR-842 (swconfig)

                               _______                     ________        __
                              |       |.-----.-----.-----.|  |  |  |.----.|  |_
                              |   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
                              |_______||   __|_____|__|__||________||__|  |____|
                                       |__| W I R E L E S S   F R E E D O M
                              -----------------------------------------------------
@AzimsTech
AzimsTech / readme.md
Last active December 23, 2022 20:49
[ OpenWrt ] Restart Wifi by WPS button

Instructions

  1. Installing Hotplug Buttons

    opkg update
    opkg install kmod-button-hotplug
    
    mkdir -p /etc/hotplug.d/button
@AzimsTech
AzimsTech / readme.md
Last active November 19, 2025 20:12
OpenWrt Wireless Network Bridge (With IPv6 Support)

OpenWrt Wireless Network Bridge (With IPv6 Support)

diag0 drawio6

Goals

  • To use OpenWrt Router as a wifi adapter instead of a regular wireless card for a stronger & stable Wifi connection.
  • Use existing proprietary AP provided by ISP (Doesn't support Mesh or WDS)
@AzimsTech
AzimsTech / internet-check.sh
Last active November 26, 2022 11:23
Openwrt: D-Link DIR-842 C2 - Switch on a led when internet connection is available
# Switch on a led when internet connection is available
#!/bin/bash
#
while :
do
ping -c5 -q 8.8.8.8
status=$?;
case $status in
:: Windows 11 Config by CHEF-KOCH source: https://chef-koch.bearblog.dev/windows-11-config-by-chef-koch/
:: Remove and rebuild Font Cache
:: Some params might not work in Windows Terminal
:: This is not needed anymore in Windows Codename Nickel+.
del "%WinDir%\ServiceProfiles\LocalService\AppData\Local\FontCache\*FontCache*" /s /f /q
del "%WinDir%\System32\FNTCACHE.DAT" /s /f /q
:: Remove the old Windows Powershell v1.x version which is vulnerable
:: taskkill /im PowerShell.exe /f
@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 <[email protected]>
# 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