Tag Archives: http

Port forwarding with kubectl

If you want some kubernetes pod to forward all the traffic to you local machine, you can do this: 1. get pod id with kubectl —kubeconfig get po -lapp= -Lversion,cfg,infra-cfg 2. forward exact port from it to you localhost with kubectl —kubeconfig port-forward localhost_port:pod_port And you can request you localhost to reach pod on selected …

Read more

Proxies and traffic sniffers for mac os

That’s a great one but it’s not cheap — https://www.charlesproxy.com/. They say this one is good as well and free — https://mitmproxy.org/. But I don’t like the interface.

Https бесплатно

Первоначальный запуск ./certbot-auto certonly —webroot -w /var/www/<my>/htdocs -d <sub.domain.com> —email <your email> —agree-tos Удаление сертификата для домена ./certbot-auto delete и выбрать домен из списка Обновление сертификатов Делается регулярно, т.к. срок действия — 90 дней. Или внести в крон: ./path/to/certbot-auto renew —quiet или руками: ./path/to/certbot-auto renew# —dry-run https://letsencrypt.org/how-it-works/ https://certbot.eff.org/#centosrhel6-nginx Если при тестировании обновления с помощью команды …

Read more

Функция header в php

Заголовки на скачивание файла коротко описаны здесь — https://blog.bullgare.com/2010/01/%d0%b7%d0%b0%d0%b3%d0%be%d0%bb%d0%be%d0%b2%d0%ba%d0%b8-%d0%bd%d0%b0-%d1%81%d0%ba%d0%b0%d1%87%d0%b8%d0%b2%d0%b0%d0%bd%d0%b8%d0%b5-%d1%84%d0%b0%d0%b9%d0%bb%d0%b0/ Функция header в php используется для посылки HTTP-заголовков (почитать на w3.org).