This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # activate the virtualenv | |
| source /home/superset/.virtualenvs/superset/bin/activate | |
| fabmanager reset-password --app superset --username admin --password enteryournewpassword |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cat ~/.kube/config | grep client-certificate-data | cut -f2 -d : | tr -d ' ' | base64 -d |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Статья из https://habr.com/ru/company/flant/blog/348324/ | |
| Прим. перев.: Эта увлекательная статья, в подробностях раскрывающая предназначение swap в Linux и отвечающая на распространённое заблуждение на этот счёт, написана Chris Down — SRE из Facebook, который, в частности, занимается разработкой новых метрик в ядре, помогающих анализировать нагрузку на оперативную память. И начинает он своё повествование с лаконичного TL;DR… | |
| TL;DR | |
| Swap — достаточно важная часть хорошо функционирующей системы. Без него сложнее достичь разумного управления памятью. | |
| Swap нужен не столько для срочного получения памяти, сколько для ровного и эффективного высвобождения памяти. Использовать его в качестве «срочной памяти» в общем случае очень вредно. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ps -eo size,pid,user,command --sort -size | awk '{ hr=$1/1024 ; printf("%13.2f Mb ",hr) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| %define package_name %{getenv:NAME} | |
| %define package_version %{getenv:VERSION} | |
| %define package_release %{getenv:RELEASE} | |
| Name: %{package_name} | |
| Version: %{package_version} | |
| Release: %{?package_release} | |
| Summary: This is %{package_name} | |
| License: Comagic | |
| URL: https://gitlab/infra/%{package_name} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| https://habr.com/ru/company/htmlacademy/blog/254825/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Собеседование — стресс для кандидата. Но если быть готовым к тому, что и почему спрашивает работодатель, то на интервью легче собраться с мыслями и не попасть впросак. В этой статье — список популярных типов собеседований и вопросов, которые могут на них прозвучать. | |
| В чистом виде такие собеседования встречаются нечасто. Но принцип, по которому оценивают кандидата в каждом конкретном случае, поможет разобраться, что и зачем рассказывать работодателю. | |
| Что обязательно спросят | |
| Каждый, кто искал работу, сталкивался со стандартными вопросами. На них легко подготовить ответы заранее — и для работодателя это главный минус, ведь многие кандидаты лукавят, чтобы понравиться интервьюеру. Тем не менее, этими вопросами часто продолжают пользоваться. Подробнее мы рассказывали о таких вопросах здесь, ниже перечислим краткие советы. | |
| «Расскажите о себе» . Никаких секретов здесь нет: расскажите в хронологическом порядке, как выбирали учебное заведение и учились, какой опыт работы приобрели после и какие личные качества помога |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for i in {1..5}; do \ | |
| docker run --rm -d --name shared-runner${i} -v /opt/gitlab/:/opt/gitlab-runner/ -v /var/run/docker.sock:/var/run/docker.sock gitlab/gitlab-runner register \ | |
| --config "/opt/gitlab-runner/config.toml" \ | |
| --non-interactive \ | |
| --executor "docker" \ | |
| --docker-image docker:19.03.1 \ | |
| --url "https://bla.bla/" \ | |
| --registration-token "*********************" \ | |
| --description "shared-runner${i}" \ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Git global setup | |
| git config --global user.name "user" | |
| git config --global user.email "email" | |
| Create a new repository | |
| git clone [email protected]:crm/foo.git | |
| cd foo | |
| touch README.md | |
| git add README.md | |
| git commit -m "add README" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=System Logging Service | |
| [Service] | |
| Type=notify | |
| ExecStart=/sbin/rsyslogd -n -i /var/lib/rsyslog_integrations.pid -f /etc/rsyslog_integrations.conf | |
| StandardOutput=null | |
| [Install] | |
| WantedBy=multi-user.target |
NewerOlder