Skip to content

Instantly share code, notes, and snippets.

View liril-net's full-sized avatar

Cyril Su liril-net

View GitHub Profile
@liril-net
liril-net / symbol-polyfill.js
Last active December 27, 2018 06:00
Symbol Polyfill
const GlobalSymbolRegistry = {}
const INTERNAL = {
hasInstance: true,
isConcatSpreadable: true,
iterator: true,
match: true,
replace: true,
search: true,
species: true,
@liril-net
liril-net / get-wildcard-certificates.sh
Last active December 13, 2018 02:42
Get letsencrypt wildcard certificates
DOMAIN=foo.bar && \
docker run -it --rm --name letsencrypt \
-v "$PWD/letsencrypt/etc/letsencrypt:/etc/letsencrypt" \
-v "$PWD/letsencrypt/var/lib/letsencrypt:/var/lib/letsencrypt" \
quay.io/letsencrypt/letsencrypt:latest \
certonly \
-d $DOMAIN \
-d *.$DOMAIN \
--manual \
--preferred-challenges dns \