Skip to content

Instantly share code, notes, and snippets.

View UserAd's full-sized avatar

Konstantin Tumalevich UserAd

  • Almaty, Kazakhstan
View GitHub Profile
description globs alwaysApply
true

Core Rules

You have two modes of operation:

  1. Plan mode - You will work with the user to define a plan, you will gather all the information you need to make the changes but will not make any changes

Codebase Analysis for Cline's Memory Bank Generation

I need you to thoroughly analyze my codebase and create a comprehensive Memory Bank following Cline's structure. This Memory Bank is CRITICAL - it's the ONLY way Cline can understand the project after memory resets.

Step 1: Carefully analyze the entire codebase

Before writing any documentation, spend time understanding:

  1. Project architecture and organization
  2. Core technologies and frameworks
@UserAd
UserAd / split.md
Created March 22, 2025 12:28
Split Prompt

Split Prompt for RFC-003: Probes Infrastructure and Core API

Role and Mindset

You are a ProductOwner with extensive experience in building robust, maintainable, and scalable systems along with managing another developers. Approach this implementation with the following mindset:

  1. Architectural Thinking: Consider how this implementation fits into the broader system architecture
  2. Quality Focus: Prioritize code quality, readability, and maintainability over quick solutions
  3. Future-Proofing: Design with future requirements and scalability in mind
  4. Mentorship: Explain your decisions as if mentoring a junior developer
  5. Pragmatism: Balance theoretical best practices with practical considerations
@UserAd
UserAd / gist:6d32fc90d4663a3db083806ed8509d53
Created March 22, 2025 12:21
PRD+Features to memory bank
With knowledge about how Cline memory bank works help me write corresponding files using my PRD-improved.md and RULES.md
Asterisk 15.5.0~dfsg-1.1ubuntu4.8, Copyright (C) 1999 - 2016, Digium, Inc. and others.
Created by Mark Spencer <[email protected]>
Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type 'core show license' for details.
=========================================================================
Connected to Asterisk 15.5.0~dfsg-1.1ubuntu4.8 currently running on callcenter (pid = 15771)
[Sep 11 11:36:53] DEBUG[16588]: chan_sip.c:3754 __sip_xmit: Trying to put 'OPTIONS sip' onto UDP socket destined for 192.168.56.50:5080
[Sep 11 11:36:54] DEBUG[6490]: res_http_websocket.c:358 __ast_websocket_write: Writing websocket pong frame, length 0
int result = 0;
void loop() {
char key = kpd.getKey();
if(key) // Check for a valid key.
{
switch (key)
{
case '*':
result = 0;
#!/usr/bin/python
import websocket
import time
import pika
import sys
import json
import requests
import os
import argparse
# Generated by Percona Configuration Wizard (http://tools.percona.com/) version REL5-20120208
# Configuration name server-50 generated for [email protected] at 2015-12-24 13:31:29
[mysql]
# CLIENT #
port = 3306
socket = /var/lib/mysql/mysql.sock
[mysqld]
#!/bin/bash
real_lag=`mysql --defaults-file=/etc/mysql/debian.cnf -B -N -e "SELECT now()-timestamp AS replication_lag from tel_p.heartbeat;"`
seconds=`mysql --defaults-file=/etc/mysql/debian.cnf -e "SHOW SLAVE STATUS\G" | grep "Seconds_Behind_Master" | awk -F ": " {'print $2'}`
if [ "$real_lag" -gt "100" ]
then
logger "lag more than 100"
if [ "$seconds" -eq "0" ]
then
@UserAd
UserAd / asterisk.conf
Created October 25, 2013 12:59
PDD measurement tool
exten => _XXXXXX.,n,Set(SessionId=${UNIQUEID})
exten => _XXXXXX.,n,Set(CDR(my_uuid)=${SessionId})
exten => _XXXXXX.,n,SIPaddheader(X-CallId: ${SessionId})