Queueing jobs in Postgres from Node.js like a boss.
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
| yesterdaysTimestamp=$(date -d "yesterday 13:00" +'%d/%b/%Y') | |
| # date is expected to be passed in the following format 18/Jul/2017 | |
| siteName="example.com" | |
| logPath="/srv/www/$siteName/logs/access.log" | |
| # Depending on the size of the access log you might have to add * to include multiple files | |
| # To grep through .gz files use zgrep instead of grep | |
| # grep -v 'onpage' excludes requests from onpage bot, add pipes to exclude other unwanted bots using Googlebot as their UserAgent | |
| # Prepare results | |
| googleBot=$(grep 'Googlebot' $logPath | grep $yesterdaysTimestamp | grep -v 'onpage' | wc -l) |
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
| <html> | |
| <head> | |
| <title>Check Prismic SEO Length Bookmarklet</title> | |
| </head> | |
| <body> | |
| <div> | |
| <h1>Drag this button to your bookmarks</h1> | |
| <button><a id="bookmarklet" href="" title="Check SEO Length">Check SEO length</a></button> | |
| <p>Then press the button on the editor page</p> | |
| </div> |
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
| <?php | |
| YoastSEO()->meta->for_post($post->ID)->title; | |
| YoastSEO()->meta->for_post($post->ID)->canonical; | |
| // Other values with their default values | |
| // 'canonical' => null, | |
| // 'title' => null, | |
| // 'description' => null, | |
| // 'open_graph_title' => null, | |
| // 'open_graph_image' => 'open_graph_image', |
Requirements:
- inside
.claudefolder in the home directory
add this to your global claude.md in
~/.claude/CLAUDE.md
This applies ONLY when Fable is the session model — on any other model, ignore this section entirely. Fable acts as the orchestrator: plan, decide, verify, talk to the user — and delegates the actual work to subagent minions, passing model explicitly in the Agent call:
- sonnet — self-contained, mechanical work: web research, codebase exploration, doc lookups, routine/well-specified edits, running tests
- opus — complex implementation: multi-file features, tricky refactors, debugging that needs judgment
Keep in the main thread only what needs full conversation context: architecture decisions, plan approval, final verification, user communication. Sonnet is the model floor — never pin haiku. Minions must return compact syntheses (findings, diffs, summaries), never raw page or file dumps.