This repo contains some bash script that I have developed during the years. They don't do anything really important, but they help me automatize some of the things I do and I would be sad if they were somehow lost.
All of them are located in the scripts folder and can be run just by calling them in a POSIX terminal such as ./scriptname or sh scriptname.
Some of them will need additional programs installed in your machine, while others will accept parameters. Check the description here below to understand what they need and how they work.
Produces a binaural noise in your headphones (needed!). Binaural tones are proven to help in certain circumstances, such as sleep, focus, or stimulating creativity.
This script requires sox in order to work.
Use:
binauralwill play a binaural tone with default settingsbinaural -hshows help and default settingsbinaural [mode] [frequency] [harmonics]will play a binaural tone with the specified settings. Refer to the help for more information on the parameters
Produces a GIF and a .mp4 video coded in x264 from a folder full of images in .png format.
All the images must be named in the format 0000000.png, 0000001.png, etc.
Use:
makevideowill make a video from all the images in theframessubfoldermakevideo [path]will make a video from all the images in the provided pathmakevideo [path] [output_video] [output_gif]will make a video and a gif from all the images in the provided path, with the provided names
Makes a mixture of white and pink noise to have some background sound.
This script requires sox in order to work.
Use:
noisewill play noise on a loop
Gives a little color to your terminal. Pipe any command into it or call a command with it to have a rainbow effect on the output.
Use:
command | rainbowwill print the output of the command with a rainbow effect
Fills a file with random ASCII characters.
Use:
randomfile -hshow script help and default valuesrandomfile [path] [cols] [rows]will fill the file at the provided path with random ASCII characters. The file will becolscolumns wide androwslong.- if
colsis not provided, it will be set to 80 - if
rowsis not provided, it will be set to 40
- if
Loops over all the subfolders of the current working directory and shows which of them contains uncommitted changes.
This script requires git in order to work.
Use:
uncommitted -hshows help and default settingsuncommitted -soruncommitted --show-cleanwill show also the folders that don't have uncommitted changes. By default, only the folders with uncommitted changes are shown.uncommitted -uoruncommitted --show-uninitializedwill show also the folders that are not git repositories. By default, only the folders that are git repositories are shown.uncommitted -aoruncommitted --auto-commitwill auto commit and push all the uncommitted changes. By default, this option is not active.- all the uncommitted data will be pushed into a new branch called
auto-commit-<timestamp>
- all the uncommitted data will be pushed into a new branch called
- The parameters can be combined together
Updates the system using the apt package manager.
This script requires apt in order to work (provided by Debian, Ubuntu, and other Debian-based distros)
This project and all the scripts inside it are distributed under MIT license.