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

2. forward exact port from it to you localhost with

And you can request you localhost to reach pod on selected port.

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 бесплатно

Первоначальный запуск

Удаление сертификата для домена

и выбрать домен из списка Обновление сертификатов Делается регулярно, т.к. срок действия — 90 дней. Или внести в крон:

или руками:

https://letsencrypt.org/how-it-works/ https://certbot.eff.org/#centosrhel6-nginx Если при тестировании обновления с помощью команды ./path/to/certbot-auto renew —dry-run возникает следующая ошибка

или

То возникают они из-за недостатка памяти …

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).