Skip to content

Instantly share code, notes, and snippets.

@kcjonson
kcjonson / nginx-unificontroller.conf
Last active May 14, 2019 19:40 — forked from vidia/nginx-unificontroller.conf
Example, working, NGINX config for proxying to Unifi Controller software and using letsencrypt. Includes websocket fix.
# I had a bit of trouble getting my unifi controller (hosted offsite) to use a proxy/letsencrypt. So here are the fruits of my labor.
# The unifi default port is 8443 running on localhost.
# License: CC0 (Public Domain)
server {
# SSL configuration
#
listen 443 ssl default_server;
listen [::]:443 ssl default_server;
@kcjonson
kcjonson / stats.json
Created November 19, 2016 00:05
Example stats from the CommonsChunkPlugin to use with the visualization tool
[
{
"request": "/Volumes/code/main/corvair/node_modules/babel-runtime/node_modules/core-js/library/modules/_iterators.js",
"userRequest": "/Volumes/code/main/corvair/node_modules/babel-runtime/node_modules/core-js/library/modules/_iterators.js",
"rawRequest": "./_iterators",
"sourceLength": 20
},
{
"request": "/Volumes/code/main/corvair/node_modules/babel-runtime/node_modules/core-js/library/modules/_library.js",
"userRequest": "/Volumes/code/main/corvair/node_modules/babel-runtime/node_modules/core-js/library/modules/_library.js",
@kcjonson
kcjonson / visualizer.html
Created November 18, 2016 23:50
Visualization tool for webpack common bundle stats.
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<script>
var height = 18;
var data = {
type: 'directory',
@kcjonson
kcjonson / Responsive CSS Demo - Media Queries
Last active December 19, 2015 20:18
Media Query CSS for Responsive Development Demonstration
/* Redfin Basic Responsive Demo - Media Query CSS
Eric Gideon & Kevin Jonson, 2013
For use with the HTML at https://gist.github.com/kcjonson/6011849
*/
/* SMALL - nav layout ONLY for screens UNDER 600PX wide */
@kcjonson
kcjonson / Responsive CSS Demo
Created July 16, 2013 19:43
Core CSS for Responsive Development Demonstration
/* Redfin Basic Responsive Demo - CSS
Eric Gideon & Kevin Jonson, 2013
For use with the HTML at https://gist.github.com/kcjonson/6011849
*/
/* Reset */
@kcjonson
kcjonson / Responsive HTML Demo
Last active December 19, 2015 20:09
Core HTML for Responsive Development Demonstration
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Responsive CSS demo" />
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>Responsive Layout demo</title>
<meta name="viewport" content="width=device-width, maximum-scale=1, minimum-scale=1">
<link rel="stylesheet" href="style.css">