Skip to content

Instantly share code, notes, and snippets.

View LiuJiewenTT's full-sized avatar

刘杰文 LiuJiewenTT

View GitHub Profile
@LiuJiewenTT
LiuJiewenTT / grepbel.sh
Created December 4, 2025 01:28
grep铃(grepbel, a bel for grep)。发现目标字符串就让终端响铃。不过滤、彩色显示、按行输出、从管道接收待匹配文本。
#!/bin/bash
# 描述: 发现目标字符串就让终端响铃。不过滤、彩色显示、按行输出、从管道接收待匹配文本。
# 用法: grepbel "关键字"
# Developed by LiuJiewenTT (https://github.com/LiuJiewenTT).
keyword="$1"
# 从标准输入逐行读取
# 使用 --line-buffered 保证流式输出
grep --line-buffered --color=always -E "$keyword|$" |
@LiuJiewenTT
LiuJiewenTT / rename-pack.bat
Created June 11, 2025 01:29
Help rename the texture pack with minecraft version, upscaled by BalintCsala's script named as "resizer.jar", demanded by weed-eater texture pack.
@set /p version_name=Please enter version name:
@echo Version Name: %version_name%
@choice /M "Confirm"
@if ERRORLEVEL 2 (
goto :eof
) else if ERRORLEVEL 1 (
echo Confirmed. Renaming...
ren "pack.zip" "vanilla_upscaled_pack-%version_name%.zip"
)
@pause
@LiuJiewenTT
LiuJiewenTT / replace2.ps1
Created May 28, 2025 14:59
Bring back my Win10 default Local Account Photo and remove low resolution Win11 garbage default user photo for my Win10 PC.
# 1. 获取当前用户 SID
$SID = ([System.Security.Principal.WindowsIdentity]::GetCurrent()).User.Value
$targetDir = "C:\Users\Public\AccountPictures\$SID"
$sourceDir = "C:\ProgramData\Microsoft\User Account Pictures"
Write-Output "targetDir = $targetDir"
Write-Output "sourceDir = $sourceDir"
# 可选资源列表(按优先级从高到低)
@LiuJiewenTT
LiuJiewenTT / CBJQ_KickoffWorldwideServerConfigConfliction.bat
Created January 21, 2025 03:26
CBJQ_KickoffWorldwideServerConfigConfliction.bat
@echo Deleting server configuration file that causes confliction between worldwide server and homeland server: [%LOCALAPPDATA%\Game\Saved\PersistentDownloadDir\startup.settings]
del "%LOCALAPPDATA%\Game\Saved\PersistentDownloadDir\startup.settings"
@pause
@LiuJiewenTT
LiuJiewenTT / tt.vtoy.unwrap.bat
Created October 26, 2024 05:53
这两个Windows的bat脚本可以把ventoy的.vtoy变成不带.vtoy,这样就可以被虚拟机软件启动了。(附带还原成.vtoy脚本)
ren "%~1" "%~n1"
dir "%~dp1" | findstr /E /C:"%~n1"
@LiuJiewenTT
LiuJiewenTT / Enya_Off.bat
Last active May 16, 2024 15:15
CBJQ-EnyaSwitch
@chcp 65001
@REM "把这个文件放在Snow\文件夹下"
@echo 请务必确保您使用管理员权限运行此脚本(即当前用户拥有权限)。
echo localization = 0>data\localization.txt
@if ERRORLEVEL 1 @(
echo "禁用失败"
) else (
echo "禁用成功"
@LiuJiewenTT
LiuJiewenTT / vnam.bat
Created August 14, 2023 12:40
Vitual Network Adapter Manager
@echo off
if not defined str_pattern (
set str_pattern=VMware Network Adapter
)
set "action=%1"
if /I "%action%" == "" (
echo. Need a selected action.
call:help
@LiuJiewenTT
LiuJiewenTT / createplus-1.18.2_v0.5.1a-for_create_0.5.1.jar.md
Created July 10, 2023 10:14
[Minecraft/Forge/Create]: CreatePlus(CreateGoggles) (1.18.2 v0.5.1a) compatibility for create 0.5.1+

image CreatePlus

A cracked version that change the compatibility from create 0.5 to create 0.5.1.

My work is ready to download and you can see the attachment.

The original project (under MIT License) is: https://github.com/Robocraft999/CreateGoggles.

This work is also under MIT License: