kritbit

kritbit Commit Details


Date:2015-12-15 23:02:23 (9 years 6 days ago)
Author:Natalie Adams
Branch:master
Commit:6be8aafa451f3136d256258e1172e3c73a6b71b9
Parents: 33ac6cca1657084b53807b991b340f58b8459d72
Message:Adding license and updating README

Changes:

File differences

LICENSE
1
2
3
4
5
6
7
Copyright (c) 2015 Nathan Adams
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
README.md
6161
6262
6363
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
6486
6587
6688
......
7496
7597
7698
77
99
78100
79101
80102
......
90112
91113
92114
115
116
117
118
93119
http://127.0.0.1/kritbit/service/run/
And kritbit will run through the jobs that are marked to be ran by kritbit and analyse the cron script to determine if it needs to be ran and run it.
# Sending script runs to kritbit
There is provided runcommand Python script in the scripts directory. This should be modified to fill in data for your script. This will wrap the encryption and data structure in an easy to use library.
To use it just invoke it like so:
/usr/bin/python runcommand.py '/bin/bash script.sh'
If you want to make it more generic you may replace SHARED_KEY and HASH variables with the following:
SHARED_KEY = sys.argv[1]
HASH = sys.argv[2]
URL = "https://<your IP or domain>/kritbit/service/upload/" + sys.argv[3] + "/"
Then the command would be similar to the following:
/usr/share/kritbit/runcommand.py '<shared key>' <hash> <id_of_project> '/bin/bash /root/downloadrouterconfig.sh'
ie:
/usr/share/kritbit/runcommand.py '#$FDSFA#$' eeeffff3434343 7 '/bin/bash /root/downloadrouterconfig.sh'
# Long-term TODO
# Attributions
Kritbit uses the following projects
Kritbit is licensed under the MIT uses the following projects
- [Haplous Framework](https://srchub.org/p/haplousframework/) - MIT
- [h2o template engine](https://github.com/speedmax/h2o-php) - MIT
- [dynatable](http://www.dynatable.com/) - AGPL
- [is_cli](http://stackoverflow.com/a/25967493/195722)
# Donations
Donations can be accepted through [Paypal](paypal.me/NateAdams) or through BTC: [1F3NzZXUm4sATgCs3sgTqXHwrAqM4JnGVS](bitcoin:1F3NzZXUm4sATgCs3sgTqXHwrAqM4JnGVS)
Made with <3 by Nathan Adams

Archive Download the corresponding diff file

Branches

Number of commits:
Page rendered in 0.05437s using 14 queries.