https://github.com/owainkenwayucl/thomas-accounting
Scripts that GENUINELY NO-ONE ELSE SHOULD EVER USE to generate accounting info on Thomas
https://github.com/owainkenwayucl/thomas-accounting
bash dont-use-this-no-really python3
Last synced: 3 months ago
JSON representation
Scripts that GENUINELY NO-ONE ELSE SHOULD EVER USE to generate accounting info on Thomas
- Host: GitHub
- URL: https://github.com/owainkenwayucl/thomas-accounting
- Owner: owainkenwayucl
- License: mit
- Created: 2017-08-03T11:33:15.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-10-24T14:37:19.000Z (over 8 years ago)
- Last Synced: 2025-03-23T11:13:54.389Z (over 1 year ago)
- Topics: bash, dont-use-this-no-really, python3
- Language: Python
- Size: 12.7 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Thomas accounting tools
BEFORE USING THESE TOOLS SERIOUSLY CONSIDER HOW YOUR LIFE HAS COME TO THIS POINT AND COME AND TALK TO ME ABOUT IT PLEASE.
Regardless, these are MIT licensed.
These tools a temporary kludge until we move to SAFE. If it's 2018 and you are still using them something has gone very wrong.
These tools only work on Thomas.
They only work if you have also installed my `fpsum` utility into your `$PATH` from here: https://github.com/owainkenwayucl/utils
They only work if you've put the very secret DB config file in the right place.
Current tools:
* `get-accounting ` - this looks at the Gold database to get the amount of credits spent in a particular month, and then at the `thomas_sgelogs` database to get the number of CPU hours used in that month and then combines the two to work out the % of usage that was paid (high priority) vs. free.
* `get-institutional-accounting ` - this looks at the `thomas` database to get a list of users at each institute, at the Gold database to get the amount of credits spent by that institute in a particular month, and then at the `thomas_sgelogs` database to get the number of CPU hours used by those users in that month and then combines the two to work out the % of usage that was paid (high priority) vs. free. It's incorrect where a user is at more than one institute.
##TODO: Basically everything.