various scripts written by me
  • Python 73.1%
  • PHP 14.9%
  • Shell 12%
Find a file
Yuxuan 'fishy' Wang 6fb3b71372 py scripts: Use uv for shebang
Also migrate torrent.py to python3.
2025-09-18 00:18:17 -07:00
.gitignore Add first version of rssplus.py. 2015-07-15 23:16:50 -07:00
columbus.py py scripts: Use uv for shebang 2025-09-18 00:18:17 -07:00
convert2gpx.sh Add convert2gpx.sh 2024-11-17 16:00:50 -08:00
convertip.py py scripts: Use uv for shebang 2025-09-18 00:18:17 -07:00
doorcode.py py scripts: Use uv for shebang 2025-09-18 00:18:17 -07:00
fix-epub.py py scripts: Use uv for shebang 2025-09-18 00:18:17 -07:00
ga-rss.php ga-rss: change self link to https 2016-04-27 22:38:39 -07:00
LICENSE Fix LICENSE 2018-08-21 22:04:12 -07:00
onepwd.py py scripts: Use uv for shebang 2025-09-18 00:18:17 -07:00
pinentry-local.sh Change pinentry-local.sh to be only for Macs 2018-02-21 22:50:11 -08:00
README.md Add convert2gpx.sh 2024-11-17 16:00:50 -08:00
refresh-applications.sh Added refresh-applications.sh & update-buckversion.sh. 2015-04-26 18:08:58 -07:00
reload-gpg-agent.sh Add pinentry-local.sh and reload-gpg-agent.sh 2018-02-21 22:32:26 -08:00
resize-for-picasa.sh Add check for GraphicsMagick 2016-10-29 23:32:18 -07:00
rssplus.config.json.example Add id whitelist feature to rssplus.py. 2015-07-17 20:33:58 -07:00
rssplus.py Migrate python scripts to python3 2023-02-18 11:38:17 -08:00
start-service-until-success.sh start-service-until-success.sh: Take list of services 2019-04-06 12:16:30 -07:00
torrent.py py scripts: Use uv for shebang 2025-09-18 00:18:17 -07:00
unlink.sh + unlink.sh 2010-08-14 10:47:20 +08:00
update-buckversion.sh Added refresh-applications.sh & update-buckversion.sh. 2015-04-26 18:08:58 -07:00
UsePhoneticName.py py scripts: Use uv for shebang 2025-09-18 00:18:17 -07:00

A collection of my various scripts.

onepwd.py

A desktop companion for the chrome extension One Password.

convert2gpx.sh

Detect format from file extension then call gpsbabel to convert to GPX file.

fix-epub.py

A script to add "xml:lang" parameter to html tags within a epub file.

https://wang.yuxuan.org/blog/item/2011/01/fix-epubs

columbus.py

A script for Columbus V-900 GPS.

https://wang.yuxuan.org/blog/item/2009/04/a-script-for-columbus-v-900-gps

convertip.py

A script to convert a line contains start and end IP into IP mask format.

https://wang.yuxuan.org/blog/item/2009/04/python-script-to-convert-from-ip-range-to-ip-mask

ga-rss.php

A RSS generator for Garfield daily comic.

https://fishy.buddie5.com/item/438

UsePhoneticName.py

A script to use Phonetic Name fields in Apple Address Book to replace the Name fields.

https://fishy.buddie5.com/item/727

torrent.py

A script to add tracker(s) to a torrent.

A script to unlink symbolic links under current directory that matches a regexp.

Useful for uninstalling softwares, like TeXLive.

https://wang.yuxuan.org/blog/item/2007/01/selective-unlink-script-to-uninstall-texlive

resize-for-picasa.sh

A script to resize all jpegs on current directory for Picasa Web Album.

refresh-applications.sh

A script to put a random file under /Applications and then remove it.

Useful for putting /Applications stack onto your Mac OS X dock.

update-buckversion.sh

A script to update the .buckversion file at current directory.

rssplus.py

A python cgi to get RSS from someone's public Google+ posts.

doorcode.py

A script to generate a random code (to be used on smart locks).

pinentry-local.sh

A selector for pinentry on Mac, auto chooses pinentry-curses inside ssh sessions and chooses pinentry-mac outside of ssh sessions. It can be set as your pinentry-program inside your gpg-agent.conf file.

reload-gpg-agent.sh

Kills gpg-agent and then reload it. This helps use the different pinentry when you are switching between GUI and TTY. (ssh and local, see pinentry-local.sh above)

start-service-until-success.sh

If you are using some services depending on libsodium (e.g. php7.2-fpm) on some cloud provider (e.g. GCP), you might noticed that it fails to start upon boot. That's because cloud providers usually don't have enough entrophy for libsodium upon boot, see this GitHub issue discussion.

This script can be used to loop starting a service until it's started successfully. You can add it to your /etc/rc.local file like this (Notice the & at the end of line. It's important because you usually don't really want to block /etc/rc.local until your service was started successfully.):

# ...
/usr/local/bin/start-service-until-success.sh php7.2-fpm &
exit 0

LICENSE

All scripts licensed under BSD 3-Clause, refer to the LICENSE file for more details.

projtags.vim

To make it compatiable with pathogen.vim (or any other vim plugin manager), projtags.vim now has its own repository at:

https://github.com/fishy/projtags-vim