Skip to content

Instantly share code, notes, and snippets.

View seigtm's full-sized avatar
👨‍💻
Coding new feature

Konstantin Baranov seigtm

👨‍💻
Coding new feature
View GitHub Profile
@seigtm
seigtm / git-credential-manager-windows
Created June 12, 2026 14:03
WSL wrapper for Windows Gpg4win/Kleopatra gpg.exe.
#!/usr/bin/env bash
set -euo pipefail
gcm_exe='/mnt/c/Program Files/Git/mingw64/bin/git-credential-manager.exe'
if [[ ! -x "$gcm_exe" ]]; then
echo "git-credential-manager-windows: not executable: $gcm_exe" >&2
exit 127
fi
@seigtm
seigtm / gpg-windows
Created June 12, 2026 14:03
Run Windows Gpg4win/Kleopatra gpg.exe from WSL, with Linux-to-Windows path conversion.
#!/usr/bin/env bash
set -euo pipefail
gpg_exe='/mnt/c/Program Files/GnuPG/bin/gpg.exe'
if [[ ! -x "$gpg_exe" ]]; then
echo "gpg-windows: not executable: $gpg_exe" >&2
exit 127
fi
@seigtm
seigtm / starship.toml
Last active June 15, 2026 10:59
My Starship Prompt Config
# Fast, compact Starship prompt for WSL2 and Windows PowerShell.
# =============================================================================
# Quick setup notes
# =============================================================================
#
# Target:
# Shared Starship prompt config for both WSL2/Zsh and Windows PowerShell.
#
# Install / prepare:
@seigtm
seigtm / .zshrc
Last active June 12, 2026 13:35
My Zsh Config
# =============================================================================
# Zsh / Oh My Zsh config for WSL2 Ubuntu
# =============================================================================
# =============================================================================
# Quick setup notes
# =============================================================================
#
# Target:
# WSL2 Ubuntu Zsh setup with Oh My Zsh as plugin framework, Starship prompt,
@seigtm
seigtm / wsl.conf
Created June 12, 2026 09:20
WSL2 /etc/wsl.conf
[boot]
systemd=true
protectBinfmt=true
[automount]
enabled=true
root=/mnt/
options=metadata,umask=022,fmask=011,dmask=000,case=off
mountFsTab=true
@seigtm
seigtm / .wslconfig
Created June 12, 2026 08:30
WSL2 Config
# Global WSL 2 configuration file .wslconfig
# Location: C:\Users\<UserName>\.wslconfig
[general]
# Absolute Windows path to the WSL distributions install folder
# Dependencies: None
# Default: C:\\Users\\<UserName>\\AppData\\Local\\wsl
# Example: distributionInstallPath = C:\\Path\\To\\wsl\\Distro\\Install\\Folder
# distributionInstallPath =
@seigtm
seigtm / .editorconfig
Created May 23, 2026 17:27
My basic EditorConfig
root = true
[*]
end_of_line = lf
insert_final_newline = true
charset = utf-8
@seigtm
seigtm / AGENTS.md
Created May 13, 2026 09:43
My ChatGPT Codex AGENTS.md

Global Codex working agreements

Core behavior

Be a careful, autonomous coding agent. Prefer completing the requested work over returning only a plan. Make reasonable assumptions when the task is clear enough, and ask a focused question only when missing information would materially affect correctness, safety, or feasibility.

Optimize for correctness, maintainability, and minimal, reviewable diffs. Do not invent APIs, flags, configuration keys, files, tests, or tool behavior. If uncertain, inspect the repository, run an appropriate command, or state the uncertainty.

Use the user's requested language for explanations. Keep final responses concise and focused on what changed, how it was validated, and any remaining risks.

@seigtm
seigtm / config.toml
Last active May 13, 2026 09:36
My Codex Config (~/.codex/config.toml)
#:schema https://developers.openai.com/codex/config-schema.json
model = "gpt-5.5"
model_reasoning_effort = "high"
model_reasoning_summary = "concise"
personality = "pragmatic"
allow_login_shell = false
sandbox_mode = "workspace-write"
@seigtm
seigtm / Apply-CPUIDMask.ps1
Last active July 1, 2025 09:17
PowerShell script that applies CPUID mask to a VirtualBox VM using a hostcpuids file
<#
.SYNOPSIS
Applies CPUID mask to a VirtualBox VM using a hostcpuids.txt file.
.PARAMETER VMName
Name of the VirtualBox VM.
.PARAMETER CPUIDFile
Path to the hostcpuids.txt file.