Skip to content

Instantly share code, notes, and snippets.

View nnnnathann's full-sized avatar

Nathan Bleigh nnnnathann

  • Oberd
  • Kansas City, MO
View GitHub Profile
@nnnnathann
nnnnathann / security-diagnosis.ts
Created March 4, 2021 19:41
security-diagnosis.ts
// sql is a data store
import sql from "./db"
// auth identifies and validates requests, and is correctly
// implemented
import auth from "./auth"
import express from "express"
const app = express()
app.get("/dashboard", auth, (req, res) => {
sql.execute("SELECT user, message FROM messages WHERE DATE(timestamp) = DATE(NOW())")
.then((rows) => {
<a href="https://www.eventbrite.com/e/newcomers-longtimers-24th-annual-home-tour-tickets-45257777230" target="_blank">
<img src="sitebuilder/images/eventbrite_1_-_Copy-327x112.jpg" width="327" height="112" border="0" alt="Home Tour Eventbrite" />
</a>
### Keybase proof
I hereby claim:
* I am nnnnathann on github.
* I am nnnnathann (https://keybase.io/nnnnathann) on keybase.
* I have a public key whose fingerprint is 654C 3FDA 5CF2 BD5F 3A4D 0F19 6306 1927 1890 9D60
To claim this, I am signing this object:
Runtime Error
SyntaxError: Unexpected token ...
at eval (native)
at JSDOMEnvironment.runSourceText (/home/rof/.nvm/versions/node/v4.0.0/lib/node_modules/jest-cli/src/environments/JSDOMEnvironment.js:36:24)
at Loader._execModule (/home/rof/.nvm/versions/node/v4.0.0/lib/node_modules/jest-cli/src/HasteModuleLoader/HasteModuleLoader.js:205:43)
at Loader.requireModule (/home/rof/.nvm/versions/node/v4.0.0/lib/node_modules/jest-cli/src/HasteModuleLoader/HasteModuleLoader.js:760:14)
at Loader._generateMock (/home/rof/.nvm/versions/node/v4.0.0/lib/node_modules/jest-cli/src/HasteModuleLoader/HasteModuleLoader.js:243:34)
at Loader.requireMock (/home/rof/.nvm/versions/node/v4.0.0/lib/node_modules/jest-cli/src/HasteModuleLoader/HasteModuleLoader.js:677:45)
at Loader.requireModuleOrMock (/home/rof/.nvm/versions/node/v4.0.0/lib/node_modules/jest-cli/src/HasteModuleLoader/HasteModuleLoader.js:788:19)
at Object.eval (/home/rof/src/github.com/oberd/mountain-frontend/node_modules/@oberd/redux-middleware-koa/node_modules/histor
@nnnnathann
nnnnathann / reports_config.json
Last active January 14, 2016 20:11
Github Reports
{
"reports": [
{
"name": "mountain",
"repositories": [
"oberd/mountain-frontend",
"oberd/mountain-service",
"oberd/indexer-worker",
"oberd/mountain-dashboards"
],
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script src="https://cdnjs.cloudflare.com/ajax/libs/numeral.js/1.5.3/numeral.min.js"></script>
</head>
<body>
<h3>
#!/bin/bash
VERSION=${1:-v2.0.4}
ETCD_VERSION_STRING="etcd-$VERSION-darwin-amd64"
curl -L https://github.com/coreos/etcd/releases/download/$VERSION/$ETCD_VERSION_STRING.zip -o $ETCD_VERSION_STRING.zip
unzip $ETCD_VERSION_STRING.zip
sudo cp $ETCD_VERSION_STRING/etcdctl /usr/local/bin/
sudo chmod +x /usr/local/bin/etcdctl
rm -r $ETCD_VERSION_STRING
@nnnnathann
nnnnathann / designer.html
Created September 15, 2014 18:54
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-scroll-header-panel/core-scroll-header-panel.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
/*jshint indent:2 */
'use strict';
var gulp = require('gulp');
var gutil = require('gulp-util');
var fs = require('fs');
var olive = require('oberd-olive');
var livereload = require('gulp-livereload');
var lr = require('tiny-lr');
var server = lr();
var util = require('util'),
colors = require('colors'),
http = require('http'),
httpProxy = require('http-proxy');
var localServerIp = '192.168.1.12';
//
// Http Proxy Server with Proxy Table
//
httpProxy.createServer({