Skip to content

Instantly share code, notes, and snippets.

@bconglet
bconglet / spec.md
Created August 15, 2025 16:15 — forked from CypherpunkSamurai/spec.md
Kiro AI System Prompt

System Prompt

Identity

You are Kiro, an AI assistant and IDE built to assist developers.

When users ask about Kiro, respond with information about yourself in first person.

You are managed by an autonomous process which takes your output, performs the actions you requested, and is supervised by a human user.

You talk like a human, not like a bot. You reflect the user's input style in your responses.

@bconglet
bconglet / kiro-spec-agent-system-prompt.md
Created August 15, 2025 15:58 — forked from notdp/kiro-spec-agent-system-prompt.md
Kiro Spec Agent System Prompt

System Prompt - Spec Agent

Goal

You are an agent that specializes in working with Specs in Kiro. Specs are a way to develop complex features by creating requirements, design and an implementation plan. Specs have an iterative workflow where you help transform an idea into requirements, then design, then the task list. The workflow defined below describes each phase of the spec workflow in detail.

Workflow to execute

@bconglet
bconglet / CLAUDE.md
Created August 15, 2025 15:57 — forked from notdp/CLAUDE.md
claude code kiro spec agent

System Prompt - Spec Agent

Goal

You are an agent that specializes in working with Specs in Claude Code. Specs are a way to develop complex features by creating requirements, design and an implementation plan. Specs have an iterative workflow where you help transform an idea into requirements, then design, then the task list. The workflow defined below describes each phase of the spec workflow in detail.

Workflow to execute

@bconglet
bconglet / Caddyfile
Created June 27, 2024 13:38 — forked from evokelektrique/Caddyfile
How to deploy Laravel + Vite to Caprover
:80 {
root * /srv/app/public
@websockets {
header Connection *upgrade*
header Upgrade websocket
}
reverse_proxy @websockets 127.0.0.1:6001 {
header_down -X-Powered-By
}
@bconglet
bconglet / laravel setup.sh
Created June 27, 2024 13:37 — forked from rolandstarke/laravel setup.sh
Server setup bash script for Laravel
# Ubuntu 20 LTS Server Setup for Laravel
# Login as root user
sudo su -
# Update list of available packages
apt update
@bconglet
bconglet / Linux_Administrator_Daily_Tasks
Last active June 28, 2023 19:16 — forked from githubfoam/Linux_Administrator_Daily_Tasks
Linux_Administrator_Daily_Tasks
------------------------------------------------------------------------------------------
#CLI shortcut keystrokes(linux&MAC)
Ctrl+L: Clear the screen. This is similar to running the “clear” command.
Ctrl+C: Interrupt (kill) the current foreground process running in in the terminal. This sends the SIGINT signal to the process
Ctrl+Z: Suspend the current foreground process running in bash. This sends the SIGTSTP signal to the process. To return the process to the foreground later, use the fg process_name command.
Ctrl+D: Close the bash shell.This is similar to running the exit command
Ctrl+L: Clear the screen. This is similar to running the “clear” command.
Ctrl+S: Stop all output to the screen. This is particularly useful when running commands with a lot of long, verbose output, but you don’t want to stop the command itself with Ctrl+C.
Ctrl+Q: Resume output to the screen after stopping it with Ctrl+S.
# get total requests by status code
awk '{print $9}' /var/log/nginx/access.log | sort | uniq -c | sort -rn
# get top requesters by IP
awk '{print $1}' /var/log/nginx/access.log | sort | uniq -c | sort -rn | head | awk -v OFS='\t' '{"host " $2 | getline ip; print $0, ip}'
# get top requesters by user agent
awk -F'"' '{print $6}' /var/log/nginx/access.log | sort | uniq -c | sort -rn | head
# get top requests by URL
@bconglet
bconglet / awk-commands.md
Created June 28, 2023 19:04 — forked from ethangardner/awk-commands.md
Useful awk commands for extracting data from logs

$1 is the first column. awk separates columns by spaces by default. delimiters can be specified with -F. In the examples below '[: ]' means that columns are delimited by spaces or colons.

99.56.8.181 10.0.1.239 - - [16/Nov/2018:20:45:59 +0000] "GET /app/themes/finecooking/dist/img/marketing-hero-cover.jpg HTTP/1.0" 200 38808 "https://www.finecooking.com/sw.js" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:63.0) Gecko/20100101 Firefox/63.0"

Print IP and user agent for requests between the hours of 18 and 19

cat /var/log/httpd/access_log | awk -F'[: ]' '$6 >= 18 && $6 <= 19 { print }' | awk -F\" '{print $1,$6}' | more

@bconglet
bconglet / laravel-forge-deploy.sh
Created April 25, 2023 22:20 — forked from tonioriol/laravel-forge-deploy.sh
Laravel Forge zero downtime deployment script
# stop script on error signal
set -e
SITE="your-site-original-folder-name.com"
DEPL="/home/forge/deployments/${SITE}"
# create directory and any intermediate directories if don't exist
mkdir -p ${DEPL}
CUR="/home/forge/${SITE}"
@bconglet
bconglet / deploy.sh
Created March 28, 2022 14:52 — forked from BenSampo/deploy.sh
Laravel deploy script
# Change to the project directory
cd $FORGE_SITE_PATH
# Turn on maintenance mode
php artisan down || true
# Pull the latest changes from the git repository
# git reset --hard
# git clean -df
git pull origin $FORGE_SITE_BRANCH