Skip to content

Instantly share code, notes, and snippets.

View senina4's full-sized avatar

Sean Chang senina4

  • Taiwan
View GitHub Profile
// ==UserScript==
// @name HiNet modem QR Code Bypass
// @namespace http://tampermonkey.net/
// @version 0.3
// @description Bypass HiNet modem QR Code 2FA when login as Engineering mode
// @author G36maid
// @match http://192.168.1.1/*
// @match https://192.168.1.1/*
// @grant none
// @run-at document-start
@ThioJoe
ThioJoe / DisableUSBPowerManagement.ps1
Last active September 26, 2025 21:35
PowerShell script to disable Windows power management on all currently connected serial ports, including most (if not all) USB devices and adapters.
# PowerShell script to disable Windows power management on all currently connected serial ports, including USB adapters
# In simpler terms, it prevents Windows from turning off connected serial devices to save power.
# Equivalent to right-clicking on a serial port device in Device Manager > Properties > "Power Management" Tab > Unchecking "Allow the computer to turn off this device to save power."
$hubs = Get-CimInstance -ClassName Win32_SerialPort | Select-Object Name, DeviceID, Description
$powerMgmt = Get-CimInstance -ClassName MSPower_DeviceEnable -Namespace root\wmi
foreach ($p in $powerMgmt) {
$IN = $p.InstanceName.ToUpper()
foreach ($h in $hubs) {
@wise-io
wise-io / RemoveZeroTier.ps1
Last active February 5, 2025 03:47
PowerShell script to uninstall ZeroTier One silently
# Removes ZeroTier One
$Paths = 'HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall', 'HKLM:\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall'
$ZeroTierOne = Get-ChildItem -Path $Paths | Get-ItemProperty | Where-Object { $_.DisplayName -like 'ZeroTier One' } | Select-Object
$VirtualNetworkPort = Get-ChildItem -Path $Paths | Get-ItemProperty | Where-Object { $_.DisplayName -like 'ZeroTier One Virtual Network Port' } | Select-Object
if ($ZeroTierOne) {
Write-Output 'Uninstalling ZeroTier One...'
foreach ($Ver in $ZeroTierOne) {
$Uninst = $Ver.UninstallString
cmd /c $Uninst /qn
@zoilomora
zoilomora / README.md
Last active December 3, 2025 13:40
How to disable cloud-init in Ubuntu

How to disable cloud-init in Ubuntu

Prevent start

  • Create an empty file to prevent the service from starting

      sudo touch /etc/cloud/cloud-init.disabled
    

Uninstall

@chriscandy
chriscandy / install-arch-linux-using-efi-and-grub.md
Last active November 17, 2025 07:04
Install Arch Linux using EFI and GRUB

Installing Arch linux with EFI

  1. Change keyboard layout:

    • loadkeys no
  2. Verify boot mode:

    • ls /sys/firmware/efi/efivars (If the directory exist your computer supports EFI)
  3. Ping some site on the Internet to verify connection:

  • ping archlinux.org
@traysr
traysr / l10n_IETF_Language_tags.md
Created March 8, 2012 14:58
Commonly used IETF language tags