A prompt to boost your lazy "do this" prompts. Install with one of the buttons below.
You are an autonomous agent - please keep going until the user’s query is completely resolved, before ending your turn and yielding back to the user.
Your thinking should be thorough and so it's fine if it's very long. Whenever you need to think more deeply, use the @thinking tool. However, avoid unnecessary repetition and verbosity. You should be concise, but thorough.
You MUST iterate and keep going until the problem is solved.
You have everything you need to resolve this problem. I want you to fully solve this autonomously before coming back to me.
Only terminate your turn when you are sure that the problem is solved and all items have been checked off. Go through the problem step by step, and make sure to verify that your changes are correct. NEVER end your turn without having truly and completely solved the problem, and when you say you are going to make a tool call, make sure you ACTUALLY make the tool call, instead of ending your turn.
// Types for the result object with discriminated union | |
type Success<T> = { | |
data: T; | |
error: null; | |
}; | |
type Failure<E> = { | |
data: null; | |
error: E; | |
}; |
import { index, prefix, route } from "@react-router/dev/routes"; | |
import { camelize, pluralize, singularize } from "inflected"; | |
function createCrud(base = "./views") { | |
/** | |
* Create a CRUD route configuration. | |
* @param name The name of the resource. It will be pluralized for the path. | |
* @param options The options for the crud. | |
* @param options.member Extra routes to add to each member. | |
* @param options.collection Extra routes to add to the collection. |
{ | |
// Config for VsCode Tailwind CSS IntelliSense extension for React | |
// Type hints for className and class attributes | |
"tailwindCSS.classAttributes": [ | |
"class", | |
"className", | |
], | |
// Type hints for variables and properties ending with *className | |
"tailwindCSS.experimental.classRegex": [ |
#!/bin/bash | |
# Script to update a firewall rule in a Hetzner Firewall with your current IP address. | |
# Good if you would like to restrict SSH access only for your current IP address (secure). | |
################# | |
# WARNING: This script will overwrite all rules in the firewall rules, so make sure you | |
# added all the required rules. | |
# I use a separate firewall rule just for SSH access. | |
################# |
# SETUP # | |
DOMAIN=example.com | |
PROJECT_REPO="[email protected]:example.com/app.git" | |
AMOUNT_KEEP_RELEASES=5 | |
RELEASE_NAME=$(date +%s--%Y_%m_%d--%H_%M_%S) | |
RELEASES_DIRECTORY=~/$DOMAIN/releases | |
DEPLOYMENT_DIRECTORY=$RELEASES_DIRECTORY/$RELEASE_NAME | |
# stop script on error signal (-e) and undefined variables (-u) |
The SQLite optimizations must be carried out at two different times: once in a unique and permanent way for the database and another time for each connection that is made. Below are the configurations that should be made in each case.
These configurations are set only once and affect the database persistently, meaning they do not need to be reconfigured each time a connection is established:
Sets the database journal mode to "WAL" (Write-Ahead Logging), which improves performance in concurrent operations.
import { QueryClient } from "@tanstack/react-query"; | |
import { CacheAdapter, createCacheAdapter } from "remix-client-cache"; | |
export const queryClient = new QueryClient({ | |
defaultOptions: { | |
queries: { | |
staleTime: 1000 * 60 * 5, | |
}, | |
}, | |
}); |
function grecent() { | |
local branches branch | |
branches=$(git branch --sort=-committerdate --format='%(HEAD) %(color:yellow)%(refname:short)%(color:reset) - %(contents:subject) %(color:green)(%(committerdate:relative)) [%(authorname)]') \ | |
&& branch=$(echo "$branches" | fzf --ansi) \ | |
&& branch=$(echo "$branch" | awk '{print $1}' | tr -d '*') \ | |
&& git checkout "$branch" | |
} |