This file contains hidden or 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
import { Client } from "@notionhq/client"; | |
import "dotenv/config"; | |
console.log(process.env.NOTION_KEY); | |
const notion = new Client({ auth: process.env.NOTION_KEY }); | |
const databaseId = process.env.NOTION_DATABASE_ID; | |
async function addItem(text) { | |
try { | |
const response = await notion.pages.create({ |
This file contains hidden or 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
.notion-peek-renderer > div:nth-child(2){background-color: #28282F !important;} | |
div.notion-bookmark-block *{color:#A2A2A6 !important;} | |
.notion-peek-renderer > div:nth-child(2) > div:nth-child(1) {display: none !important;} | |
div.notion-scroller:nth-child(3) > div:nth-child(2){display:none !important;} | |
.notion-light-theme .notion-frame {background-color: #28282F !important;} | |
.notion-page-content {color: #A2A2A6 !important;} | |
[placeholder*="Heading"]{color:#61F0A9 !important;} | |
[placeholder*="Untitled"]{color:#61F0A9 !important;} | |
.notion-link-token:hover{color:#61F0A9 !important;} | |
div.notion-selectable:nth-child(6) > div:nth-child(1) > div:nth-child(3) > div:nth-child(1) {font-size: 14px !important;} |
This file contains hidden or 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
💻Windows: robocopy "SOURCEPATH" "DESTINATIONPATH" /E /MIR | |
💻macOs: rsync -r -v -u SOURCEPATH "DESTINATIONPATH" | |
With macOs add "-- delete" to remove files at the destination that are not in source. | |
Shebang for macOS script: #!/bin/bash |