Skip to content

Instantly share code, notes, and snippets.

View Alzy's full-sized avatar
👷‍♂️
_hi

Alfredo Gonzalez-Martinez Alzy

👷‍♂️
_hi
  • 1646.ca / StemLink.net
  • Reseda, CA
View GitHub Profile
@lilbond
lilbond / paper-und-redo-eg.js
Created May 30, 2021 16:07
Simple undo/redo sample with paper.js using mouse and keyboard events
var EventType = {
mouseUp: 1,
mouseDown: 2,
undo: 3,
redo: 4
}
function Event(type, payload) {
this.type = type;
this.payload = payload;
@andrewlkho
andrewlkho / README.md
Last active July 22, 2024 16:24
Implementing HTTPS on NFSN (nearlyfreespeech.net) hosting using Let's Encrypt

These instructions are for implementing HTTPS on a NFSN-hosted static site using a certificate from Let's Encrypt. The certificate is generated manually on a separate computer.

Start off by installing the letsencrypt client. This requires sudo privileges and will install a bunch of packages:

% curl -O https://dl.eff.org/certbot-auto
% chmod +x ./certbot-auto
% ./certbot-auto

Generate the certificate. This will require you to publish some challenge responses on NFSN. I find it easiest to use tmux with letsencrypt running in one window and an SSH session to NFSN in another: