Skip to content

Instantly share code, notes, and snippets.

View kakty3's full-sized avatar

Sergey Demurin kakty3

View GitHub Profile
@kakty3
kakty3 / idea-python-debug-containerized-app.md
Last active July 8, 2023 20:37
Настройка дебага контейнеризированного приложения в InelliJ Idea

Добавляем конфигурацию запуска

Переходим Run → Edit configurations → Add → Python Remote Debug

Указываем номер порта, например 11122.

Выключаем галку Suspend after connect.

В Path mappings нажимаем справа кнопку и указываем Local path - путь до папки с проектом на локальной машине, Remote path - путь до папки с проектом в контейнере, например: /opt/local/path/to/project=/opt/remote/path/to/project.

@kakty3
kakty3 / r13Reader.go
Last active January 31, 2022 19:04
Go tour rot13Reader
package main
import (
"io"
"os"
"strings"
)
type rot13Reader struct {
r io.Reader
@kakty3
kakty3 / tail.py
Last active August 29, 2015 14:13 — forked from amitsaha/tail.py
'''
Basic tail command implementation
Usage:
tail.py filename numlines
'''
import sys
import linecache