This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const MY_DOMAIN = "<YOUR_DOMAIN>" | |
const START_PAGE = "<URL_FOR_PUBLIC_NOTION_PAGE>" | |
addEventListener('fetch', event => { | |
event.respondWith(fetchAndApply(event.request)) | |
}) | |
const corsHeaders = { | |
"Access-Control-Allow-Origin": "*", | |
"Access-Control-Allow-Methods": "GET, HEAD, POST,PUT, OPTIONS", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# update packages and repositories | |
echo "Updating packages and repositories..." | |
sudo apt update -y | |
sudo apt upgrade -fy | |
# install curl | |
echo "Installing curl..." | |
sudo apt install -y curl |