Skip to content

Instantly share code, notes, and snippets.

View rjferguson21's full-sized avatar

Rob Ferguson rjferguson21

View GitHub Profile
@rjferguson21
rjferguson21 / nginx.conf
Created June 17, 2019 16:03
nginx.conf
# Configuration checksum: 8238117424313113756
# setup custom paths that do not require root access
pid /tmp/nginx.pid;
load_module /etc/nginx/modules/ngx_http_modsecurity_module.so;
daemon off;
@rjferguson21
rjferguson21 / appdat-service.yaml
Last active March 6, 2019 21:49
appdat-service.yaml
apiVersion: appdatservice.appdat.app/v1alpha2
kind: AppdatService
metadata:
name: test-service
labels:
env: staging
version: v1
spec:
# ends up pointing to test-service.staging.appdat.io (or whatever our convention is)
host: test-service
<html>
<head>
<title>deck.gl HexagonLayer Example</title>
<script src="https://unpkg.com/deck.gl@^6.0.0/deckgl.min.js"></script>
<script src="https://d3js.org/d3.v5.min.js"></script>
<script src="https://api.tiles.mapbox.com/mapbox-gl-js/v0.44.1/mapbox-gl.js"></script>
<style type="text/css">
@rjferguson21
rjferguson21 / data.csv
Created February 15, 2019 03:12
crash
We can't make this file beautiful and searchable because it's too large.
lng,lat
-86.9041,36.0865
-86.7382,36.2589
-86.7768,36.2009
-86.7267,36.1329
-86.7586,36.2301
-86.7268,36.1376
-86.7874,36.1793
-86.7644,36.1532
-86.7085,36.0968
version: '3'
services:
rabbit:
image: rabbitmq:3.6.15-management-alpine
ports:
- "4369:4369"
- "5671:5671"
- "15672:15672"
network_mode: host
volumes:
module.exports = [
{
"context": ["/api", "/api1", "/auth"],
"target": "https://app.next.concertgenetics.com",
"secure": false,
"changeOrigin": true,
"onProxyRes": function onProxyRes(proxyRes, req, res) {
if (proxyRes.headers['set-cookie'] != null) {
proxyRes.headers['set-cookie'] = proxyRes.headers['set-cookie'].map(function(cookie){ return cookie.replace('Secure', ''); })
}
// Import all the theming functionality.
// Core styles that can be used to apply material design treatments to any element.
@mixin cdk-a11y {
.cdk-visually-hidden {
border: 0;
clip: rect(0 0 0 0);
height: 1px;
margin: -1px;
overflow: hidden;
padding: 0;
@rjferguson21
rjferguson21 / instanceof.js
Created June 5, 2017 19:57
instanceof.js
function Person(first, last, age, gender, interests) {
this.name = {
first,
last
};
this.age = age;
this.gender = gender;
this.interests = interests;
};
i
&.cogwheel:before
content '\E137'
&.power:before
content '\E064'
&.message-new:before
content '\E130'