Skip to content

Instantly share code, notes, and snippets.

Avatar

Hui-Shao hui-shao

View GitHub Profile
@hui-shao
hui-shao / ipv6or4_priority.bat
Created Jun 3, 2022
IPv6 / IPv4 优先级选择
View ipv6or4_priority.bat
@echo off
title IPv4 / IPv6 优先级选择工具
mode con lines=12 cols=48
color 8f
REM ________________________________________________________________
>nul 2>&1 "%SYSTEMROOT%\system32\cacls.exe" "%SYSTEMROOT%\system32\config\system"
if '%errorlevel%' NEQ '0' (
@hui-shao
hui-shao / c_problem_1.c
Created Apr 29, 2022
谭式C语言阴间问题之一
View c_problem_1.c
#include<stdio.h>
int main(){
unsigned short score = -1;
printf("%u\n",score);
while(score++<13){
score += score+++ ++score;
score = --score + score ++;
}
printf("%u\n",score);
@hui-shao
hui-shao / ass_to_mov.bat
Created Feb 14, 2021
Convert ass subtitles to mov video format
View ass_to_mov.bat
@echo off
REM 功能:封装 ass字幕为mov格式(透明背景),支持导入Pr
REM 作者:Hui-Shao
REM 注意: 修改相应参数
title 封装 ass字幕 为 mov By Hui-Shao
echo.
echo 请确认ass字幕文件位于脚本所在目录下, 并命名为 subtitle.ass
echo 请确认你已经 右键-编辑并修改好该脚本文件的ffmpeg命令参数
echo.