This file contains 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
<!doctype html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>Техническое обслуживание</title> | |
<style> | |
body { text-align: center; padding: 150px; } | |
h1 { font-size: 50px; } | |
body { font: 20px Helvetica, sans-serif; color: #333; } |
This file contains 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
AddDefaultCharset utf-8 | |
ErrorDocument 503 /maintenance.html | |
RewriteEngine On | |
RewriteBase / | |
# uncomment and set your ip to allow your ip to enter | |
#RewriteCond %{REMOTE_ADDR} !1\.2\.3\.4 | |
# block requests to site, but allow let's encypt generation |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains 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
#!/usr/bin/env bash | |
# Скрипт по загрузке публичных файлов с Облака mail.ru. Поддерживается докачка. | |
# v1.0.5 от 2022-05-30 | |
# | |
# ЕСЛИ СКРИПТ НЕ РАБОТАЕТ | |
# | |
# 1. Убедитесь, что файл доступен публично. Возможна загрузка только публичных файлов. | |
# 2. Mail.ru время от времени меняет внутрянку, не очень сильно, но требуется адаптация скрипта. | |
# Если скрипт не работает, просьба сделать работающий форк и скинуть ссылку в комментарии. |
This file contains 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
#!/usr/bin/env bash | |
docker_host=$1 | |
if [ -z "$docker_host" ] ; then | |
echo "Syntax: `basename $0` <docker_host>" >&2 | |
exit 1 | |
fi | |
ssh localhost -R 127.0.0.1:35729:$docker_host:35729 |
This file contains 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
#!/bin/sh | |
# Удаляем по 20 файлов в секунду. За 3 часа плавно удалим 200k файлов. | |
# Пригодится, когда нужно обновить кеш картинок на сайте, но нельзя удалить сразу весь кеш, | |
# потому что сайт ляжет из-за генерации новых картинок. | |
find ./ -type f | while sleep 1 ; do | |
CNT=0 | |
while read line ; do | |
CNT=$(($CNT + 1)) |
This file contains 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
# fast and explore | |
SERVER=xxx | |
WWWROOT=/home/bitrix/www | |
# fast and explore | |
cd public_html | |
# первая часть exlude для ускорения на первом этапе, чтобы просто увидеть все, что скачается, и при необходимости |
OlderNewer