Skip to content

Instantly share code, notes, and snippets.

Matt Shull derekshull

Block or report user

Report or block derekshull

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@derekshull
derekshull / server.js
Created Jun 26, 2018
Code for "HTTPS on localhost in Nuxt" blog post
View server.js
const { Nuxt, Builder } = require('nuxt')
const app = require('express')()
const http = require('http')
const https = require('https')
const fs = require('fs-extra')
let server
const isProd = (process.env.NODE_ENV === 'production')
const port = process.env.PORT || 3000
@derekshull
derekshull / create-ssl-for-localhost
Created Jun 26, 2018
Command to create a key.pem and cert.pem for localhost
View create-ssl-for-localhost
openssl req \
-newkey rsa:2048 \
-x509 \
-nodes \
-keyout key.pem \
-new \
-out cert.pem \
-subj /CN=localhost \
-reqexts SAN \
-extensions SAN \
View keybase.md

Keybase proof

I hereby claim:

  • I am derekshull on github.
  • I am mattshull (https://keybase.io/mattshull) on keybase.
  • I have a public key ASCY6aEbWdqpE4N71aKJSm-Q5VgZc0MHungn9D19iwg0kwo

To claim this, I am signing this object:

@derekshull
derekshull / index.html
Last active Nov 30, 2016
Web Component without template.
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0">
<title>How to use the Custom Elements v1 + Shadow DOM v1 polyfills</title>
</head>
<body>
You can’t perform that action at this time.