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
    
  
  
    
  | <section class="container-preim"> | |
| <button class="btnx btn--md btn--border-animation btn--border-animation-blue" id="ishe"> | |
| <span class="anim-helper-border anim-helper-border--top" aria-hidden="true"></span> | |
| <span class="anim-helper-border anim-helper-border--right" aria-hidden="true"></span> | |
| <span class="anim-helper-border anim-helper-border--bottom" aria-hidden="true"></span> | |
| <span class="anim-helper-border anim-helper-border--left" aria-hidden="true"></span> | |
| Все наши преимущества | |
| </button> | |
| <img src="/images/pics/test13.png" width="25" style="margin-top:-10px;"> | |
| </section> | 
  
    
      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
    
  
  
    
  | wget -qO- $2 --user-agent=$1| gawk -v IGNORECASE=1 -v RS='</title' 'RT{gsub(/.*<title[^>]*>/,"");print;exit}' | 
  
    
      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
    
  
  
    
  | #!/bin/bash | |
| read -n1 -p "Enter 1 to restore web dir, 2 to restore mysql database, or 3 for both: " input | |
| echo | |
| case $input in | |
| 1) cd / ; | |
| read -p "Enter date of backup [YYYY-MM-DD]: " date; | |
| echo; | |
| read -s -p "Password for files: " pass ; | |
| echo; | |
| sudo unzip -P $pass /mnt/c/WEB/OpenServer/domains/websup/backups/backup-$date.tar.gz.zip -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
    
  
  
    
  | #!/bin/bash | |
| tar -cvzf /mnt/c/WEB/domains/websup/backups/backup-$(date +"%Y-%m-%d").tar.gz --exclude=*.tar.gz --exclude=/mnt/c/WEB/domains/websup/backups /mnt/c/WEB/domains/websup > /mnt/c/WEB/domains/websup/backups/$(date +"%Y-%m-%d").log | |
| ### MAKE SURE YOU CHANGE "secretpassword" below or remember it :) | |
| #zip /mnt/c/WEB/domains/websup/backups/backup-$(date +"%Y-%m-%d").tar.gz.zip -e -P local /mnt/c/WEB/domains/websup/backups/backup-$(date +"%Y-%m-%d").tar.gz | |
| #sudo find /var/www/backups/backup-2* -mtime +7 -exec rm -v {} \; | sudo tee -a /var/www/backups/del.log | |
| ## CHANGE "bzackup" to a mysql user and "sqlpassword" to the password for that user | |
| mysqldump -u root --password=local --all-databases > /mnt/c/WEB/domains/websup/backups/database-$(date +"%Y-%m-%d").sql 2> //mnt/c/WEB/domains/websup/backups/db-$(date +"%Y-%m-%d").log | |
| ### MAKE SURE YOU CHANGE "secretpassword" below or remember it :) | |
| #zip /mnt/c/WEB/domains/websup/backups/database-$(date +"%Y-%m-%d").sql.zip -e -P local /mnt/c/WEB/domains/websup/backups/ | 
  
    
      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
    
  
  
    
  | #alias cdweb="cd /mnt/c/WEB/OpenServer/domains/websup/" | |
| sudo /etc/init.d/mysql start | |
| sudo apachectl start | |
| sudo cron | 
  
    
      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
    
  
  
    
  | alias size="function _size(){ find . -type f -iname '${1}' -exec ls {} \;|xargs du -cdh|tail -1;};_size" | |
| alias tar="tar -xzvf" | |
| #alias mc="/usr/local/Cellar/midnight-commander/4.8.15/libexec/mc/mc-wrapper.sh" | |
| alias cdweb="cd /mnt/c/WEB/OpenServer/domains/websup/www" | |
| source ~/.git-prompt.sh | |
| export PS1='[\u@\h \W$(__git_ps1 " (%s)")]\$ ' | |
| PATH="/usr/sbin:$PATH" | 
  
    
      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
    
  
  
    
  | # bash/zsh git prompt support | |
| # | |
| # Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org> | |
| # Distributed under the GNU General Public License, version 2.0. | |
| # | |
| # This script allows you to see repository status in your prompt. | |
| # | |
| # To enable: | |
| # | |
| # 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh). | 
  
    
      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
    
  
  
    
  | #!/usr/bin/env python | |
| # coding: utf-8 | |
| # References: | |
| # man curl | |
| # https://curl.haxx.se/libcurl/c/curl_easy_getinfo.html | |
| # https://curl.haxx.se/libcurl/c/easy_getinfo_options.html | |
| # http://blog.kenweiner.com/2014/11/http-request-timings-with-curl.html | |
| from __future__ import print_function | 
  
    
      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
    
  
  
    
  | Header set Strict-Transport-Security "max-age=31536000" env=HTTPS | |
| # BEGIN iThemes Security - Не меняйте и не удаляйте эту строку | |
| # iThemes Security Config Details: 2 | |
| # Заблокированые хосты - Безопасность > Настройки > Заблокированные пользователи | |
| SetEnvIF REMOTE_ADDR "^146\.0\.32\.[0-9]{1,3}$" DenyAccess | |
| SetEnvIF X-FORWARDED-FOR "^146\.0\.32\.[0-9]{1,3}$" DenyAccess | |
| SetEnvIF X-CLUSTER-CLIENT-IP "^146\.0\.32\.[0-9]{1,3}$" DenyAccess | |
| SetEnvIF REMOTE_ADDR "^94\.102\.[0-9]{1,3}\.[0-9]{1,3}$" DenyAccess | 
  
    
      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
    
  
  
    
  | Как удалить папку .idea и лишние файлы из Git | |
| Все делаем в MINGW64 | |
| Удаляем ненужные папки и файлы при синхронизации в Git репозиторий | |
| Прежде всего добавим файл .gitignore в корень проекта: | |
| touch .gitignore | 
OlderNewer