Skip to content

Instantly share code, notes, and snippets.

View detroitenglish's full-sized avatar

Dave Willenberg detroitenglish

View GitHub Profile
@detroitenglish
detroitenglish / ParticlesBackground.vue
Last active July 9, 2020 07:28
Vuetify fullscreen splash + particles.js background
<template lang="pug">
v-container(
app,
fill-height,
fluid,
)
#particles-js
</template>
<script>
@detroitenglish
detroitenglish / zxcvbn-haveibeenpwned-pw-check.js
Last active January 10, 2020 00:04
Fastify Handler: Password Scoring with zxcvbn + haveibeenpwned Range Query API
import zxcvbn from 'zxcvbn'
import axios from 'axios'
import crypto from 'crypto'
// Input is first validated via native Fastify JSON-schema declaration
export async function passwordStrengthChecker(req, reply) {
const { password } = req.body
let message, pwned, ok
let { score } = zxcvbn(password)
try {
@detroitenglish
detroitenglish / Caddyfile
Last active October 14, 2019 18:30
Caddy Server via Docker for Pi-Hole on Raspberry Pi
# Copy this file to directory /etc/caddy
# i.e. as /etc/caddy/Caddyfile
:80 {
root /srv/pihole
errors stderr
proxy / 127.0.0.1:8012 {
transparent

Keybase proof

I hereby claim:

  • I am detroitenglish on github.
  • I am detroitenglish (https://keybase.io/detroitenglish) on keybase.
  • I have a public key ASB9tbntTS8l9WKLalS3fOLaPMmbh9c_oX-D9_sWZ0B1Rgo

To claim this, I am signing this object: