FSFS is a tool designed to help manage and analyze free space within files and directories.
I was trying to test Aider (AI pair programming in your terminal) with Qwen2.5-coder thru Ollama in our local machine BestIA with two 24GB VRAM 3090.
So my excuse is to talk about the holy war about spaces vs tabs, and to show you that you can free up a lot of space from your source code using TABs. Imagine all github base code using tabs and freeing disk space, and consmuing less resources.
Proudly and Obviously coded from a programming language based on indentation with spaces, not tabs, with a style guide that prefer Spaces over tabs.
- Count whitespace in files.
- Analyze whitespace distribution in directories.
- Source code less than 2953 bytes for qr generation
-
Create a virtual environment:
python -m venv venv
-
Activate the virtual environment:
source venv/bin/activate
-
Install dependencies:
pip install -r requirements.txt
To use FSFS, you can run the fsfs.py
script with the appropriate arguments. For example:
python fsfs.py ./
Running over itself, I can free up 96 bytes
File counts for 4 and 8 consecutive spaces:
fsfs.py: 4 spaces: 54, 8 spaces: 28
test_fsfs.py: 4 spaces: 33, 8 spaces: 8
README.md: 4 spaces: 6, 8 spaces: 0
Summary:
Total files with 4 spaces: 3
Total files with 8 spaces: 2
Total occurrences of 4 spaces: 93
Total occurrences of 8 spaces: 3
You can free up 129 bytes replacing tabs for spaces.
You can download code vía QR code or distribute thru printed version
-
Download QR software
sudo apt install qrencode
-
Create QR from source code
qrencode -o fsfs_qr.png -r fsfs.py