cd /til
Add Reverb to Audio with SoX CLI
Give an audio a small-room reverb using sox
sox input.wav output.wav reverb 20 50 40 80 5 0
- Reverberance=20: low intensity for subtle reverb.
- HF-damping=50: moderate high-frequency damping for natural absorption.
- Room-scale=40: small space (e.g., office or bedroom).
- Stereo-depth=80: natural stereo spread.
- Pre-delay=5: quick reflections (5 ms) for a tight space.
- Wet-gain=0: neutral wet/dry balance.
Reduce EPUB Filesize using Python
To reduce EPUB filesize, the script extracts the EPUB, process images, and repackage it.
The following is required to run the script:
- python 3.x installed
- pillow for resizing and optimizing images
Source code: https://gist.github.com/enjinil/422480e6637e8f5619644b047c7d1a50
Example:
python compress_epub.py input.epub output.epub --max-size 800 --quality 75
Use github action to post til entry
I added the ability to use GitHub issues as a publishing platform for TIL posts in my Astro portfolio repository. This is implemented using GitHub Actions, which trigger when an issue is created or edited with a til label. The action creates a new markdown file in src/til, which is then used to generate a TIL post entry on the /til page.
Source code: https://gist.github.com/enjinil/a96390ce9743da2ae4b8fc2d6bf2e463