Posts

POSIX Shell Parameter Expansion

Quick reference of shell parameter expansions like ${parameter-DEFAULT} or ${parameter%%pattern}.

How to Install an Old Version of Python on Debian or Ubuntu
Enable Serial/SOL Output in GNU/Linux Systems
How to Set Environment Variables in Windows

3 ways to set envionment variables in Windows.

Setup SSH Server in Windows 10 or Windows Server, Online or Offline
What is ASCIIZ

TL;DR: A null-terminated string.

Notes on UEFI Shell Scripting
Wheel Craft

A guide to install pip packages on systems without internet.

Docs

Python Projects

jsa (GitHub)

A wrapper of ipmitool, The name jsa is just a random word that isn’t an existing command.

rimesync (GitHub)

Auto deploy or syncing userdb for Rime.

runmru (GitHub)

Delete specific items from Windows runmru.

Shell Scripts

jg (GitHub)

A bunch of utilities for git daily use. Like jsa, jg is also a random word.

jenkinsbuild (GitHub)

Setup git daemon and build Jenkins with a single command.

open-with-neovim (GitHub)

Show item [Open with NeoVim] to all files, and register associations for common file types. Windows only, use it in Git Bash or Cygwin.

opal (GitHub)

A simple shell script driving sedutil-cli.

vom (Vim on Mintty) [Deprecated] (GitHub)

It turns out, in Windows, the Vim coming with Git for Windows is more convenient than gVim. This shell script makes that Vim the default editor, associates common file types to it, and add an Edit with Vim on Mintty item to right-click menu of files. Now that I migrated to NeoVim, it’s deprecated in favor of open-with-neovim.

a2 [Deprecated] (GitHub)

A simple shell script to control aria2c. Do not use it; write a systemd service instead.

Batch Scripts

Winchecksum Wrapper (GitHub)

A wrapper of winchecksum, adding winchecksum commands to right-click menu of files.

Winchecksum (GitHub)

A wrapper of certutil.exe to calculate checksums of a file.

jai (Just Archive It) (GitHub)

A batch script to compress directories to 7z archives (by adding items to right-click menu of directories).

Steam Account Switcher (GitHub)

Switch Steam account without re-entering passwords.

copyappdata (GitHub)

Copy certain portion of AppData from one Windows user to another.

tvren [Deprecated] (GitHub)

A batch script to rename files or directories. It does not support regex. Can be seen as a wrapper of ren command. For regex batch renaming tool on Windows, you may want to check out Total Commander. Regex renaming is just one tiny piece of its features.

runmru-bat [Deprecated] (GitHub)

Delete specific items from Windows runmru. It has been deprecated in favor of runmru (Python implementation).

ipmi [Deprecated] (GitHub)

A batch script to make ipmitool more handy. It was retired on November 3rd, 2021, superseded by jsa (Python implementation with more features).

checksum [Deprecated] (GitHub)

A batch script adding checksum calculation to Windows right-click menus. It has retired and been superseded by Winchecksum Wrapper.

cscratch [Deprecated] (GitHub)

A simple batch script to setup Visual Studio Build Environment, and provide some simple shortcut commands. Do not use it; get a GNU/Linux VPS/VM/WSL and use gcc instead.

cloudconf [Deprecated] (GitHub)

A batch script for syncing configurations from cloud storage for tools like Vim, Rime, Everything and SumatraPDF. For Rime, check out rimesync.

cloudsave [Deprecated] (GitHub)

Link local game save files to cloud storage services, such as OneDrive, Dropbox, or Google Drive. Retired because I don’t go to cybercafes any more.