Giter VIP home page Giter VIP logo

gnu-pricing's Introduction

GNU Pricing

Announcement: https://diafygi.github.io/gnu-pricing/website/

GNU programs are used billions of time every day all over the world. However, the intellectual property owners, the Free Software Foundation, don't make a cent from it. What a raw deal! This project aims to fix that by monetizing many popular command line tools that GNU maintains.

What this project does

This project adds pricing to many popular GNU command line tools.

How to install

To install, simply add the bin directory to your path.

export PATH="/path/to/gnu-pricing/bin:$PATH"

How to use

Once the gnu-pricing/bin directory is in your path, simply use GNU tools as normal. To see the pricing breakdown from the command line, add the --pricing to see the cost breakdown for using that command. A record of how much you owe for using GNU commands will also be printed. You can pay this usage fee at https://donate.fsf.org/.

user@host:~$ gcc --pricing
=======================
Welcome to GNU Pricing!
=======================

Using many GNU tools now cost $0.01 per use.

This command (gcc) has been used 2 times so far.

Overall GNU command usage
command	usage	cost
-------	-----	----
gcc     2       $.02
ls      41      $.41
md5sum  1       $.01
uname   2       $.02
-------	-----	----
Total   46      $.46

Please pay the total cost at https://donate.fsf.org/

How to uninstall

If you're a cheap bastard and don't want to pay for these excellent GNU commands that the FSF worked so very hard to make, you can remove the pricing options by removing the gnu-pricing/bin directory from your path and deleting the ~/.gnu-pricing/ directory.

PATH=`echo $PATH | sed "s@/path/to/gnu-pricing/bin:@@"`
rm -r ~/.gnu-pricing

What commands have pricing

The following commands now cost money to use:

  • base64
  • basename
  • cat
  • cp
  • cut
  • date
  • dd
  • df
  • du
  • emacs
  • gcc
  • gnupg
  • grep
  • gzip
  • head
  • ln
  • ls
  • make
  • md5sum
  • mkdir
  • mv
  • nano
  • rm
  • rmdir
  • sha1sum
  • sha224sum
  • sha256sum
  • sha384sum
  • sha512sum
  • sort
  • tail
  • tar
  • time
  • touch
  • uname
  • uniq
  • uptime
  • wc
  • wget
  • who
  • whoami

Disclaimer

This project is satire and was made during the 2015 Stupid Shit No One Needs & Terrible Ideas Hackathon.

gnu-pricing's People

Contributors

diafygi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

gnu-pricing's Issues

Spaces in arguments

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 "$@"

The Raw Deal

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

bin/gnu-pricing: line 37: -2: substring expression < 0

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).

Pricing

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 :)

Pricing for gunzip

Although gzip is properly priced, it makes sense to also charge for gunzip. Thank you for this helpful tool!

Replace hardcoded bash with /usr/bin/env bash

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).

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.