Skip to content

Instantly share code, notes, and snippets.

View LiuQixuan's full-sized avatar
🎯
Focusing

刘祺轩 LiuQixuan

🎯
Focusing
  • AIUSOFT
View GitHub Profile
@LiuQixuan
LiuQixuan / backup_config.json
Created May 15, 2024 17:26
creatDiffPackage.ps1 的配置文件
{
"$schema": "./backup_config.scheme.json",
"gameVersion": "4.6.0",
"description": "",
"copyTasks": [
{
"name": "Base",
"dir": "",
"items": [
[
@LiuQixuan
LiuQixuan / creatDiffPackage.ps1
Last active May 15, 2024 17:27
从官网下载不同服版本的差异文件并打包
#先读我
#脚本需要PowerShell 7.0+环境 在终端中执行命令: `winget install Microsoft.PowerShell` 自动安装PowerShell 7.0+
#configPath为配置文件,配置文件获取地址: https://gist.github.com/LiuQixuan/205c6f4cc38b3a45ccd8d2592155e026
$configPath = "G:\Setup\GenshinImpact\creatDiffPackage\backup_config.json"
$startPageData = [PSCustomObject]@{
title = "差异化文件创建脚本"
description = "欢迎使用差异化文件创建脚本,请按照提示一步一步操作"
gameversion = "检测到当前安装了{0},版本号为{1},路径为{2}"
@LiuQixuan
LiuQixuan / config.json
Last active May 15, 2024 16:45
CopyGameWithSybolicLink.ps1 所需的配置文件.(config.json is Configration for CopyGameWithSybolicLink.ps1)
{
"$schema": "./config.scheme.json",
"gameVersion":"4.6.0",
"copyTasks":[
{
"name":"Base",
"dir":"./",
"items":[
{
"name":"config.ini",
@LiuQixuan
LiuQixuan / CopyGameWithSybolicLink.ps1
Last active February 25, 2024 19:54
使用软链接的方式由已经安装的(国际服/国服)游戏客户端创建一个国服/国际服客户端.(Use sybolic link copy existing game folder to another HoYoverse service client.)
@LiuQixuan
LiuQixuan / deleteOldFiles.ps1
Last active September 7, 2023 02:04
[GenshinImpact][YuanShen][原神]deleteOldFiles
$deleteFilesPath = ".\deletefiles.txt"
$GamePath = "E:\Games\Genshin Impact\Genshin Impact game"
$github = "https://gist.github.com/LiuQixuan/2b829d4ebe0039efa1ed7135895c0731"
function Protect-Exit([string]$keyValue='.',[string]$addtext=''){
if($addtext -ne ''){
$addtext = "`t" + $addtext
}
$keyText = ''
if($keyValue -eq '.'){
@LiuQixuan
LiuQixuan / config(CNREL WIN).ini
Created September 6, 2023 15:49
Genshin Impact game config.ini
[General]
channel=1
cps=mihoyo
game_version=4.0.0
sub_channel=1
plugin_7_version=1.0.0
@LiuQixuan
LiuQixuan / InstallHdiff.ps1
Last active April 26, 2024 13:09
Install game_hdiff.zip for GenshinImpact
#先读我!
#$HdiffFilePath 为 升级包 完整路径
#$GamePath 为 游戏完整路径(非启动器路径)
#$ToolPath 为 hpatchz.exe 完整路径(如果有官方启动器就填写启动器完整路径,如果没有去该地址下载:https://github.com/sisong/HDiffPatch/releases)
param($HdiffFilePath="H:\GameSetup\setup\Genshine Impact\game_2.8.52_2.8.53_hdiff_tODgBJm8uenIGUX5.zip",$GamePath="H:\Games\Genshin Impact\Genshin Impact game")
$ToolPath = 'G:\ProgramFiles\hdiffpatch_v4.1.3'
$github = "https://gist.github.com/LiuQixuan/1a3810046c1152808fc9d65c699f8d8d"
$host.ui.RawUI.WindowTitle = "Install game_hdiff.zip for GenshinImpact"
@LiuQixuan
LiuQixuan / gist:323e58b3e743ccb7fbc2f5c644f82618
Last active February 25, 2024 19:55
油猴插件(从chrome插件市场下载crx文件)
// ==UserScript==
// @name 从chrome插件市场下载crx文件
// @name:en download crx from chrome extention store
// @namespace https://chrome.google.com/
// @version 0.3
// @description 给chrome插件市场页面添加一个下载crx文件的按钮
// @description:en Add a button what click to download crx from chrome extention store
// @match https://chrome.google.com/webstore/detail/*
// @author Arcret
// @license MIT
@LiuQixuan
LiuQixuan / gist:7a8683ede4b885a6df834ceeb933d1c5
Last active March 13, 2022 22:45
油猴插件(在灵梦御所显示下载链接)
// ==UserScript==
// @name 在灵梦御所显示下载链接
// @name:en Show Download info on Reimu.net
// @namespace http://reimu.net/
// @version 0.9
// @description 在灵梦御所显示使用pre标签包裹的下载链接
// @description:en Show download info what wrap by pre element on "reimu.net".
// @author AIUSoft
// @license MIT
// @supportURL https://gist.github.com/LiuQixuan/7a8683ede4b885a6df834ceeb933d1c5
@LiuQixuan
LiuQixuan / Fraction.py
Last active July 3, 2020 05:15
支持四则运算的分数类
##! %Python_Home%/python3
#-*- coding:utf-8 -*-
#@Time: 2020-07-01
#@Author: LiuQixuan
#@Email: liuqixuan@hotmail.com
#@File: Fraction.py
#@Description: Fraction 类为一个支持四则运算的分数类,构造函数接受可变长参数.表示为"分子/分母",仅支持真分
# 数假分数表示,不支持带分数表示.
# 参数说明:构造函数可接受单个字符型参数或多个整数浮点字符混合参数,但是最终处理参数不多于一个.无参数时
# 返回自然数1的分数形式.构造参数一般形态{4/5},接受浮点型{5/1.2},{3.4/1.3}, {2.7/3}等出现浮点型时自动