This project contains the Babashka (Clojure) scripts that I use on my desktop Linux PC. You may find some of them useful.
- flip-img — Flip an image horizontally or vertically from the command line.
- imgur — Upload images to Imgur from the command line.
- new-bb — Create a new Babashka project.
- paprika-to-recipesage — Import recipes from Paprika to RecipeSage.
- postgresql-backup — Dump a postgresql database.
- resize-img — resize an image by width or percentage (maintaining aspect ratio) from the command line.
- rotate-img — rotate an image from the command line.
- scramble — encrypt or decrypt a file using a passphrase.
- snapraid-aio — All-in-one SnapRAID script for managing a DAS (Direct Attached Storage).
- youtube-download — Download YouTube videos by channel or video URL.
Every script can be run with the --help or -h option to learn how to use it.
These scripts have only been tested on Linux Mint. They should work with few or no modifications on other Linux distributions.
Each script will expect to be able to run various shell commands, and will check if those shell commands can be executed when you run the script.
$ bb build
Scripts that you can run from the command line will be built in out/. Copy these to
somewhere on your $PATH, and you'll be able to run them like any other shell script.
docs/contains Markdown documents for each script.ide-stubs/contains namespaces to eliminate errors in the IDE.out/contains the built scripts that you install.scripts/contains the Babashka scripts.src/contains namespaces used by the Babashka scripts. Think of these like libraries..gitignoredefines items that should not be versioned in the git repository.bb.edncontains project configuration, including classpath definitions, the build task, etc.
To get IntelliJ IDEA / Cursive to treat Babashka scripts correctly:
- Go to File → Settings → Editor → File Types
- Select Clojure
- Add
*.bbunder Registered Patterns - Click Apply
This ensures new .bb files open with Clojure syntax highlighting instead of plain text.
- In the Project tool window, type
file:*.bbin the search bar - Select all
.bbfiles - Right-click → Mark as Babashka script
Cursive will now resolve symbols against the Babashka runtime.