PPSS
hasura-ci-cd-action
Our great sponsors
PPSS | hasura-ci-cd-action | |
---|---|---|
2 | 2 | |
104 | 35 | |
- | - | |
10.0 | 0.0 | |
almost 5 years ago | 9 months ago | |
Shell | Shell | |
- | - |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
PPSS
- GNU Parallel, where have you been all my life?
-
Bash functions are better than I thought
At one time, I did learn myself to write shell scripts. I even wrote this 3Kl line monstrosity [0]
However, I would strongly advice to master a proper programming language. I respect the article and the efforts of the author, but I feel that it is the past.
I mastered Python a bit and the ability to just use things like dictionaries, proper parsing libraries and such, instead of kilometers of fragile pipes, it is so much better.
I understand something like Python may feel total overkill, but that 10 line shell script suddenly needs quite a bit of error handling and some other features and before you know it, you wish you started out with python or something similar.
[0]: https://github.com/louwrentius/ppss
hasura-ci-cd-action
-
Bash functions are better than I thought
I write a LOT of bash/shell scripts. And I don't like it, it's just part of what I have to do.
Learning a handful of bash idioms and best-practices has made a massive impact for me, and life much easier. The shell is something you cannot avoid if you're a programmer or other sort of code-wrangler.
You can interact with it + be (mostly) clueless and still get things done, but it's a huge return-on-investment to set up "shellcheck" and lookup "bash'isms", etc.
----
(Off-topic: I am convinced Ruby cannot be beaten for shell-scripting purposes. If I had a wish, it would be that every machine had a tiny Ruby interpreter on it so I could just use Ruby. I'm not even "a Ruby guy", it's just unreasonably good/easy for this sort of thing. And I keep my mind open for better alternatives constantly.)
Example of near-identical script in bash vs Ruby:
https://github.com/GavinRay97/hasura-ci-cd-action/blob/maste...
https://github.com/GavinRay97/hasura-ci-cd-action/blob/maste...
What are some alternatives?
pash - PaSh: Light-touch Data-Parallel Shell Processing
mycmd - Tool for writing and running commands from a command directory
docker-flask-example - A production ready example Flask app that's using Docker and Docker Compose.
murex - A smarter shell and scripting environment with advanced features designed for usability, safety and productivity (eg smarter DevOps tooling)
oh - A new Unix shell.
stripe-jobs-cli
wrk2 - A constant throughput, correct latency recording variant of wrk
Seed - A Rust framework for creating web apps
xe - simple xargs and apply replacement
oil - Oils is our upgrade path from bash to a better language and runtime. It's also for Python and JavaScript users who avoid shell!
lsofer - script to match similar functionality to lsof -i, and then some.