Skip to content

Instantly share code, notes, and snippets.

View app.node.js
import {renderToStaticMarkup, renderToString} from "react-dom/server";
import {App} from "./App";
import {ServerStyleSheet} from "styled-components";
export default async (props = {}) => {
const sheet = new ServerStyleSheet();
const div = renderToString(sheet.collectStyles(<App {...props} />));
// there is no point to dynamicially change the head at runtime
// when users share a link, crawler will hit that link again
@wood1986
wood1986 / certbot-cloudflare
Created March 31, 2019 06:01
certbot-cloudflare
View certbot-cloudflare
#!/bin/bash
docker pull certbot/dns-cloudflare
mkdir -p /etc/letsencrypt
cd /etc/letsencrypt
touch dns-cloudflare.ini
chmod 600 dns-cloudflare.ini
echo -n "dns_cloudflare_email: "
read EMAIL