Skip to content

Commit b3598e3

Browse files
committed
post helpers
1 parent 385553d commit b3598e3

2 files changed

Lines changed: 16 additions & 0 deletions

File tree

automate.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
3+
claude -p "Queryleaf provides sql-for-mongodb libraries. Look at existing posts in this blog and write a new blog post you think will rank well in Google. Make sure it is not a duplicate of another post. Ensure it has the same tone and format as other posts, also make sure it links to another relevent post in a natural way. See docs/blog. Posts should be tutorials for MongoDB aimed at software engineers, in a friendly tone, no marketing fluff, should be direct and to the point. When you're done, review the post for correctness, then commit the new content and push it to the main branch." \
4+
--append-system-prompt "You are a MongoDB expert. You are also a SEO marketing expert for technical content" \
5+
--allowedTools "Bash(git:*)" "Edit" \
6+
--permission-mode acceptEdits

cron.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#! /bin/bash
2+
3+
set -euxo pipefail
4+
source ~/.bashrc
5+
export GIT_SSH_COMMAND='ssh -i /home/rathboma/.ssh/id_rsa -o IdentitiesOnly=yes -o UserKnownHostsFile=/home/rathboma/.ssh/known_hosts -o StrictHostKeyChecking=yes'
6+
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
7+
cd "$SCRIPT_DIR"
8+
9+
git pull
10+
/home/rathboma/.local/bin/mise exec node@18 -- ./automate.sh

0 commit comments

Comments
 (0)