jneen / balls Goto Github PK
View Code? Open in Web Editor NEWBash on Balls
License: MIT License
Bash on Balls
License: MIT License
Please explain how to use your framework, with examples.
Regads.
And kind of sore.
It seems like every new scripting language these days has its own taskrunner. Ruby has rake, Coffescript has cake, for Coco there is coke and probably some more make puns that I don't know about.
Since running tasks in plain bash is not complicated enough, I propose to add the bake command which can be used to run the accompanying Bakefiles. Each Bakefile would consist of a number of recipes with a variety of different ingredients, and so on.
If anyone thinks this is a good idea I'd be happy to build it.
it is too small
There are a few major issues that cause it to break on OSX. I have patches for most of them but the last might be impossible...
#!/bin/bash
These are the easy ones to fix, and I will add a patch later today.
The real stinker though is the buffering that occurs within the pipes. In the primary code loop (that actually contains the nc
call in server.sh) there are a set of pipes that buffer the data that flow through them. While I assume this is not an issue on linux, it seems that OSX will buffer quite a lot of data in these pipes. I could only get pages to flush when they were quite long. The standard 404 page would not flush until I added several K of text (I did not actually search for the magic number, just poured a bunch of text in).
Intense googling only revealed solutions that worked on Linux. Unless anyone has any ideas, I am not sure if small responses will work on OSX.
Are any bash-specific features actually used in this code? I haven't done a full review yet, but so far all I've seen is the [[ ]] syntax, which can always trivially be replaced by POSIX compatible [ ] syntax
While reading the source is fun and entertaining, having an actual example would be very helpful for us non-bash-$deities.
$topic
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.