diafygi / gnu-pricing Goto Github PK
View Code? Open in Web Editor NEWTurn GNU command line tools into SaaS (Stupid Hackathon Project)
License: GNU General Public License v3.0
Turn GNU command line tools into SaaS (Stupid Hackathon Project)
License: GNU General Public License v3.0
Especially with OS X, /bin/bash is a very old version of bash. Using /usr/bin/env bash, we can fetch the user's preferred version (for example, I used brew to install an up-to-date version).
Although gzip is properly priced, it makes sense to also charge for gunzip. Thank you for this helpful tool!
command usage cost ------- ----- ---- basename 54 $.54 cat 89 $.89 gzip 1 $.01 ls 19 $.19 mkdir 65 $.65 pricing.sh 2 $.02 sort 2 $.02 uname 1 $.01 uniq 2 $.02 ------- ----- ---- Total 235 $2.35
When I try to do cat --pricing
I get:
bin/gnu-pricing: line 37: -2: substring expression < 0
bin/gnu-pricing: line 47: -2: substring expression < 0
I'm using GNU bash, version 4.3.33(1)-release (x86_64-apple-darwin14.1.0).
The idea is kinda cool. But the pricing seems not optimal.
1 ) Compare pricing to windows cost on Amazon EC2 per hour.
Use uptime mult per linux usage houre rate at 1/1000 of M$.
Use tuptime for total uptime.
2 ) Per application :
Parse https://www.gnu.org/manual/blurbs.html and look at packages installed in system. Price per install at 0.05$.
Parse all those packages to locate the binary and use that list to look in history. Price at 0.0001$ per usage.
That should give a more realistic base pricing.
Add a support GNU multiplying ratio of :
1X = Lame
5X = Poor student
50X = Graduated student
150X = Wealthy geek
5000X = CEO of a small company
500000X = CEO of medium company
50000000X = CEO of large company
Remember that FreeBSD got 1M from Jan Koum, the CEO and co-founder of the WhatsApp.
Any way, nice idea this app :)
Hello,
there is a bug with arguments containing spaces not correctly passed to the real binary:
$ mv Downloads/carnet\ pl\ sout.pdf /media/mmcblk0p1
mv: cannot stat ‘Downloads/carnet’: No such file or directory
mv: cannot stat ‘pl’: No such file or directory
mv: cannot stat ‘sout.pdf’: No such file or directory
it can be fixed by changed the last line of pricing.sh to
$THISCMD "$@"
or better
exec $THISCMD "$@"
Dear diagify,
the GNU philosophy says about "sharing computing across world". I think you should look in your dictionary (or Wiktionary if you don't have one) and check word "Foundation". Please mention that a foundation is usually non-profit.
The idea to donate the FSF is great. I'll donate it when I'll get a credit card.
Hope your project grows,
Jakub
Please advise, major bug.
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.