Skip to content

Commit d84f105

Browse files
committed
[Git Commit]: at 2018-09-30 09:20:46-05:00
1 parent b0ca5d4 commit d84f105

File tree

6 files changed

+225
-2
lines changed

6 files changed

+225
-2
lines changed

CODE_OF_CODUCT.md

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Deep Contributor Covenant Code of Conduct
2+
3+
## Deep Pledge
4+
5+
[@DeepInThought](https://github.com/DeepInThought) doesn't discreminate.
6+
7+
We understand that everyone has a different take on life, religion and level of experience.
8+
9+
Always [DeepInThought](https://www.deepinthought.io) and viewing technology from a different angle.
10+
11+
## Deep Standards
12+
13+
Examples of behavior that contributes to creating a positive environment include:
14+
15+
* Open minded contributors
16+
* Indifferent to the norm
17+
* Sarcasim where needed
18+
* Accepting constructive criticism
19+
* Focusing on what is best for the community
20+
21+
Examples of unacceptable behavior by participants include:
22+
23+
* Pornagraphic material in an open settings is taboo
24+
* Auto-botting Social Media
25+
* Excessive trolling
26+
* Publishing others' private information, such as a physical or electronic address, without explicit permission
27+
28+
## Deep Responsibilites
29+
30+
Project maintainers are responsible for clarifying the standards of acceptable behavior and are expected to take appropriate and fair corrective action in response to any instances of unacceptable behavior.
31+
32+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, or to ban temporarily or permanently any contributor for other behaviors that they deem inappropriate, threatening, offensive, or harmful.
33+
34+
## Scope
35+
36+
This Code of Conduct applies both within project spaces and in public spaces when an individual is representing the project or its community. Examples of representing a project or community include using an official project e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event. Representation of a project may be further defined and clarified by project maintainers.
37+
38+
## Enforcement
39+
40+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by contacting the project team at support@deepinthought.io. The project team will review and investigate all complaints, and will respond in a way that it deems appropriate to the circumstances. The project team is obligated to maintain confidentiality with regard to the reporter of an incident. Further details of specific enforcement policies may be posted separately.
41+
42+
Project maintainers who do not follow or enforce the Code of Conduct in good faith may face temporary or permanent repercussions as determined by other members of the project's leadership.
43+
44+
## Attribution
45+
46+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4, available at [http://contributor-covenant.org/version/1/4][version]
47+
48+
[homepage]: http://contributor-covenant.org
49+
[version]: http://contributor-covenant.org/version/1/4/

DBC_Snippet_Project_Board.md

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# DBC Snippet Project Board
2+
3+
[DeepBrainChain](https://www.deepbrainchain.org) - Import vendor information and details.
4+
5+
![DeepBrainChain_Logo](https://deepit-space.nyc3.digitaloceanspaces.com/deepinthought/public/deepbrainchain/imgs/DeepBrain_Chain_logo.png)
6+
7+
---
8+
9+
+ [X] [DeepBrainChain](https://www.deepbrainchain.org) - Import vendor information.
10+
+ [ ] Completed First: [DBC_Snippet_Project_Card](https://github.com/DeepInThought/vscode-shell-snippets/projects/1#card-13428103)
11+
+ [ ] Add Ubuntu 16.04 Compatible Snippets.
12+
+ [ ] Run unit tests and automate reports.
13+
+ [ ] Add Ubuntu 18.04 Compatible Snippets.
14+
+ [ ] Custom DeepIT installer for DBC.
15+
+ [ ] Auto-patcher with logging.
16+
+ [ ] Optional reporter to the DeepIT monitors.
17+
+ [ ] DeepInThought mining snippets for docs.thedeep.network mining pool infrastructure.
18+
+ [ ] API construction.
19+
+ [ ] GraphQL
20+
+ [ ] Docker Compose
21+
+ [ ] Serverless backend.
22+
+ [ ] Kubernetes
23+
+ [ ] Docker Swarm
24+
+ [ ] Continuous Integration
25+
+ [ ] Continuous Building
26+
+ [ ] Security, Info and Container Scanning.
27+
+ [ ] Continuous Tagging
28+
+ [ ] Continuous Deployment
29+
30+
---
31+
32+
## GitHub DBC Project Cards
33+
34+
---
35+
36+
### DBC Snippet Card
37+
38+
[DeepBrainChain](https://www.deepbrainchain.org) - Import vendor information and details.
39+
40+
+ [ ] Create vendor folder in Git repositories.
41+
+ [ ] Create vendor/vendor.json of directory.
42+
+ [ ] vendor/vendor.json should adhere to JSON formating.
43+
+ [ ] vendor/vendor.json key/value examples:
44+
45+
```json
46+
{
47+
"comment": "Examples of vendor input in vendor/vendor.json file.",
48+
"ignore": "test appengine",
49+
"package": [
50+
{
51+
"path": "github.com/DeepBrainChain/deepbrainchain-release",
52+
"checksumSHA1": "2f28e09662bde11b545b3ada640ce6e34d80804f",
53+
"revision": "afa832c948baee6584da53a36639af99d3e5383d",
54+
"revisionTime": "2018-08-07"
55+
},
56+
{
57+
"path": "golang.org/x/crypto/ed25519/internal/edwards25519",
58+
"checksumSHA1": "0JTAFXPkankmWcZGQJGScLDiaN8=",
59+
"revision": "2d027ae1dddd4694d54f7a8b6cbe78dca8720226",
60+
"revisionTime": "2018-05-09T20:48:04Z"
61+
},
62+
{
63+
```
64+
65+
---
66+
67+
### DBC Ubuntu Snippets
68+
69+
First release will be for 16.04 with a repository tag and release section.
70+
71+
+ [ ] Verify completion [DBC_Snippet_Project_Card](https://github.com/DeepInThought/vscode-shell-snippets/projects/1#card-13428103)
72+
+ [ ] Add Ubuntu 16.04 Compatible Snippets.
73+
+ [ ] Run unit tests and automate reports.
74+
+ [ ] Add Ubuntu 18.04 Compatible Snippets.

dialog.sh

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
#!/bin/bash
2+
### @File : dialog.sh
3+
### @Author : Luke Penrod - support@deepinthought.io
4+
### @Company : DeepInThought
5+
### @Link : https://deepinthought.io
6+
### @Created : Sunday,September 30 2018 02:19:25
7+
### @Modified :
8+
###-
9+
10+
#? References Used: https://misc.flogisoft.com/bash/tip_colors_and_formatting & https://ryanstutorials.net/bash-scripting-tutorial/bash-functions.php
11+
12+
test -n "${BASH}" || echo "${BASH}" || exit 1
13+
14+
function exec_welcome_message() {
15+
test -rn "$1" || echo -e "\\033[0;32m$1\\033[0m" || exit 1
16+
17+
}
18+
19+
function exec_colors_and_formating() {
20+
#* @Function exec_colors_and_formating()
21+
#* @Desc: Test to see if colors are being passed.
22+
#* @Source: https://misc.flogisoft.com/_export/code/bash/tip_colors_and_formatting?codeblock=55
23+
24+
for clbg in {40..47} {100..107} 49; do
25+
#Foreground
26+
for clfg in {30..37} {90..97} 39; do
27+
#Formatting
28+
for attr in 0 1 2 4 5 7; do
29+
#Print the result
30+
echo -en "\e[${attr};${clbg};${clfg}m ^[${attr};${clbg};${clfg}m \e[0m"
31+
done
32+
echo #Newline
33+
done
34+
done
35+
36+
exit 0
37+
}
38+
39+
function exec_256_colors() {
40+
#* @Function exec_colors_and_formating()
41+
#* @Desc: Test to see if colors are being passed.
42+
#* @Source: https://misc.flogisoft.com/_export/code/bash/tip_colors_and_formatting?codeblock=56
43+
for fgbg in 38 48; do # Foreground / Background
44+
for color in {0..255}; do # Colors
45+
# Display the color
46+
printf "\e[${fgbg};5;%sm %3s \e[0m" $color $color
47+
# Display 6 colors per lines
48+
if [ $(((color + 1) % 6)) == 4 ]; then
49+
echo # New line
50+
fi
51+
done
52+
echo # New line
53+
done
54+
55+
return 0
56+
}
57+
58+
function exec_256_color_prompt() {
59+
#* @Function exec_256_color_prompt()
60+
#* @Desc: Test to see if colors are being passed. est to see if colors are being passed.
61+
test -n "$1" || pickColor=$1 || exit 2
62+
echo "\$1 is $1"
63+
test -n "$2" || pickForegroundValue=$2 || exit 2
64+
echo "\$2 is $2"
65+
printf -- '\x1b[48;5;%sm%3d\e[0m\n' "${pickColor:-85}" "${pickForegroundValue:-21}"
66+
67+
#* Executes a test on the terminal to see if 256 (0-255) are present through a list array {0.255}
68+
for i in {0..255}; do
69+
printf "\x1b[48;5;%sm%3d\e[0m " "$i" "$i"
70+
if ((i == 15)) || ((i > 15)) && (((i - 15) % 6 == 0)); then
71+
printf "\\n"
72+
fi
73+
done
74+
}
75+
76+
if [ "$(echo -n)" = "-n" ]; then
77+
n=""
78+
c="\\c"
79+
else
80+
n="-n"
81+
c=""
82+
fi
83+
84+
echo $n Please enter first name: $c
85+
test -n ${firstName} && read -r "${firstName}" || firstName="Mista" || exit 3
86+
echo $n Please enter last name: $c
87+
read -r ${lastName} || lastName="Robot" || exit 4
88+
exec_welcome_message "Welcome, ${firstName} ${lastName}"
89+

docker-builder.sh.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,5 @@
66
### @Date : Saturday,September 29 2018 01:53:45
77
###-
88

9-
docker build $PWD/ -t deepinthought/vscode-shell-snippets:latest
10-
docker push deepinthought/vscode-shell-snippets:latest
9+
docker build . -t deepinthought/vscode-shell-snippets:latest
10+
docker push deepinthought/vscode-shell-snippets:latest

sudo

Whitespace-only changes.

tempCodeRunnerFile.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
if [ "`echo -n`" = "-n" ]; then
2+
n=""
3+
c="\c"
4+
else
5+
n="-n"
6+
c=""
7+
fi
8+
9+
echo $n Enter your name: $c
10+
read name
11+
echo "Hello, $name"

0 commit comments

Comments
 (0)