Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/norielsylvire/scripts
A collection of custom scripts
https://github.com/norielsylvire/scripts
Last synced: about 1 month ago
JSON representation
A collection of custom scripts
- Host: GitHub
- URL: https://github.com/norielsylvire/scripts
- Owner: NorielSylvire
- Created: 2023-06-07T22:33:01.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2024-05-12T10:49:29.000Z (8 months ago)
- Last Synced: 2024-05-12T11:39:34.296Z (8 months ago)
- Language: Shell
- Size: 156 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Noriel Sylvire's bash scripts
This repo contains some bash scripts I made for myself, but that are free to use by anybody.
Here is an expalantion of what each of them does:
## Memusage
> [!NOTE]
> OS: UNIX and Linux> [!WARNING]
> Incompatible: 42 Network's MacOS> [!IMPORTANT]
> Depends: `free` commandThis will print a simple line containing info about how much memory the user has in total and how much is being used.
## Norm
> [!NOTE]
> OS: UNIX, Linux and MacOS> [!IMPORTANT]
> Depends: [norminette](https://github.com/42School/norminette)42 Network has a tool for checking correct formatting of your source files, called norminette.
Norminette will print one line per file. If the file has no (detected) format errors, it will say "OK"
If that specific file has any (detected) errors, norminette will print "Error!" next to the file name,
and a line explaining what the error looks like.When you have a project with too many files in it and there are errors in only one or two files, or in none
at all, norminette will still flood the screen with filenames and paths and the word "OK" over and over.That's a little too cumbersome for the eye, so I made the norm script, which filters out any line with the
word "OK". Basically, if you have no errors, norm.sh will print "No errors" in green.
Whereas if you have one or more errors, it will print only the lines with the errors, and not the ones with "OK"
in it, and the word error will appear in red color, so that it's easier to identify and read.Example with no errors:
![Norm no errors, viewed from inside an instance of NeoVim](https://github.com/NorielSylvire/scripts/blob/master/screenshots/norm_no_errors_from_inside_neovim.png)Example with errors:
![Norm showing errors](https://github.com/NorielSylvire/scripts/blob/master/screenshots/norm_errors.png)