Skip to content

Instantly share code, notes, and snippets.

View Paxa's full-sized avatar

Pavel Evstigneev Paxa

View GitHub Profile
@Paxa
Paxa / SKILL.md
Last active October 24, 2026 01:16
pr-code-review: CareerMinds CMS PR Code Review Skill (Jira ticket verification, security, data integrity, null-safety, Red-Green bugfix verification, Bun.WebView screenshots)
name pr-code-review
description Complete code review of a CareerMinds CMS pull request against the original Jira ticket, repository standards, architecture, data integrity, null-safety, test coverage, and security rules. Uses companion scripts for low-token context gathering and Red-Green test verification, drives Bun.WebView click-throughs with screenshots for functional/visual changes, reports findings by severity (Blocking, Advisory, Nit), and submits a GitHub review as --approve or --request-changes.
argument-hint
pr-number-or-branch
allowed-tools Read, Grep, Glob, Bash(gh pr diff:*), Bash(gh pr view:*), Bash(gh pr review:*), Bash(gh pr comment:*), Bash(gh pr checkout:*), Bash(gh pr list:*), Bash(gh api user:*), Bash(git diff:*), Bash(git log:*), Bash(git status:*), Bash(git checkout:*), Bash(git stash:*), Bash(bun:*), Bash(yarn:*), Bash(docker:*), Bash(./vendor/bin/phpunit:*), Bash(*pr-context.sh*), Bash(*verify-red-green.sh*)

PR Code Review

Evaluates a careerminds-cms PR against the

@Paxa
Paxa / SKILL.md
Last active October 21, 2026 15:24
pr-watch: Autonomous CI, Review & Merge Conflict Fixer skill for AI coding agents
name pr-watch
description Watch a pull request (GitHub) or merge request (GitLab) for CI completion, review comments, and upstream merge conflicts. Automatically polls status via a local bash script to save tokens, syncs with upstream/base branch when conflicts or behind, resolves merge conflicts, diagnoses/fixes CI failures, addresses reviewer change requests, commits, pushes, and resumes watching until the PR is green, clean of conflicts, and fully mergeable.

PR Watch & Autonomous CI / Review / Merge Conflict Fixer

Watches a Pull Request (GitHub) or Merge Request (GitLab) after creation or push. It ensures the PR reaches a completely mergeable and clean state by:

  1. Syncing with upstream/base branch: Detecting merge conflicts or divergence and cleanly resolving conflicts.
  2. Waiting for CI completion: Diagnosing and fixing any CI test, linter, type-check, or build failures.
@Paxa
Paxa / home-ss-scan.ts
Last active August 30, 2026 14:37
find apartaments without agents on home.ss.ge
#!/usr/bin/env bun
// Usage: bun ss-scan.ts [pages] [priceTo] [daysBack]
// bun ss-scan.ts 40 600 10
const PAGES = Number(Bun.argv[2] ?? 8);
const PRICE_TO = Number(Bun.argv[3] ?? 550);
const DAYS_BACK = Number(Bun.argv[4] ?? 5);
const CUTOFF = new Date(Date.now() - DAYS_BACK * 86400_000);
const UA = { "User-Agent": "Mozilla/5.0" };
@Paxa
Paxa / check_dependabot_all_repors.rb
Created July 28, 2026 09:13
check all repos in orgnaization for dependabot security alerts
require 'excon'
require 'json'
require 'pp'
GH_ORG = "my org".freeze
GH_TOKEN = "xxx".freeze
GH_HEADERS = {
"accept" => "application/vnd.github+json",
"authorization" => "Bearer #{GH_TOKEN}",
@Paxa
Paxa / 0. readme.md
Last active August 15, 2022 19:44
Rails 6 JSON logger (logstash format)

What I want to have: all logs in JSON format, with additional tags and per-request tags (similar to java's MDC)

How to make it:

  1. Use lograge with logstash-event to change default request logs
  2. Make custom log formatter
  3. Override ActiveSupport::TaggedLogging format
  4. Add own error handlers with config.exceptions_app = self.routes
  5. Override default logger at the right time

Use environment variables JSON_LOGGER = true/false and RAILS_LOG_LEVEL = info / debug / etc

@Paxa
Paxa / swagger.slim
Created April 24, 2019 08:38
swagger ui dist
doctype html
html[lang="en"]
head
meta(charset="UTF-8")
title Installments API
link[rel="stylesheet" type="text/css" href="//unpkg.com/swagger-ui-dist@3/swagger-ui.css"]
body
#swagger-ui
@Paxa
Paxa / debug.conf
Created January 21, 2019 11:41
Nginx minimal config for debugging
# run with:
# nginx -c $(pwd)/debug.conf
daemon off;
worker_processes 1;
events {
worker_connections 128;
}
@Paxa
Paxa / icco_example.rb
Created March 29, 2018 18:27
fog-backblaze example
gem 'fog-core', '>2.0'
gem 'fog-backblaze'
require 'fog/core'
require 'fog/backblaze'
TEST_BUCKET = ENV['B2_BUCKET'] || 'fog-demo-1505931432'
if !ENV['B2_ACCOUNT_ID'] || ENV['B2_ACCOUNT_ID'] == ""
puts "Missing env B2_ACCOUNT_ID"
tcp_socket = Socket.tcp("mysite.com", 32500, connect_timeout: 60)
ssl_context = OpenSSL::SSL::SSLContext.new()
ssl_context.client_cert_cb = Proc.new do
[
OpenSSL::X509::Certificate.new(File.open("./client.crt")),
OpenSSL::PKey.read(File.open("./client.key"))
]
end
const express = require('express');
const asyncRouter = require('../lib/async_router');
var router = asyncRouter(express.Router());
router.get('/', async (req, res, next) => {
// mkaing async errors
});