Skip to content

Commit

Permalink
Programs Consolidated Into a Single File
Browse files Browse the repository at this point in the history
Productivity is a shell suite that can run any of the core programs using
flags.
  • Loading branch information
kyle8998 committed Dec 20, 2017
1 parent 43a5199 commit e154a0c
Show file tree
Hide file tree
Showing 2 changed files with 91 additions and 3 deletions.
74 changes: 74 additions & 0 deletions Productivity
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
#!/usr/bin/env bash

usage() {
echo
echo "Sudo Productivity - A Productivity Suite Made For Slackers!"
echo
echo "./Productivity [-abcfhns]"
echo
echo "Flags:"
echo "-a - Automated Testing System"
echo "-b - Bitbake"
echo "-c - Code Review"
echo "-f - Fake Compilation"
echo "-h - Help Manual"
echo "-n - Neural Network"
echo "-s - Searching Random Hex Values"
echo
}

while getopts ":abcfhns" opt; do
if [ $OPTIND -eq 1 -o $OPTIND -gt 2 ]
then
echo -e "\e[33mToo many flags entered\e[39m"
usage
exit -1
fi
case $opt in
a)
echo "Starting Automated Testing System..." >&2
cd ATS
./ATS.sh
if [ $? -eq 1 ]
then
echo -e "\e[33mPlease enable tmux before you run the ATS!\e[39m"
fi
;;
b)
echo "Bitbaking..."
cd Bitbake
./fakeBitbake.sh
;;
c)
echo "Beginning Code Review..."
ruby codeReview.rb
;;
f)
echo "Compiling..."
./fakeCompilation.sh
;;
h)
usage
;;
n)
echo "Starting Neural Network"
cd NeuralNetwork
python3 trainNN.py
;;
s)
echo "Searching Hex..."
./hexSearch.sh
;;

\?)
echo -e "\e[33mInvalid option: -$OPTARG\e[39m" >&2
usage
;;
esac
exit
done

echo -e "\e[33mNo flags provided!\e[39m"
usage
exit

20 changes: 17 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,25 @@
# Pseudo-Productivity
Boost your "productivity" to the max! A project made for slackers by slackers.
# Sudo-Productivity
Boost your "productivity" to the max! A productivity suite made for slackers by slackers.

**Note** This project was made just for fun. I do not condone use of these programs
in a professional work environment.

Created by: Kyle Lim

## How to Run

Clone the repository to your local machine

```
git clone https://github.com/kyle8998/Sudo-Productivity
```

Run the suite with a flag

```
./productivity [-abcfhns]
```

### Automated Test System (ATS)

<b>ATS.sh</b> - Simulates an Automated Test System. Uses tmux to open 4 panes to
Expand Down Expand Up @@ -102,4 +116,4 @@ random numbers to make it simulate a search.

--------------------------------------------------------------------------------

More coming soon!
More coming soon!

0 comments on commit e154a0c

Please sign in to comment.