Skip to content

Instantly share code, notes, and snippets.

@delta0800
delta0800 / notion2blog.js
Created January 17, 2024 03:50 — forked from mayneyao/notion2blog.js
Notion.so > Personal Blog | custom domain + disqus comment
const MY_DOMAIN = "agodrich.com"
const START_PAGE = "https://www.notion.so/gatsby-starter-notion-2c5e3d685aa341088d4cd8daca52fcc2"
const DISQUS_SHORTNAME = "agodrich"
addEventListener('fetch', event => {
event.respondWith(fetchAndApply(event.request))
})
const corsHeaders = {
"Access-Control-Allow-Origin": "*",
@delta0800
delta0800 / Coronavirus.js
Created May 25, 2021 16:12 — forked from rsalzer/Coronavirus.js
Coronavirus Scriptable Widget
// Variables used by Scriptable.
// These must be at the very top of the file. Do not edit.
const canton = "ZH"
const url = `https://covid19-rest.herokuapp.com/api/openzh/v1/country/CH/area/${canton}`
const req = new Request(url)
const res = await req.loadJSON()
const today = res.records[res.records.length-1]
const yesterday = res.records[res.records.length-2]
const twodaysago = res.records[res.records.length-3]
@delta0800
delta0800 / nginx.conf
Created December 20, 2020 13:59 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048