Автор: Evgen
snap_metadata_val object
I have the same error as you. In my case it turned out to be a dateless time machine local snapshot.
To check for it, open a Terminal and list local time machine snapshot by running the
command «tmutil listlocalsnapshots /»
It will show entries like «com.apple.TimeMachine.YYYY-MM-DD-HHMMSS»
If you see dateless snapshot, delete it use «sudo tmutil deletelocalsnapshots YYYY-MM-DD-HHMMSS»
with the actual date of the dateless entry. You will need to enter your user password.
# tmutil listlocalsnapshots /
com.apple.TimeMachine.2017-10-04-014927 (dataless)
com.apple.TimeMachine.2017-10-04-024750
com.apple.TimeMachine.2017-10-04-024752
com.apple.TimeMachine.2017-10-04-024835
com.apple.TimeMachine.2017-10-04-024852
# sudo tmutil deletelocalsnapshots 2017-10-04-014927
Password:
Deleted local snapshot ‘2017-10-04-014927′
# tmutil listlocalsnapshots /
com.apple.TimeMachine.2017-10-04-024750
com.apple.TimeMachine.2017-10-04-024752
com.apple.TimeMachine.2017-10-04-024835
com.apple.TimeMachine.2017-10-04-024852
Хороший урок по bitrix
Создание своего модуля на битрикс
Phone: numeric keyboard for text input
<input type="number" pattern="[0-9]*" inputmode="numeric">
docker monitoring tools
docker stats
https://code-maze.com/top-docker-monitoring-tools/
Потеряшки
Если при запуске docker compose ругается
Found orphan containers (app100-rabbitmq, app100-rabbitmq-manager) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
Надо запустить его со следующим параметром:
docker-compose up -d --remove-orphans
избавляемся от двойного редиректа
DirectorySlash Off
# Allow mod_rewrite to function when there is no trailing slash
RewriteOptions AllowNoSlash
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -d
RewriteCond %{REQUEST_URI} !(.*)/$
# RewriteRule ^(.*)$ $1/ [L,R=301]
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI}/ [L,R=301]
Когда нужно закрыть или открыть доступ только к некоторым мельти доменам
.htaccess:
SetEnvIfNoCase Host s4\.yandex\.ru$ require_auth=true
SetEnvIfNoCase Host s54\.yandex\.ru$ require_auth=true
AuthType Basic
AuthName «Access to the staging site»
AuthUserFile /data/www/yandex.ru/.htpasswd
Require valid-user
# Setup a deny/allow
Order Deny,Allow
# Deny from everyone
Deny from all
# except if either of these are satisfied
Satisfy any
# 1. a valid authenticated user
Require valid-user
# or 2. the «require_auth» var is NOT set
#Allow from env=!require_auth
Allow from env=require_auth
Когда sitemap.xml нужно обработать как PHP
.htaccess:
<Files "sitemap.xml">
AddHandler application/x-httpd-php .xml
</Files>
Проверка сертификата
Проверка сертификата
echo | openssl s_client -showcerts -servername qna.habr.com -connect qna.habr.com:443 2>/dev/null | openssl x509 -inform pem -noout -text | grep "Not After"