Error: The following directories are not writable by your user:
/usr/local/bin
You should change the ownership of these directories to your user.
sudo chown -R $(whoami) /usr/local/bin
import rehypeStringify from "rehype-stringify"; | |
import remarkParse from "remark-parse"; | |
import remarkRehype from "remark-rehype"; | |
import remarkGfm from "remark-gfm"; | |
import unified, { ProcessorSettings, Settings } from "unified"; | |
import type { NextApiRequest, NextApiResponse } from "next"; | |
// case 1 curl -XPOST "http://localhost:3000/api/markdown/render" -d '{ "markdown": "#test\n##test\n\n| ![](https://divopsor.github.io/blog-images/2024/05/18/the-best-welfare-is-colleagues-2-present-1.jpg) | ![](https://divopsor.github.io/blog-images/2024/05/18/the-best-welfare-is-colleagues-2-present-2.jpg) |\n| --- | --- |\n| ![](https://divopsor.github.io/blog-images/2024/05/18/the-best-welfare-is-colleagues-2-present-3.jpg) | ![](https://divopsor.github.io/blog-images/2024/05/18/the-best-welfare-is-colleagues-2.jpg) |\n" }' -H "Content-Type: application/json" | jq | |
// case 2 curl -XPOST "http://localhost:3000/api/markdown/render" -d '{ "markdown": "test![width=100% test](https://asd.com)" }' -H "Content-Type: applicatio |
import * as calendar from "@googleapis/calendar"; | |
import { format, subDays, addDays, toDate } from "date-fns"; | |
const auth = new calendar.auth.GoogleAuth({ | |
credentials: { | |
client_email: process.env.GOOGLE_CLIENT_EMAIL, | |
private_key: process.env.GOOGLE_PRIVATE_KEY | |
}, | |
scopes: ["https://www.googleapis.com/auth/calendar.readonly"], | |
}); |
if [[ $(node -p "true") == "true" ]]; then | |
echo "it is true!" | |
fi |
{ command -v || exit 0; } && command something |
setTimeout(() => [...document.querySelectorAll('.timeline-comment-action.btn-link')].pop().click(), 0); | |
setTimeout(() => [...document.querySelectorAll('.details-overlay.details-overlay-dark.details-reset > summary')].pop().click(), 500); | |
setTimeout(() => document.querySelector('.btn-danger.btn.btn-block').click(), 1000); |
name: remote ssh command | |
on: [push] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy | |
run: | |
https://github.com/milooy/remote-or-flexible-work-company-in-korea |
git diff HEAD --shortstat |
Error: The following directories are not writable by your user:
/usr/local/bin
You should change the ownership of these directories to your user.
sudo chown -R $(whoami) /usr/local/bin
# rancher desktop 설치시 오류나면 | |
sudo ln -s "/Applications/Rancher Desktop.app/Contents/Resources/resources/darwin/bin/nerdctl" nerdctl |