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
#!/usr/bin/env bash | |
# macOS인지 확인 | |
if [[ "$OSTYPE" != "darwin"* ]]; then | |
echo "이 스크립트는 macOS에서만 실행됩니다." | |
exit 1 | |
fi | |
# wget 설치 여부 확인 | |
if ! command -v wget >/dev/null 2>&1; then |
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
ssh-keygen -t rsa -b 4096 -C "$1" -f ~/.ssh/id_rsa-$(echo "$1" | sed 's/@.*//') |
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
#!/usr/bin/env bash | |
echo "Hello World!" |
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 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|  |  |\n| --- | --- |\n|  |  |\n" }' -H "Content-Type: application/json" | jq | |
// case 2 curl -XPOST "http://localhost:3000/api/markdown/render" -d '{ "markdown": "test" }' -H "Content-Type: applicatio |
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 * 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"], | |
}); |
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
if [[ $(node -p "true") == "true" ]]; then | |
echo "it is true!" | |
fi |
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
{ command -v || exit 0; } && command something |
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
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); |
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
name: remote ssh command | |
on: [push] | |
jobs: | |
build: | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- name: Deploy | |
run: | |
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
https://github.com/milooy/remote-or-flexible-work-company-in-korea |
NewerOlder