
A Collection of Scripts
1. Introduction
This is a collection of scripts that I use to make my day-to-day work easier.
Nothing special, just some scripts.
2. The Scripts.
Here you can download the complete archive of scripts.
All scripts are for Ubuntu Linux.
- convertTo.sh: Converting among array of different file formats,
- deleteZeroSizeFiles.sh: Recursively delete empty files and directories, explained here,
- download.sh: Try downloading files until success via a script, explained here,
- findNonASCIIchars.sh: Finding non-ASCII characters in a text file, explained here,
- githubTruncate.sh: Truncating a GitHub repository to its latest commit, deleting all previous history,
- office2pdf.sh: Converting MS Office documents to PDF, explained here,
- pdf2imgs.sh: Converting a PDF document to a series of images, explained here,
- pdfAddOcrLayer.sh: Adding an OCR-based text layer to a PDF or on top of an image, explained here,
- runWithLimits.sh: Limiting the memory and CPU cores of a command, explained here,
- scalePdf.sh: (Down-)Scaling the images in a PDF, explained here,
- shutDown.sh: Shut down the computer after running update.sh (uses the internal script __shutDown.sh),
- tryForever.sh: Repeating a command until it succeeds, explained here,
- update.sh: Updating all packages and snaps, explained here,
- vec2vec.sh: Converting among vector graphics formats, explained here,
- xzCompress.sh: Compressing files and folders into XZ archives, explained here,
- zipCompress.sh: Compressing files and folders into ZIP archives, explained here, and
- Setup scripts for installing rootless Docker in China, as explained here.
3. License
Copyright (C) 2026 Thomas Weise (汤卫思教授)
Dr. Thomas Weise (see Contact) holds the copyright of these scripts.
The scripts are provided to the public as open source software under the GNU GENERAL PUBLIC LICENSE, Version 3, 29 June 2007.
All scripts and programs here are free software: you can redistribute them and/or modify them under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
All scripts and programs here are distributed in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with them.
If not, see https://www.gnu.org/licenses/.
If you have any questions or suggestions, please contact
Prof. Dr. Thomas Weise (汤卫思教授) of the
School of Artificial Intelligence and Big Data (人工智能与大数据学院) at
Hefei University (合肥大学) in
Hefei, Anhui, China (中国安徽省合肥市) via
email to tweise@hfuu.edu.cn with CC to tweise@ustc.edu.cn.