Docker tmpfs systemd

Создаем override.conf для сервиса docker командой systemctl edit docker.service:

[Service]
ExecStartPre=/usr/bin/env install -m 711 -o root -g root -vd /var/lib/docker_ /var/lib/docker
ExecStartPre=/usr/bin/env mount -t tmpfs none /var/lib/docker
ExecStartPre=/usr/bin/env rsync -a /var/lib/docker_ …
more ...

lightbox markdown pelican

В заголовке документа

lightbox: true

После чего в шаблоне base.html срабатывают условия:

<head>
...
    {% if (article and article.lightbox) %}
        <!-- Enable lightbox (https://github.com/dimsemenov/Magnific-Popup) -->
        <link href="//cdnjs.cloudflare.com/ajax/libs/magnific-popup.js/1.1.0/magnific-popup.min.css" rel="stylesheet">
    {% endif %}
</head>

...
{% if (article and article.lightbox …
more ...

Screen cheatsheet

~/.screenrc:

startup_message off
hardstatus alwayslastline
hardstatus alwayslastline '%{gk}[ %{G}%H %{g}]%{wk}%?%-Lw%?%{=b kR}(%{W}%n*%f %t%?(%u)%?%{=b kR})%{= kw}%?%+Lw%?%?%= %{W}[%1]'
vbell_msg " *beep* "

# Bind Shift+Arrow Left/Right for switch via screen-tab's
bindkey ^[[1;2C next
bindkey ^[[1;2D prev

Ссылки по теме:

  1. VIM …
more ...


zabbix in linux

Problem:

root@host# LC_ALL=C su -m zabbix -c "ping ya.ru"
ping: icmp open socket: Operation not permitted
Solution:
sudo chmod u+s `which ping`

Problem:

sudo: sorry, you must have a tty to run sudo
Solution:
echo 'Defaults:zabbix !requiretty' | sudo tee -a /etc/sudoers.d/zabbix

Problem …

more ...