This is a quick guide on testing scripts of this project without pushing results to GitHub, and is intended reading material for those that wish to assist in adding features, stomping bugs, etc.



Requirements

This guide makes use of;

Copying and Pasting commands without forethought is discouraged, please review linked to resources, manuals, help output, etc. prior to running anything questionable.


Append to SSH config

Add tests host to SSH configurations…

tee -a .ssh/config 1>/dev/null <<EOF
Host tests
   HostName localhost
   User gitname
   IdentitiesOnly yes
   IdentityFile ~/.ssh/private_key
EOF

Add Git Shell Restricted User

ssh pi sudo jekyll_usermod.sh\
 --user="gitname"\
 --group="devs"\
 --git-shell-copy-or-link="copy"\
 --ssh-pub-key="'$(<~/.ssh/pub.key)'"\
 --help

Setup Repositories for Testing

  • Clone llSourcell and push to tests remote…
mkdir -p ~/git/hub/llSourcell
cd ~/git/hub/llSourcell

git clone --origin=llSourcell git@github.com:llSourcell/Bitcoin_Trading_Bot.git

cd Bitcoin_Trading_Bot/

ssh tests git-init Bitcoin_Trading_Bot

git remote add origin tests:git/Bitcoin_Trading_Bot

git push origin master
  • Clone How-to-Predict-Stock-Prices-Easily-Demo and push to tests remote…
cd ~/git/hub/llSourcell

git clone --origin=llSourcell git@github.com:llSourcell/How-to-Predict-Stock-Prices-Easily-Demo.git

cd How-to-Predict-Stock-Prices-Easily-Demo/

ssh tests git-init How-to-Predict-Stock-Prices

git remote add origin tests:git/How-to-Predict-Stock-Prices

git push origin master
  • Clone How_to_simulate_a_self_driving_car and push to tests remote…
cd ~/git/hub/llSourcell

git clone --origin=llSourcell git@github.com:llSourcell/How_to_simulate_a_self_driving_car.git

cd How_to_simulate_a_self_driving_car/

ssh tests git-init simulate_a_self_driving_car

git remote add origin tests:git/simulate_a_self_driving_car

git push origin master

Test Fix Logs script

cd ~/git/hub/git-utilities/fix_logs

./fix_logs.py --help

Attribution


License

Legal bits of Open Source software. Note the following license does not necessarily apply to any dependencies of this repository.

Fix Git Logs documentation
Copyright (C) 2020  S0AndS0

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published
by the Free Software Foundation; version 3 of the License.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <https://www.gnu.org/licenses/>.