Skip to content

Commit

Permalink
Added landing page on /
Browse files Browse the repository at this point in the history
  • Loading branch information
Phara0h committed Sep 26, 2019
1 parent 832a1dc commit 08c9e89
Show file tree
Hide file tree
Showing 3,528 changed files with 329,544 additions and 13 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
51 changes: 51 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
### Changelog

All notable changes to this project will be documented in this file. Dates are displayed in UTC.

#### [1.2.6](https://github.com/Phara0h/WaspsWithBazookas/compare/1.2.4...1.2.6)

> 26 September 2019
- Update README.md [`df8071f`](https://github.com/Phara0h/WaspsWithBazookas/commit/df8071f18e9ae25f9030039b1a5d8bcc48a241b4)
- Update package.json [`427207f`](https://github.com/Phara0h/WaspsWithBazookas/commit/427207f3dd6ac22dc29dde4018d0e77a800ac649)
- Delete _config.yml [`832a1dc`](https://github.com/Phara0h/WaspsWithBazookas/commit/832a1dcc321e60f7924688a7fa895180638918a6)

#### [1.2.4](https://github.com/Phara0h/WaspsWithBazookas/compare/1.2.3...1.2.4)

> 2 July 2019
- Ceasefire, wasp auto retry and bug squashing [`9230011`](https://github.com/Phara0h/WaspsWithBazookas/commit/9230011b431c88231e67d71b23cbde447226616c)

#### [1.2.3](https://github.com/Phara0h/WaspsWithBazookas/compare/1.2.2...1.2.3)

> 1 July 2019
- Percentage complete and invaild targets [`ea71892`](https://github.com/Phara0h/WaspsWithBazookas/commit/ea71892bf7122fe99777d0d3562fe7c6131276a2)

#### [1.2.2](https://github.com/Phara0h/WaspsWithBazookas/compare/1.2.1...1.2.2)

> 1 July 2019
- Secured from command injections [`ee96f90`](https://github.com/Phara0h/WaspsWithBazookas/commit/ee96f906766e592e870d72e0d9f8bd832fc1a8ce)
- Update README.md [`e03ffeb`](https://github.com/Phara0h/WaspsWithBazookas/commit/e03ffebcfd626e42b98f3053bdb96d69bf5e1357)

#### [1.2.1](https://github.com/Phara0h/WaspsWithBazookas/compare/1.2.0...1.2.1)

> 19 June 2019
- Fixed a quick bug to catch errors on poke [`b2133e7`](https://github.com/Phara0h/WaspsWithBazookas/commit/b2133e72b51aea08678b885f583641150429a458)

#### [1.2.0](https://github.com/Phara0h/WaspsWithBazookas/compare/1.1.0...1.2.0)

> 19 June 2019
- Wrk params reported, auto checkin in wasps & snoot booping [`614d8e4`](https://github.com/Phara0h/WaspsWithBazookas/commit/614d8e44873475e542eae8813f6a3ec6ddf7130a)
- Create SECURITY.md [`4416182`](https://github.com/Phara0h/WaspsWithBazookas/commit/4416182199ac3152f567bdaa7eb4906130362092)

#### 1.1.0

> 19 June 2019
- WRK scripts now work, reporting and the rest of the functionality [`dace65c`](https://github.com/Phara0h/WaspsWithBazookas/commit/dace65c8d25d899f9968e1346f877c60e33df472)
- Basic command line functionality [`7a0cf7e`](https://github.com/Phara0h/WaspsWithBazookas/commit/7a0cf7e883c98c236aad1364404ac34eb40e073b)
- Added some init docs [`3b91133`](https://github.com/Phara0h/WaspsWithBazookas/commit/3b91133104524cb928b20272b0652fc4634e4a9b)
30 changes: 30 additions & 0 deletions changelog-template.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
### Changelog

All notable changes to this project will be documented in this file. Dates are displayed in UTC.

{{#each releases}}
{{#if href}}
###{{#unless major}}#{{/unless}} [{{title}}]({{href}})
{{else}}
#### {{title}}
{{/if}}

{{#if tag}}
> {{niceDate}}
{{/if}}

{{#if summary}}
{{summary}}
{{/if}}

{{#each merges}}
- {{{message}}}{{#if href}} [`#{{id}}`]({{href}}){{/if}}
{{/each}}
{{#each fixes}}
- {{{commit.subject}}}{{#each fixes}}{{#if href}} [`#{{id}}`]({{href}}){{/if}}{{/each}}
{{/each}}
{{#each commits}}
- {{#if breaking}}**Breaking change:** {{/if}}{{{subject}}}{{#if href}} [`{{shorthash}}`]({{href}}){{/if}}
{{/each}}

{{/each}}
22 changes: 18 additions & 4 deletions cli/wwb-cli-spawn-aws.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@ var pwd = require('path').dirname(require.main.filename);
var config = require(pwd+'/../config/config.json');
const proc = require('child_process');
const fs = require('fs');
const EC2 = require('aws-sdk/clients/ec2');
const ec2 = new AWS.EC2();

program.on('command:*', function () {
console.error('Invalid command: %s\nSee --help for a list of available commands.', program.args.join(' '));
process.exit(1);
});
// program.on('command:*', function () {
// console.error('Invalid command: %s\nSee --help for a list of available commands.', program.args.join(' '));
// process.exit(1);
// });

program
.option('-w, --wasps <n>', 'How many wasps instances')
Expand All @@ -17,5 +19,17 @@ program

// Would be cool if someone made this

if(program.config)
{
config = require(require('path').resolve(program.config));
}

console.log('Under Construction, view github for more details')

var user-data-script = `
#!/bin/bash
echo "export WWB_HIVE_IP="ec2-3-92-208-159.compute-1.amazonaws.com""
echo "export WWB_HIVE_PORT="4269""
`
// wasp AMI ami-011939fefc51137e9
// hive AMI ami-0b20c6ff3c67d3b07
4 changes: 0 additions & 4 deletions cli/wwb-cli-spawn-local.js
Original file line number Diff line number Diff line change
Expand Up @@ -104,10 +104,6 @@ program
{
ip: '0.0.0.0',
port: program.hivePort || '4269'
},
wasp:
{
ip: '0.0.0.0'
}
}
}
Expand Down
99 changes: 99 additions & 0 deletions hive/client/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,99 @@
<html>
<head>
<link href="https://fonts.googleapis.com/css?family=Roboto&display=swap" rel="stylesheet">
<style>
html {
font-family: 'Roboto', sans-serif;
}
.center {
position: fixed; /* or absolute */
top: 40%;
left: 50%;
transform: translate(-50%, -50%);
text-align: center;
}
.center > img {
width: 350px;
height: 350px;

}
body > div.center > div:nth-child(3) img{
width: 50px;
height: 50px;
}
.bg-image {
background: url(https://i.imgur.com/tsCdexD.png);
filter: blur(8px);
-webkit-filter: blur(8px);

/* Full height */
height: 120%;
width: 120%;
/* Center and scale the image nicely */
background-position: center;
background-repeat: no-repeat;
background-size: cover;
overflow:hidden;
position: fixed; /* or absolute */
top: 55%;
left: 55%;
transform: translate(-50%, -50%);
}
body > div.center > div:nth-child(3) {
display: flex;
align-items: center;
}
body > div.center > div:nth-child(3) > a:nth-child(1) {
background: rgba(62, 63, 82, 0.8);
display: flex;
align-items: center;
flex-direction: column-reverse;
width: 100%;
border-radius: 8px;
margin: 10px;
padding: 5px;
color:white;
box-shadow: 0 6px 10px 0 rgba(27,28,30,.31);
text-decoration: none;
}

body > div.center > div:nth-child(3) > a:nth-child(2) {
background: rgba(254, 198, 5, 0.3);
display: flex;
align-items: center;
flex-direction: column-reverse;
width: 100%;
border-radius: 8px;
margin: 10px;
padding: 5px;
color:white;
box-shadow: 0 6px 10px 0 rgba(27,28,30,.31);
text-decoration: none;
}
body > div.center > div:nth-child(2) {
font-size: 25px;
color: rgba(255, 255, 255, 0.8);
font-weight: bold;
text-shadow: 0 6px 10px rgba(27,28,30,.31);
}

</style>
</head>
<body>
<div class="bg-image"></div>
<div class="center">
<img src="https://i.imgur.com/Q1hKRLQ.png"/>
<div>Control this Hive directly via: </div>
<div>
<a href="https://documenter.getpostman.com/view/208035/S1a1YnXU?version=latest">
REST
<img src="https://assets.getpostman.com/common-share/postman-logo-stacked.svg">
</a>
<a href="https://www.npmjs.com/package/wwb-sdk">
Node.js SDK
<img src="https://imgur.com/XBD5nMq.png"/>
</a>
</div>
</div>
</body>
</html>
13 changes: 10 additions & 3 deletions hive/hive.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,14 @@ if(process.argv[3])
fs.appendFileSync(logPath, d + '\n');
};
}
fastify.register(require('fastify-static'), {
root: __dirname+"/client",
serve: false,
});

fastify.get('/', (req, res) =>{
res.sendFile('index.html');
});
fastify.get('/wasp/heartbeat/:port', (req, res) =>
{
var found = findWasp(req.ip, req.params.port);
Expand Down Expand Up @@ -128,7 +135,7 @@ fastify.get('/wasp/boop/snoots', (req, res) =>

if(completed_requests >= numOfWasps)
{
checkHealtStatus();
checkHealthStatus();
res.code(200).send(`Hive is operational with ${wasps.length} wasps ready and waiting orders.`);
console.log(`Total Wasps: ${wasps.length}`)
}
Expand Down Expand Up @@ -564,7 +571,7 @@ var findWasp = function(ip, port)
return found;
}

var checkHealtStatus = function()
var checkHealthStatus = function()
{
if(wasps.length > 0)
{
Expand All @@ -589,7 +596,7 @@ var checkHealtStatus = function()
}
}

setInterval(checkHealtStatus, heartBeatInt);
setInterval(checkHealthStatus, heartBeatInt);


console.log('Hive ready to release the wasps!')
Expand Down
1 change: 1 addition & 0 deletions node_modules/.bin/auto-changelog

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/handlebars

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/mime

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/parse-github-url

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/pino

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/semver

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/sshpk-conv

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/sshpk-sign

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/sshpk-verify

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/uglifyjs

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions node_modules/.bin/uuid

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

40 changes: 40 additions & 0 deletions node_modules/abstract-logging/Readme.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 12 additions & 0 deletions node_modules/abstract-logging/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 08c9e89

Please sign in to comment.