Skip to content

Instantly share code, notes, and snippets.

View Enmk's full-sized avatar
🇺🇦
Hacking space-time

Vasily Nemkov Enmk

🇺🇦
Hacking space-time
View GitHub Profile
  1. Нужно написать по адресу "kijow.amb.wk@msz.gov.pl" (это консульство Польского посольства в Киеве) письмо с описанием ситуации и просьбой получить гуманитарную визу. Стоит оставить номер телефона, обычно именно звонят (в моем случае отвечали на письма очень быстро, т.к. писал на польском, и телефон не понадобился). Назначат дату и время визита в консульство

  2. Собрать документы:

    • фотография как на шенген
    • распечатанная анкета (см. пункт 4)
    • страховка на весь срок запрашиваемой визы (т.е. на год). Предоставить нужно будет копию полиса и копию чека об оплате (копия чека для Украины обязательна). Скажете, что на национальную визу в Польшу (т.е. рассчитываете в сумме пребывать там 365 дней, а не полгода, как в шенгенскоой), в страховых всё знают
    • паспорт и копия последней страницы + страниц с предыдущими шенгенскими и национальными визами за 5 лет. Если меняли паспорт недавно, то распечатайте скрины/фото старого паспорта и страниц с визами оттуда
  • документы, подтверждающие полит. пре
@filimonov
filimonov / cluster.xml
Created August 5, 2019 12:28
test timeouts clickhouse issue #5317
<yandex>
<remote_servers>
<test_cluster>
<shard>
<internal_replication>false</internal_replication>
<replica>
<host>ch1</host>
<port>9000</port>
</replica>
<replica>
@mcastelino
mcastelino / kcgroups.md
Last active July 5, 2024 11:53
Kubernetes and cgroups Resource Management/Static cpuManagerPolicy/Memory and Resource Isolation & Scheduling

Overview

The goal of this document to cover all aspects of Kubernetes management, including how resources are expressed, constrained and accounted for. This started a way to ensure that alternate container runtime implementation like Kata containers will behave from a resource accounting and consumption point of view in the same manner as runc.

Location of the latest version of this document: https://gist.github.com/mcastelino/b8ce9a70b00ee56036dadd70ded53e9f

If you do not understand cgroups please refer to a quick primer at the bottom of this document. This will help you understand how the resource enforcement actually works.

Kubernetes Resource Management

@shi-yan
shi-yan / keepalive
Created September 17, 2014 23:36
Correct way to set tcp socket keepalive on Win, Mac and Linux. Verified with Wireshark.
void setTcpKeepalive(SOCKET &sockfd)
{
const uint32_t keepaliveIntervalSec = 10;
#ifdef _WIN32
tcp_keepalive keepaliveParams;
DWORD ret = 0;
keepaliveParams.onoff = 1;
keepaliveParams.keepaliveinterval = keepaliveParams.keepalivetime = keepaliveIntervalSec * 1000;
WSAIoctl(sockfd, SIO_KEEPALIVE_VALS, &keepaliveParams, sizeof(keepaliveParams), NULL, 0, &ret, NULL, NULL);
@n00neimp0rtant
n00neimp0rtant / gist:9515611
Last active July 7, 2025 14:00
simple squash without rebase
## within current branch, squashes all commits that are ahead of master down into one
## useful if you merged with upstream in the middle of your commits (rebase could get very ugly if this is the case)
## commit any working changes on branch "mybranchname", then...
git checkout master
git checkout -b mybranchname_temp
git merge --squash mybranchname
git commit -am "Message describing all squashed commits"
git branch -m mybranchname mybranchname_unsquashed
git branch -m mybranchname