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
mkdir -p ~/.docker/certs.d && curl -L -o ~/.docker/certs.d/Cloudflare_CA.pem https://developers.cloudflare.com/cloudflare-one/static/Cloudflare_CA.pem | |
colima restart |
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
To avoid having to enter passphrase for every git actions, e.g.: | |
> git push | |
Enter passphrase for key '/Users/ongbt/.ssh/id_ed25519': | |
Run: ssh-add --apple-use-keychain ~/.ssh/id_ed25519, e.g.: | |
> ssh-add --apple-use-keychain ~/.ssh/id_ed25519 | |
Enter passphrase for /Users/johndoe/.ssh/id_ed25519: xxxxxxx | |
Identity added: /Users/johndoe/.ssh/id_ed25519 (johndoe@xxx.com) |
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
#!/bin/bash | |
# Create a github repo and push to it | |
# Prequsite: | |
# - install gh: brew install gh | |
# - Authenticate with Github: gh auth login | |
# - Commit the codes first | |
# Check if an argument is provided | |
if [ $# -eq 0 ]; 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
npx create-nx-workspace learn-openapi --preset=empty --workspaceType=integrated --packageManager=pnpm --nxCloud=skip | |
- npx create-nx-workspace <project-name> | |
- https://nx.dev/nx-api/nx/documents/create-nx-workspace | |
Install plugins | |
pnpm add <plugin> --save-dev | |
- pnpm add @nx/nest --save-dev | |
- pnpm add @nx/react --save-dev |
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
The one in the guide (https://guide.signify.gov.sg/user-guides/api-guide/api-v2) is wrong format. | |
It should be like this: | |
curl -X POST "https://app.signify.gov.sg/public/v2/documents" \ | |
-H 'Authorization: Bearer xxxxxxx=' \ | |
-H 'Content-Type: multipart/form-data' \ | |
-F 'documentName="Document 1"' \ | |
-F 'file=@test.pdf' \ | |
-F 'documentMode="link"' \ |
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
brew list > brew.txt | |
code --list-extensions > vscode-extensions.txt | |
xargs brew install < brew.txt | |
cat vscode-extensions.txt | xargs -L1 code --install-extension |