SSH into Trellis server and delete the CSRs in
/var/lib/letsencrypt/csrs
SSH into Trellis server and delete the certs in
/etc/nginx/ssl/letsencrypt
Set ssl
// https://matthewlein.com/tools/ceaser | |
class Scroll { | |
constructor() { | |
document.documentElement.style.scrollBehavior = 'auto'; | |
document.body.style.scrollBehavior = "auto"; | |
window.addEventListener("scroll", this.outputScroll); |
const lerp = (v0, v1, t) => { | |
return (1 - t) * v0 + t * v1; | |
} | |
const scale = (num, in_min, in_max, out_min, out_max) => { | |
return ((num - in_min) * (out_max - out_min)) / (in_max - in_min) + out_min; | |
}; | |
y=1-x^{3} |
async function getGameId(){ | |
// Create a 6 figure game code. | |
let idSize = 2; | |
let id = Math.floor(Math.random() * Math.pow(10, idSize)).toString(); | |
id = id.padStart(idSize, '0'); | |
// See if that game already exists | |
let snapshot = await db.collection("games").doc(id).get() | |
if (snapshot.exists) { | |
console.log("Game " + id + " already exists"); |
// Demo / visualisation: | |
// https://codepen.io/EightArmsHQ/pen/BaavyPQ | |
let WeightedRandom = { | |
random(){ | |
return Math.random(); | |
}, | |
sphere(){ | |
return (Math.sin(1-Math.random() * 2 * Math.PI)+1) / 2; | |
}, |
import debounce from "lodash/debounce" | |
let localStorageAvailable = () => { | |
let test = 'test'; | |
try { | |
localStorage.setItem(test, test); | |
localStorage.removeItem(test); | |
return true; | |
} catch(e) { | |
return false; |
<template> | |
<div class="calendar"> | |
<nav class="calendar__nav"> | |
<a @click="decMonth" class="calendar__chevron btn btn-primary"> | |
← | |
</a> | |
<b>{{ monthName }}</b> | |
<b>{{ year }}</b> | |
<a @click="incMonth" class="calendar__chevron btn btn-primary"> | |
→ |
// Requires datejs | |
// https://github.com/datejs/Datejs | |
<template> | |
<div id="calendar"> | |
<nav class="calendar--nav"> | |
<a @click="decMonth" class="calendar--nav--chevron"> | |
<i class="fa fa-chevron-left" aria-hidden="true"></i> | |
</a> | |
<b>{{ monthArray[month] }}</b> |
SSH into Trellis server and delete the CSRs in
/var/lib/letsencrypt/csrs
SSH into Trellis server and delete the certs in
/etc/nginx/ssl/letsencrypt
Set ssl
git clone [email protected]:roots/trellis.git trellis | |
cd trellis && ansible-galaxy install -r requirements.yml | |
cd .. | |
git clone [email protected]:roots/bedrock.git site | |
cd site && composer install | |
cd .. | |
sublime trellis/group_vars/development/wordpress_sites.yml | |
sublime trellis/group_vars/development/vault.yml | |
cd trellis && vagrant up |
git clone [email protected]:roots/trellis.git trellis | |
cd trellis && ansible-galaxy install -r requirements.yml | |
cd .. | |
git clone [email protected]:roots/bedrock.git site | |
cd site && composer install | |
cd .. | |
sublime trellis/group_vars/development/wordpress_sites.yml | |
sublime trellis/group_vars/development/vault.yml | |
cd trellis && vagrant up |