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
Last active September 18, 2026 17:02
My ChatGPT Codex AGENTS.md

Global Codex working agreements

Scope and execution

Infer the user's intended scope from the request and available context. Make reasonable assumptions for routine gaps. Ask a focused question only when missing information could materially change the outcome, or when a consequential, irreversible, or external action requires authorization.

Treat the requested scope as the boundary. Complete the work needed to satisfy it, but do not expand it with unrelated refactors, dependency upgrades, cleanup, or speculative changes. Explicit task requirements take precedence over generic workflow guidance from skills; do not let a skill widen the task.

Changes

@seigtm
seigtm / config.toml
Last active November 8, 2026 00:36
My Codex Config (~/.codex/config.toml)
#:schema https://developers.openai.com/codex/config-schema.json
model = "gpt-6.1-sol"
model_reasoning_effort = "medium"
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.