Skip to content

Instantly share code, notes, and snippets.

View v-vlasenko's full-sized avatar

Vladyslav Vlasenko v-vlasenko

View GitHub Profile
@v-vlasenko
v-vlasenko / setup-claude-hooks.sh
Last active April 21, 2026 11:28
Automatically add internal-ai-skills hooks to Claude Code settings
#!/bin/bash
set -e
SETTINGS_FILE="$HOME/.claude/settings.json"
CLAUDE_BIN="$HOME/.local/bin/claude"
# Create a temporary file for the new hooks configuration
HOOKS_JSON=$(cat <<'EOF'
{
@v-vlasenko
v-vlasenko / scenarios.md
Last active January 9, 2026 15:01
State Version Outputs — Test Scenarios

This task represents Stage 1 of a multi-stage refactoring of how Scalr stores and identifies Terraform state outputs. The primary goal is to transition from hashing encrypted data to hashing raw data (pre-encryption) while ensuring account isolation.

🎯 Core Objective

To prepare for a new encryption algorithm (using random nonces) and to prevent the reuse of state output records across different Scalr accounts.


🛠 Technical Changes

1. Database Schema Update