Skip to content

Instantly share code, notes, and snippets.

View cmackenzie1's full-sized avatar
🏠
Working from home

Cole Mackenzie cmackenzie1

🏠
Working from home
View GitHub Profile
@cmackenzie1
cmackenzie1 / solution.md
Last active January 22, 2018 05:58
Shopify Infrastructure Problem

Shopify Infrastructure Problem

Screenshot of WebApp

Solution

Outputs

$ minikube service list
|-------------|----------------------|-----------------------------|
@cmackenzie1
cmackenzie1 / diamond-mysql-schema.sql
Created December 27, 2016 19:03
Example of a schema used to define a metrics table for diamond to to store data in a MySQL database
CREATE DATABASE IF NOT EXISTS diamond;
USE diamond;
CREATE TABLE metrics (
id int not null auto_increment,
col_time int(11), -- Stored in Seconds
col_metric varchar(255) not null, -- Name of metric in diamond form.
col_value double not null, -- value of the recorded metric
primary key(id)
);
@cmackenzie1
cmackenzie1 / output
Created December 13, 2016 02:12
cmput391-a3 output
cdmacken@ohaton:~/cmput391-a3>cat test.txt
PREFIX rdf: <http://www.w3.org/1999/02/22-rdf-syntax-ns#>
PREFIX schema: <http://schema.org/>
PREFIX dbr: <http://dbpedia.org/resource/>
PREFIX dbo: <http://dbpedia.org/ontology/>
SELECT ?city WHERE {
?aaa ?bbb ?city .
@cmackenzie1
cmackenzie1 / nifi.sh
Created June 7, 2016 07:23
default nifi.sh script from maven build
#!/bin/sh
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0