Skip to content

Instantly share code, notes, and snippets.

View zehuanli's full-sized avatar

Zehuan Li zehuanli

View GitHub Profile
@zehuanli
zehuanli / Azure-allow-IPs-from-a-list-file.ps1
Last active May 9, 2024 20:32
Azure allow IPs from a list file
# Resource group and NSG name
$resourceGroupName = 'RESOURCE_GROUP_NAME'
$nsgName = 'NETWORK_SECURITY_GROUP_NAME'
# Path to the file containing IP ranges
$ipRangesFile = 'IP_RANGE_FILE_PATH'
# Read IP ranges from file
$ipRanges = Get-Content $ipRangesFile
@zehuanli
zehuanli / hisense-hdmi-intents.txt
Created February 10, 2023 05:47
Hisense Android TV Change HDMI Intents
HDMI 1:
am start -a android.intent.action.VIEW -d content://android.media.tv/passthrough/com.mediatek.tvinput%2f.hdmi.HDMIInputService%2fHW4 -n com.mediatek.wwtv.tvcenter/.nav.TurnkeyUiMainActivity
HDMI 2:
am start -a android.intent.action.VIEW -d content://android.media.tv/passthrough/com.mediatek.tvinput%2f.hdmi.HDMIInputService%2fHW5 -n com.mediatek.wwtv.tvcenter/.nav.TurnkeyUiMainActivity
HDMI 3:
am start -a android.intent.action.VIEW -d content://android.media.tv/passthrough/com.mediatek.tvinput%2f.hdmi.HDMIInputService%2fHW6 -n com.mediatek.wwtv.tvcenter/.nav.TurnkeyUiMainActivity