Skip to content

Instantly share code, notes, and snippets.

View Chenx221's full-sized avatar
๐ŸŸ
Focusing?

Chenx221 Chenx221

๐ŸŸ
Focusing?
View GitHub Profile
@Chenx221
Chenx221 / readme.md
Created October 11, 2025 07:12
Fix for HPE USB Key Utility for Windows Not Detecting Large-Capacity USB Drives (>32GB)

The USB Key Utility for Windows only lists removable drives with a capacity of less than 33,000 MB by default.

However, in 2025, itโ€™s quite difficult to find a USB drive that small.

You can follow the steps below to remove this unnecessary limitation:

  1. Download the latest USB Key Utility for Windows v3.0.0.0 from HPE. You donโ€™t need to log in to your account to get it.
  2. Prepare a hex editor (Iโ€™ll use 010 Editor as an example below โ€” this is not an ad).
  3. Open usbkey.exe in the hex editor, press Ctrl+G and navigate to offset 0x6D56. Starting from that position, the next 2 bytes should be 77 35.
  4. Replace both bytes with 90 90, then save the file.
@Chenx221
Chenx221 / patch.1337
Last active July 20, 2025 11:27
udm pro 2.3.2 patch
>makeudm.exe
00011BA4:74->EB
00011C1A:74->EB
@Chenx221
Chenx221 / config_1.10.json
Last active February 9, 2025 10:14
Self-use sing-box config
{
"log": {
"disabled": false,
"level": "info",
"timestamp": true
},
"experimental": {
"clash_api": {
"external_controller": "127.0.0.1:9090",
"external_ui": "metacubexd",
@Chenx221
Chenx221 / config.yaml
Last active September 25, 2025 12:55
Self-use Clash configuration file
mixed-port: 7890 # HTTP(S) ๅ’Œ SOCKS ไปฃ็†ๆททๅˆ็ซฏๅฃ
allow-lan: true # ๅ…่ฎธๅฑ€ๅŸŸ็ฝ‘่ฟžๆŽฅ
external-controller: 0.0.0.0:9090
geodata-mode: true
geo-auto-update: true # ๆ˜ฏๅฆ่‡ชๅŠจๆ›ดๆ–ฐ geodata
geo-update-interval: 24 # ๆ›ดๆ–ฐ้—ด้š”๏ผŒๅ•ไฝ๏ผšๅฐๆ—ถ
geox-url:
geoip: "https://git.chenx221.cyou/Public-Mirror/v2ray-rules-dat/raw/branch/release/geoip.dat"
geosite: "https://git.chenx221.cyou/Public-Mirror/v2ray-rules-dat/raw/branch/release/geosite.dat"
@Chenx221
Chenx221 / PublicKeyCredentialSourceRepository.php
Created March 17, 2024 09:22
Yii2, Webauthn Framework (Part 4)
<?php
namespace app\models;
use JsonException;
use Webauthn\PublicKeyCredentialSource;
use Yii;
use yii\db\ActiveQuery;
use yii\db\ActiveRecord;
@Chenx221
Chenx221 / WebauthnInfo.php
Created March 17, 2024 09:19
Yii2, Webauthn Framework (Part 3)
<h5>
<i class="fa-solid fa-key"></i>
Webauthn
</h5>
<div class="input-group" id="totp_area">
<input type="text" class="form-control" placeholder="New Name" aria-label="New Name" name="fido_name"
id="fido_name">
<?= Html::button('Add', ['id' => "webauthn_add", 'type' => 'button', 'class' => 'btn btn-primary btn-sm']) ?>
<?= Html::button('Verify', ['id' => "webauthn_verify", 'type' => 'button', 'class' => 'btn btn-primary btn-sm']) ?>
</div>
@Chenx221
Chenx221 / Webauthn.js
Created March 17, 2024 09:15
Yii2, Webauthn Framework (Part 2)
const { startRegistration } = SimpleWebAuthnBrowser;
const elemBegin = document.getElementById('webauthn_add');
const elemSuccess = document.getElementById('webauthn_success');
const elemError = document.getElementById('webauthn_error');
elemBegin.addEventListener('click', async () => {
elemSuccess.innerHTML = '';
elemError.innerHTML = '';
elemSuccess.parentElement.hidden = true;
elemError.parentElement.hidden = true;
@Chenx221
Chenx221 / WebauthnController.php
Created March 17, 2024 09:11
Yii2, Webauthn Framework (Part 1)
public function actionCreateCredentialOptions(): Response
{
$id = Yii::$app->params['domain'];
$user = Yii::$app->user->identity;
$rpEntity = PublicKeyCredentialRpEntity::create(
'NetDisk Application',
$id
);
$userEntity = PublicKeyCredentialUserEntity::create(
$user->username,
@Chenx221
Chenx221 / hosts
Last active September 7, 2023 02:25
Adobe Hosts
127.0.0.1 ij0gdyrfka.adobe.io
127.0.0.1 23ynjitwt5.adobe.io