Skip to content

Instantly share code, notes, and snippets.

View tshabatyn's full-sized avatar

Taras Shabatyn tshabatyn

View GitHub Profile

Engineering Flow with Claude Code

This document captures the workflow for developing this platform using Claude Code as a collaborative partner. Intended for humans.

Principles

Treat Claude Code as a collaborator. Respect CC as an equal partner, not a junior executor. Discuss trade-offs, ask for opinions, and value its perspective. The relationship is collaborative, not directive.

Focus personal attention on architecture. Code quality can be tolerated and fixed later. Architectural issues cannot—they compound and stab you in the back. Review architecture decisions carefully, let CC handle implementation details.

@tshabatyn
tshabatyn / confirm.Makefile
Created February 3, 2023 16:37 — forked from Pierstoval/confirm.Makefile
"confirm" action for your Makefile
# To use the "confirm" target inside another target,
# use the " if $(MAKE) -s confirm ; " syntax.
mycommand:
@if $(MAKE) -s confirm ; then \
execute_your_command_here ; \
fi
.PHONY: mycommand
# The CI environment variable can be set to a non-empty string,
@Pierstoval
Pierstoval / confirm.Makefile
Last active December 18, 2025 21:20
"confirm" action for your Makefile
# To use the "confirm" target inside another target,
# use the " if $(MAKE) -s confirm ; " syntax.
mycommand:
@if $(MAKE) -s confirm ; then \
execute_your_command_here ; \
fi
.PHONY: mycommand
# The CI environment variable can be set to a non-empty string,
@molotovbliss
molotovbliss / README.md
Last active August 22, 2025 11:51
Speed up warden for faster importing of large sql dumps.

Speed up warden for faster importing of large sql dumps.

  1. Add the innodb options to the warden/environments/magento2.base.yml docker-compose YML file.
  2. Restart warden environment warden env down && warden sync stop && warden env up -d && warden sync start
  3. Import the .sql file with warden db import.
  4. Remove options & restart warden enviornment once import completed.

Why these settings

  • innodb_buffer_pool_size : Will cache frequently read data
@chusiang
chusiang / teams-chat-post-for-workflows.sh
Last active November 6, 2025 05:42
Post a message to Microsoft Teams with bash script.
#!/bin/bash
# =============================================================================
# Author: Chu-Siang Lai / chusiang (at) drx.tw
# Filename: teams-chat-post-for-workflows.sh
# Modified: 2024-07-22 11:44 (UTC+08:00)
# Description: Post a message to Microsoft Teams via "Post to a chat when a webhook request is received" workflows.
# Reference:
#
# - https://gist.github.com/chusiang/895f6406fbf9285c58ad0a3ace13d025
# - https://devblogs.microsoft.com/microsoft365dev/retirement-of-office-365-connectors-within-microsoft-teams/
@ydenyshchenk
ydenyshchenk / urlRewriteReindex.php
Last active April 12, 2017 20:20
Magento 2 URL Rewrite full reindex
<?php
/*
###############################################
WARNING: this script truncates url rewrite tables and generates system url rewrites;
ALL CUSTOM URL REWRITES WILL BE DELETED
###############################################
*/
const BATCH_SIZE = 5;
@aabumuslimov
aabumuslimov / Magento1 indexers healthcheck
Last active March 9, 2017 10:17
Magento1 indexers healthcheck
SELECT m.metadata_id, m.table_name, m.changelog_name, IF(ccd.value = 1, "On Save", "Scheduled") AS "Mode", m.version_id AS "Processed version", v.version_id AS "Changelog version"
, CAST(v.version_id AS SIGNED) - CAST(m.version_id AS SIGNED) AS "Behind"
FROM (
(SELECT "enterprise_url_rewrite_redirect_cl" AS changelog_name, "index_management/index_options/redirect_url_rewrite" AS path, version_id FROM enterprise_url_rewrite_redirect_cl ORDER BY version_id DESC LIMIT 1)
UNION (SELECT "cataloginventory_stock_status_cl", "index_management/index_options/product_price_and_stock", version_id FROM cataloginventory_stock_status_cl ORDER BY version_id DESC LIMIT 1)
UNION (SELECT "catalogsearch_fulltext_cl", "index_management/index_options/fulltext", version_id FROM catalogsearch_fulltext_cl ORDER BY version_id DESC LIMIT 1)
UNION (SELECT "enterprise_url_rewrite_category_cl", "index_management/index_options/category_url_rewrite", version_id FROM enterprise_url_rewrite_category_cl ORDER BY version_id DESC LIMIT 1)
UNION
@terry-heinel
terry-heinel / checkDockerDisks.sh
Created January 30, 2017 22:56 — forked from robsonke/checkDockerDisks.sh
This Bash script will loop through all running docker containers on a host and list the disk usage per mount. In case it's breaching the 65%, it will email you.
#!/bin/bash
# get all running docker container names
containers=$(sudo docker ps | awk '{if(NR>1) print $NF}')
host=$(hostname)
# loop through all containers
for container in $containers
do
echo "Container: $container"
@kandy
kandy / bootstrap.php
Created December 13, 2016 08:15
db profiler
<?php
// add to bootstrap.php
register_shutdown_function(function (){
if (strpos(@$_SERVER['HTTP_ACCEPT'], 'text/html') !== false) {
/** @var \Magento\Framework\App\Resource $adapter */
$adapter = \Magento\Framework\App\ObjectManager::getInstance()
->get('Magento\Framework\App\ResourceConnection');
// composer.phar require "jdorn/sql-formatter:1.3.*@dev"
// require_once '/home/user/.composer/vendor/jdorn/sql-formatter/lib/SqlFormatter.php';
/** @var Zend_Db_Profiler $profiler */
@davidalger
davidalger / sysadmin-shortcuts.md
Last active February 2, 2024 09:17
sysadmin-shortcuts

list listening ports

sudo lsof -nP -iTCP -sTCP:LISTEN
sudo netstat -plunt

flush DNS on Mojave

sudo killall -HUP mDNSResponder

immediately sleep displays