Skip to content

Instantly share code, notes, and snippets.

@jaboulos
jaboulos / artillery.txt
Created February 28, 2019 03:33
Artillery query tests for development
Joes-MacBook-Pro:joe-menu-bar-component-sql joeboulos$ artillery quick --count 1000 -n 100 http://localhost:3001/
Started phase 0, duration: 20s @ 19:26:53(-0800) 2019-02-27
Report @ 19:27:03(-0800) 2019-02-27
Scenarios launched: 232
Scenarios completed: 0
Requests completed: 8072
RPS sent: 820.82
Request latency:
min: 5.2
max: 346.6
@jaboulos
jaboulos / index.js
Last active February 9, 2019 20:27
One or more core db queries + sample results
const express = require('express');
const exphbs= require('express-handlebars');
const path = require('path');
const bodyParser = require('body-parser');
const UserDb = require('../database/Users');
const app = express();
// database
const db = require('../database/index');
@jaboulos
jaboulos / MySQL_macOS_Sierra.md
Created January 29, 2019 02:18 — forked from nrollr/MySQL_macOS_Sierra.md
Install MySQL on Sierra using Homebrew

Install MySQL on macOS Sierra

This procedure explains how to install MySQL using Homebrew on macOS Sierra 10.12

Install Homebrew

  • Installing Homebrew is effortless, open Terminal and enter :
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  • Note: Homebrew will download and install Command Line Tools for Xcode 8.0 as part of the installation process.

Install MySQL

At this time of writing, Homebrew has MySQL version 5.7.15 as default formulae in its main repository :

@jaboulos
jaboulos / server.js
Created January 8, 2019 00:42
This is the server code for the Schedule Component. It contains a GET request that retrieves all data relevant to the teams' schedule. It limits the response to 17 items and sorts them by the week's number in ascending order.
const express = require('express');
const bodyParser = require('body-parser');
const ScheduleDB = require('../database/Models/ScheduleDB.js');
const app = express();
app.use(express.static(`${__dirname}/../client/dist`));
app.use(bodyParser.json());
app.use(bodyParser.urlencoded({ extended: false }))
@jaboulos
jaboulos / README.md
Created November 4, 2018 19:02 — forked from hofmannsven/README.md
My simply MySQL Command Line Cheatsheet