Skip to content

Instantly share code, notes, and snippets.

View mkostechuk's full-sized avatar
🐶
Such magic, much wow

Mikhail mkostechuk

🐶
Such magic, much wow
  • Moscow / Singapore
View GitHub Profile
@sanyarnd
sanyarnd / README.md
Last active March 12, 2026 21:03
MikroTik dynamic domain-based routing to containers (Mihomo + ByeDPI)

MikroTik dynamic domain-based routing to containers (Mihomo + ByeDPI)

Route selected domains via containers using DNS-populated address lists and policy routing. LAN keeps normal WAN; chosen domains go either to ByeDPI (DPI-bypass) or Mihomo (VPN).

Based on the article by @wiktorbgu at Habr.

How it works

  • Router DNS resolves domains and fills address-lists (to-dpi, to-mihomo).
@iamwildtuna
iamwildtuna / gist:7772b7c84a11bf6e1385f23096a73a15
Last active March 17, 2026 08:13
VPN IP Addresses (IP адреса ChatGPT, Copilot, Meta, Facebook, Instagram, YouTube, Medium, X ex. Twitter, Discord)
Meta (Instagram, Facebook)
// Узлы
157.240.253.174, 157.240.253.172, 157.240.253.167, 157.240.253.63, 157.240.253.32
157.240.252.174, 157.240.252.172, 157.240.252.167, 157.240.252.63, 157.240.252.38
57.144.112.34, 57.144.110.1, 157.240.205.174, 87.245.223.97
// Подсети
213.102.128.0/24
204.15.20.0/22
199.201.0.0/16
@efrecon
efrecon / run.tpl
Last active February 2, 2026 10:36
`docker inspect` template to regenerate the `docker run` command that created a container
docker run \
--name {{printf "%q" .Name}} \
{{- with .HostConfig}}
{{- if .Privileged}}
--privileged \
{{- end}}
{{- if .AutoRemove}}
--rm \
{{- end}}
{{- if .Runtime}}