Skip to content

Instantly share code, notes, and snippets.

const express = require('express');
const cors = require('cors');
const mysql = require('mysql');
const app = express();
app.use(cors());
app.use(express.json());
const connection = mysql.createConnection({
host: 'your-mysql-instance-host',
@chrisjchandler
chrisjchandler / gist:bda02e8cd5a1838e7090ac092b8b6e98
Created February 28, 2023 19:18
Cricut Scheduling & organizer db structure and python code
CREATE TABLE teams (
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(255) NOT NULL,
captain_name VARCHAR(255) NOT NULL,
created_at DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP
);
CREATE TABLE players (
id INT AUTO_INCREMENT PRIMARY KEY,
name VARCHAR(255) NOT NULL,
@chrisjchandler
chrisjchandler / fluent.conf
Created December 15, 2022 20:41
fluentd config with multiple destination configurations templated
<source>
@type tail
path /var/log/myapp/*.log
pos_file /var/log/fluentd-myapp.pos
tag myapp.*
format json
</source>
<match myapp.elasticsearch>
@type elasticsearch

Keybase proof

I hereby claim:

  • I am chrisjchandler on github.
  • I am stumpedops (https://keybase.io/stumpedops) on keybase.
  • I have a public key whose fingerprint is 83FA C42B FC0D FB7A B30E 6BBB B825 23B2 4ED8 A462

To claim this, I am signing this object: