<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title></title>
<style>
#txt {
margin: auto;
width: 80%;
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-size: 20px;
}
#txt p {
white-space: pre-wrap;
text-indent: 2em;
}
</style>
<script>
window.addEventListener('load', () => {
txt.innerHTML = txt.innerHTML.replace(/.+/g, "<p>$&</p>")
})
</script>
</head>
<body>
<div id="txt">
将 txt 电子书的内容放在这里,并将这段代码保存成 html 文件。
用浏览器打开该 html 文件,即可开始阅读电子书。阅读体验相对于文本编辑器(如 nodepad)会有一定的提升。
txt 电子书中,段首无需空格。如果电子书中段首已经空格,可以将 css 中的 "text-indent: 2em;" 删去,以防止额外的段首缩进。
可以自由地更改 CSS 代码以获得最佳的阅读效果。
</div>
</body>
</html>
用浏览器阅读 txt 电子书
制作便携版 RPG Maker
由于 RPG Maker MV 的程序并没有管理员权限的需求,因此只要将 RPGMV 下的所有文件复制一份即可。 可以使用下面的脚本(cmd)设置关联。
@ECHO OFF
@SET HCUSC=HKEY_CURRENT_USER\Software\Classes
REG add "%HCUSC%\.rpgproject" /ve /t REG_SZ /d "RPGMV.Project" /f
REG add "%HCUSC%\RPGMV.Project" /ve /t REG_SZ /d "RPGMV Project" /f
REG add "%HCUSC%\RPGMV.Project\DefaultIcon" /ve /t REG_SZ /d "\"%~dp0RPGMV.exe\",1" /f
REG add "%HCUSC%\RPGMV.Project\shell\open\command" /ve /t REG_SZ /d "\"%~dp0RPGMV.exe\" \"%%1\"" /f
RPG Maker MZ 版:
@ECHO OFF
@SET HCUSC=HKEY_CURRENT_USER\Software\Classes
REG add "%HCUSC%\.rmmzproject" /ve /t REG_SZ /d "RPGMZ.Project" /f
REG add "%HCUSC%\RPGMZ.Project" /ve /t REG_SZ /d "RPGMZ Project" /f
REG add "%HCUSC%\RPGMZ.Project\DefaultIcon" /ve /t REG_SZ /d "\"%~dp0RPGMZ.exe\",1" /f
REG add "%HCUSC%\RPGMZ.Project\shell\open\command" /ve /t REG_SZ /d "\"%~dp0RPGMZ.exe\" \"%%1\"" /f
而 RPG Maker VX Ace 依赖于 rtp 的安装,所以需要管理员权限。
@ECHO OFF
SET "INSTALLDIR=%~dp0"
SET "INSTALLDIR=%INSTALLDIR:~0,-1%"
@SET HCUSC=HKEY_CURRENT_USER\Software\Classes
REG add "HKLM\SOFTWARE\enterbrain\rgss3\rtp" /v "rpgvxace" /t REG_SZ /d "%~dp0rtp" /f /reg:32
REG add "HKLM\SOFTWARE\enterbrain\rpgvxace" /v "applicationpath" /t REG_SZ /d "%INSTALLDIR%" /f /reg:32
REG add "%HCUSC%\.rvproj2" /ve /t REG_SZ /d "RPGVXAce.Project" /f
REG add "%HCUSC%\.rvdata2" /ve /t REG_SZ /d "RPGVXAce.Data" /f
REG add "%HCUSC%\.rgss3a" /ve /t REG_SZ /d "RPGVXAce.Archive" /f
REG add "%HCUSC%\rpgvxace.project" /ve /t REG_SZ /d "RPGVXAce Project" /f
REG add "%HCUSC%\rpgvxace.project\defaulticon" /ve /t REG_SZ /d "\"%~dp0RPGVXAce.exe\",1" /f
REG add "%HCUSC%\rpgvxace.project\shell\open\command" /ve /t REG_SZ /d "\"%~dp0RPGVXAce.exe\" \"%%1\"" /f
REG add "%HCUSC%\rpgvxace.archive" /ve /t REG_SZ /d "RGSS Encrypted Archive" /f
REG add "%HCUSC%\rpgvxace.archive\defaulticon" /ve /t REG_SZ /d "\"%~dp0RPGVXAce.exe\",3" /f
REG add "%HCUSC%\rpgvxace.archive\shell\open\command" /ve /t REG_SZ /d "\"%~dp0RPGVXAce.exe\" /n \"%%1\"" /f
REG add "%HCUSC%\rpgvxace.data" /ve /t REG_SZ /d "RPGVXAce Data" /f
REG add "%HCUSC%\rpgvxace.data\defaulticon" /ve /t REG_SZ /d "\"%~dp0RPGVXAce.exe\",2" /f
REG add "%HCUSC%\rpgvxace.data\shell\open\command" /ve /t REG_SZ /d "\"%~dp0RPGVXAce.exe\" /n \"%%1\"" /f
RPG Maker VX 版:
@ECHO OFF
SET "INSTALLDIR=%~dp0"
SET "INSTALLDIR=%INSTALLDIR:~0,-1%"
@SET HCUSC=HKEY_CURRENT_USER\Software\Classes
REG add "HKLM\SOFTWARE\enterbrain\rgss2\rtp" /v "rpgvx" /t REG_SZ /d "%~dp0rtp" /f /reg:32
REG add "HKLM\SOFTWARE\enterbrain\rpgvx" /v "applicationpath" /t REG_SZ /d "%INSTALLDIR%" /f /reg:32
REG add "%HCUSC%\.rvproj" /ve /t REG_SZ /d "RPGVX.Project" /f
REG add "%HCUSC%\.rvdata" /ve /t REG_SZ /d "RPGVX.Data" /f
REG add "%HCUSC%\.rgss2a" /ve /t REG_SZ /d "RPGVX.Archive" /f
REG add "%HCUSC%\rpgvx.project" /ve /t REG_SZ /d "RPGVX Project" /f
REG add "%HCUSC%\rpgvx.project\defaulticon" /ve /t REG_SZ /d "\"%~dp0RPGVX.exe\",1" /f
REG add "%HCUSC%\rpgvx.project\shell\open\command" /ve /t REG_SZ /d "\"%~dp0RPGVX.exe\" \"%%1\"" /f
REG add "%HCUSC%\rpgvx.archive" /ve /t REG_SZ /d "RGSS Encrypted Archive" /f
REG add "%HCUSC%\rpgvx.archive\defaulticon" /ve /t REG_SZ /d "\"%~dp0RPGVX.exe\",3" /f
REG add "%HCUSC%\rpgvx.archive\shell\open\command" /ve /t REG_SZ /d "\"%~dp0RPGVX.exe\" /n \"%%1\"" /f
REG add "%HCUSC%\rpgvx.data" /ve /t REG_SZ /d "RPGVX Data" /f
REG add "%HCUSC%\rpgvx.data\defaulticon" /ve /t REG_SZ /d "\"%~dp0RPGVX.exe\",2" /f
REG add "%HCUSC%\rpgvx.data\shell\open\command" /ve /t REG_SZ /d "\"%~dp0RPGVX.exe\" /n \"%%1\"" /f
RPG Maker XP 版:
@ECHO OFF
SET "INSTALLDIR=%~dp0"
SET "INSTALLDIR=%INSTALLDIR:~0,-1%"
@SET HCUSC=HKEY_CURRENT_USER\Software\Classes
REG add "HKLM\SOFTWARE\enterbrain\RGSS\RTP" /v "Standard" /t REG_SZ /d "%~dp0rtp" /f /reg:32
REG add "HKLM\SOFTWARE\enterbrain\RPGXP" /v "applicationpath" /t REG_SZ /d "%INSTALLDIR%" /f /reg:32
REG add "%HCUSC%\.rxproj" /ve /t REG_SZ /d "RPGXP.Project" /f
REG add "%HCUSC%\.rxdata" /ve /t REG_SZ /d "RPGXP.Data" /f
REG add "%HCUSC%\.rgssad" /ve /t REG_SZ /d "RPGXP.Archive" /f
REG add "%HCUSC%\RPGXP.Project" /ve /t REG_SZ /d "RPGXP Project" /f
REG add "%HCUSC%\RPGXP.Project\DefaultIcon" /ve /t REG_SZ /d "\"%~dp0RPGXP.exe\",1" /f
REG add "%HCUSC%\RPGXP.Project\shell\open\command" /ve /t REG_SZ /d "\"%~dp0RPGXP.exe\" \"%%1\"" /f
REG add "%HCUSC%\RPGXP.Archive" /ve /t REG_SZ /d "RGSS Encrypted Archive" /f
REG add "%HCUSC%\RPGXP.Archive\DefaultIcon" /ve /t REG_SZ /d "\"%~dp0RPGXP.exe\",3" /f
REG add "%HCUSC%\RPGXP.Archive\shell\open\command" /ve /t REG_SZ /d "\"%~dp0RPGXP.exe\" /n \"%%1\"" /f
REG add "%HCUSC%\RPGXP.Data" /ve /t REG_SZ /d "RPGXP Data" /f
REG add "%HCUSC%\RPGXP.Data\DefaultIcon" /ve /t REG_SZ /d "\"%~dp0RPGXP.exe\",2" /f
REG add "%HCUSC%\RPGXP.Data\shell\open\command" /ve /t REG_SZ /d "\"%~dp0RPGXP.exe\" /n \"%%1\"" /f
Windows 10 相关 Cheatsheet
设置 Powershell Profile:
# Load posh git
Import-Module 'D:\local\posh-git\src\posh-git.psd1'
# Customize git prompt
$s = $Global:GitPromptSettings
$s.BranchIdenticalStatusSymbol = $null
$s.BranchAheadStatusSymbol = $null
$s.BranchBehindStatusSymbol = $null
$s.BranchGoneStatusSymbol = $null
$s.BranchBehindAndAheadStatusSymbol = $null
$s.BranchBehindAndAheadDisplay = "Minimal"
$s.LocalWorkingStatusSymbol = $null
$s.LocalStagedStatusSymbol = $null
$s.WindowTitle = $null
$s.DefaultPromptAbbreviateHomeDirectory = False
设置网络属性为专用网络:
Get-NetConnectionProfile
Set-NetConnectionProfile -InterfaceIndex <index number> -NetworkCategory Private
清理组件:
dism /Online /Cleanup-Image /StartComponentCleanup /ResetBase