Add this file to your AI assistant's system prompt or context to help it avoid common AI writing patterns. Source: tropes.fyi by ossama.is
If you've used Claude Code, you've seen what an AI agent can actually do—read files, run commands, edit code, figure out the steps to accomplish a task.
And you know it doesn't just help you write code, it takes ownership of problems and works through them the way a thoughtful engineer would.
The Claude Agent SDK is the same engine, yours to point at whatever problem you want, so you can easily build agents of your own.
The Claude Agent SDK is how you build that same thing into your own applications.
| # Example of using SQLite VSS with OpenAI's text embedding API | |
| # from Ruby. | |
| # Note: Install/bundle the sqlite3, sqlite_vss, and ruby-openai gems first | |
| # OPENAI_API_KEY must also be set in the environment | |
| # Other embeddings can be used, but this is the easiest for a quick demo | |
| # More on the topic at | |
| # https://observablehq.com/@asg017/introducing-sqlite-vss | |
| # https://observablehq.com/@asg017/making-sqlite-extension-gem-installable |
| Dear BOSS, | |
| Please accept this letter as formal notification that I am resigning from my position as JOB TITLE with COMPANY. My last day will be DATE OF LAST DAY. | |
| Thank you so much for the opportunity to work in this position for the past DURATION. I’ve greatly enjoyed and appreciated the opportunities I’ve had to WTF DID YOU DO, and I’ve learned many things, all of which I will take with me throughout my career. | |
| During my last two weeks, I’ll do everything possible to wrap up my duties and train other team members. Please let me know if there’s anything else I can do to aid during the transition. | |
| I wish COMPANY continued success, and I hope to stay in touch in the future. | |
| Sincerely, |
| // Assuming you put the LP init code into a function called window.lpTagCustomInit | |
| document.addEventListener('turbolinks:before-cache', function(){ | |
| jQuery("[id^='LP_DIV']").empty(); | |
| }) | |
| document.addEventListener('turbolinks:load', function(){ | |
| delete window.liveperson; | |
| delete window.lpMTagConfig; | |
| delete window.lpTag; |
| version: '3' | |
| services: | |
| mssql-server-linux: | |
| image: microsoft/mssql-server-linux:latest | |
| volumes: | |
| - mssql-server-linux-data:/var/opt/mssql/data | |
| environment: | |
| - ACCEPT_EULA=Y | |
| - SA_PASSWORD=${SQLSERVER_SA_PASSWORD:-yourStrong(!)Password} |
iTerm2 - the popular terminal emulator for OSX has added some really neat features. One of those, is badges. From the documentation: A badge is a large text label that appears in the top right of a terminal session to provide dynamic status, such as the current host name or git branch.
I had some trouble figuring out how to build a badge so I wanted to share a quick walk-through. Thanks to Chris Mar for teaching me.
Easy enough - it's an option on the dropdown menu
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm
| # Channel | |
| class CommentsChannel < ApplicationCable::Channel | |
| def self.broadcast_comment(comment) | |
| broadcast_to comment.message, comment: CommentsController.render( | |
| partial: 'comments/comment', locals: { comment: comment } | |
| ) | |
| end | |
| def follow(data) | |
| stop_all_streams |
| #!/usr/bin/env bash | |
| # | |
| # gh-dl-release! It works! | |
| # | |
| # This script downloads an asset from latest or specific Github release of a | |
| # private repo. Feel free to extract more of the variables into command line | |
| # parameters. | |
| # | |
| # PREREQUISITES | |
| # |