name: task-coordinator description: Use this agent when you need to manage, execute, or coordinate tasks using the Task Master system. This includes checking task status, starting new tasks, updating progress, completing tasks, and managing task dependencies. The agent should be invoked when users mention working on tasks, checking what to do next, or need help with task management workflows.\n\n\nContext: The user wants to start working on their project and needs to know what task to work on.\nuser: "What should I work on next?"\nassistant: "Let me check your current tasks and find what you should work on next."\n\nSince the user is asking about what to work on, use the Task tool to launch the task-controller agent to check task status and identify the next task.\n\n\n\n\nContext: The user has been implementing a feature and wants to update their progress.\nuser: "I've finished implementing the authentication system"\nassistant: "I'll use the task-cont
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
| return { | |
| { | |
| "bjarneo/aether.nvim", | |
| branch = "v2", | |
| name = "aether", | |
| priority = 1000, | |
| opts = { | |
| transparent = false, | |
| colors = { | |
| -- Background colors |
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
| import type { ExtensionAPI } from "@mariozechner/pi-coding-agent"; | |
| import { truncateToWidth } from "@mariozechner/pi-tui"; | |
| import * as path from "node:path"; | |
| export default function (pi: ExtensionAPI) { | |
| pi.on("session_start", async (_event, ctx) => { | |
| if (!ctx.hasUI) return; | |
| ctx.ui.custom((tui, theme, _kb, done) => { | |
| const isAssistantComponent = (c: any) => |
I want to solve the following problem, but I’m stuck.
Please act as a “cognitive centrifuge.”
- Break the problem into exactly four numbered sub-problems.
- For each sub-problem, give me one concrete micro-action I can do in under 2 minutes that will either (a) make the problem smaller, or (b) give me new information.
- After the four micro-actions, add a one-line “momentum booster” I can say out loud to prime my brain to keep going.
- Format the whole thing so I can read it in <15 seconds.
Problem:
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
| import requests | |
| import time | |
| import os | |
| import sys | |
| import openai | |
| import tiktoken | |
| from termcolor import colored | |
| openai.api_key = open(os.path.expanduser('~/.openai')).read().strip() |
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
| 2teams() { | |
| NOW=$(date +"%Y-%m-%d_%H%M") | |
| if [ ! -z $2 ] ; then | |
| echo $NOW"_"$2.mp4 | |
| ffmpeg -i $1 -codec copy $NOW"_"$2.mp4 | |
| else | |
| echo $NOW"_teamsvid".mp4 | |
| ffmpeg -i $1 -codec copy $NOW"_teamsvideo".mp4 | |
| fi | |
| } |
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
| PROJECT=`php -r "echo dirname(dirname(dirname(realpath('$0'))));"` | |
| STAGED_FILES_CMD=`git diff --cached --name-only --diff-filter=ACMR HEAD | grep \\\\.php` | |
| # Determine if a file list is passed | |
| if [ "$#" -eq 1 ] | |
| then | |
| oIFS=$IFS | |
| IFS=' | |
| ' | |
| SFILES="$1" |
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
| -- hattip https://github.com/lodestone/hyper-hacks | |
| -- hattip https://gist.github.com/ttscoff/cce98a711b5476166792d5e6f1ac5907 | |
| -- A global variable for the sub-key Hyper Mode | |
| k = hs.hotkey.modal.new({}, 'F18') | |
| -- Hyper+key for all the below are setup somewhere | |
| -- The handler already exists, usually in Keyboard Maestro | |
| -- we just have to get the right keystroke sent |
Moved to git repository: https://github.com/denji/nginx-tuning
For this configuration you can use web server you like, i decided, because i work mostly with it to use nginx.
Generally, properly configured nginx can handle up to 400K to 500K requests per second (clustered), most what i saw is 50K to 80K (non-clustered) requests per second and 30% CPU load, course, this was 2 x Intel Xeon with HyperThreading enabled, but it can work without problem on slower machines.
You must understand that this config is used in testing environment and not in production so you will need to find a way to implement most of those features best possible for your servers.