Skip to content

Commit

Permalink
chatbot prompt enhancement;macOS flush DNS
Browse files Browse the repository at this point in the history
  • Loading branch information
SichangHe committed May 4, 2024
1 parent b93ed22 commit 4d09819
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 5 deletions.
20 changes: 16 additions & 4 deletions src/notes/automation_software/chatbot_prompt.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,30 @@
# Chatbot Prompt

overall revision requirement
<style>
pre > code.hljs {
text-wrap: wrap;
}
</style>

general requirements:

```
*Requirements*: be professional and maximally succinct. Prefer verb over noun, adjective over adverb, active tense over passive tense. Avoid fluff or self-judgements. Do not lose any information. Keep the original language, style, and meaning as much as possible. Make minimal changes for improvement.
```

To remind the bot the requirements:

```
Help me revise the draft to be professional, succinct, personal, and attractive. Prefer verb over noun, adjective over adverb, active tense over passive tense. Avoid fluff or self-judgements. Do not lose any information. Keep the original language, style, and meaning as much as possible. Make minimal changes for improvement.
Repeat *requirements* verbatim.
```

point out problem but not revise
point out problem but not revise:

```
Criticize my draft and list all the problems. For each problem separately, quote my original words, reason about the problem, provide suggestions, and provide suggested change.
```

compress text
compress text:

```
Revise this part to make it more succinct, without loosing any information. Stay close to the original language and make minimal changes.
Expand Down
9 changes: 8 additions & 1 deletion src/notes/macos/index.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!-- toc -->
# macOS

get ID of app
get ID of app:

```bash
osascript -e 'id of app "SomeApp"'
Expand All @@ -16,3 +16,10 @@ sudo mdutil -a -i on
```

add big folders to Spotlight privacy ignore list

flush DNS cache:

```sh
sudo dscacheutil -flushcache
sudo killall -HUP mDNSResponder
```

0 comments on commit 4d09819

Please sign in to comment.