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
Перенес в my-mans | |
-- подключиться к postgres (утилита psql) | |
psql -U postgres | |
-- команды помощи | |
help | |
\h -- помощь по командам SQL | |
\? -- помощь по командам psql |
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
Перенесено в мой ман https://github.com/igorpronin/my-mans/blob/master/ssh-zip/ssh.md | |
Пример 1: Копируем файл «file.txt» из удаленного сервера на локальный компьютер. | |
$ scp user@remote.host:file.txt /some/local/directory | |
Пример 2: Копируем файл «file.txt» с локального компьютера на удаленный сервер. | |
$ scp file.txt user@remote.host:/some/remote/directory | |
Пример 3: Копируем папку «dir1» с локального хоста в директорию «dir2» на удаленном хосте. | |
$ scp -r dir1 user@remote.host:/some/remote/directory/dir2 |
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
https://toster.ru/q/276441 | |
Отсюда, есть и другие рекомендации от др авторов. | |
Я когда делаю Code Review критерии следующие: | |
* Безопасность: | |
- Каждый аргумент метода простого типа должен проверяться на тип в случае его проксирования и на граничные значения в случае обработки. Чуть что не так - бросается исключение. Если метод с кучкой аргументов на 80% состоит из поверки из аргументов - это вполне норм)) | |
- Никаких trigger_error, только исключения. | |
- Исключения ДОЛЖНЫ быть человеко-понятны, всякие "Something went wrong" можно отдавать пользователю, но в лог должно попасть исключение со стектрейсом и человеко-понятным описанием, что же там пошло не так. | |
- Каждый аргумент (объект) метода должен быть с тайпхинтингом на этот его класс, или интерфейс. |
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
Перенес все в мой ман: https://github.com/igorpronin/my-mans/blob/master/git/_git.md | |
git config --global user.name "User Name" // set user name | |
git config --global user.email "user@email.com" // set user email | |
git config --list // show active settings | |
git help commit // open git manual in browser | |
cd c:/targetdir // change directory | |
git init // create git repository in this directory or reinit existing | |
git status // show info about files status (untracted / unmodified etc) | |
git add . // add all files to unmodified status |
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
<p>Настоящая политика конфиденциальности персональных данных (далее — Политика конфиденциальности) действует в отношении всей информации, которую данный сайт, на котором размещен текст этой Политики конфиденциальности, может получить о Пользователе, а также любых программ и продуктов, размещенных на нем.</p> | |
<p>1. ОПРЕДЕЛЕНИЕ ТЕРМИНОВ</p> | |
<p>1.1. В настоящей Политике конфиденциальности используются следующие термины:</p> | |
<p>1.1.1. «Администрация сайта» — уполномоченные сотрудники на управления сайтом, действующие от его имени, которые организуют и (или) осуществляет обработку персональных данных, а также определяет цели обработки персональных данных, состав персональных данных, подлежащих обработке, действия (операции), совершаемые с персональными данными.</p> | |
<p>1.1.2. «Персональные данные» — любая информация, относящаяся к прямо или косвенно определенному или определяемому физическому ли |
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
[PHP] | |
;;;;;;;;;;;;;;;;;;; | |
; About php.ini ; | |
;;;;;;;;;;;;;;;;;;; | |
; PHP's initialization file, generally called php.ini, is responsible for | |
; configuring many of the aspects of PHP's behavior. | |
; PHP attempts to find and load this configuration from a number of locations. | |
; The following is a summary of its search order: |
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
# | |
# This is the main Apache HTTP server configuration file. It contains the | |
# configuration directives that give the server its instructions. | |
# See <URL:http://httpd.apache.org/docs/2.4/> for detailed information. | |
# In particular, see | |
# <URL:http://httpd.apache.org/docs/2.4/mod/directives.html> | |
# for a discussion of each configuration directive. | |
# | |
# Do NOT simply read the instructions in here without understanding | |
# what they do. They're here only as hints or reminders. If you are unsure |
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
.idea/ | |
.c9/ | |
/bitrix/backup | |
/bitrix/cache | |
/bitrix/managed_cache | |
/bitrix/modules/*.log | |
/bitrix/php_interface/crontab | |
/bitrix/php_interface/dbconn.php | |
/logs |
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
// Объявление попап-функций. Плагин Magnific Popup | |
var openSucsessPopup = function() { | |
$.magnificPopup.open({ | |
items: { src: '#sucsess-popup' }, | |
type: 'inline', | |
fixedContentPos: false, | |
fixedBgPos: true, | |
overflowY: 'auto', | |
closeBtnInside: true, | |
preloader: false, |
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
var preloaderClosedFlag = 0; | |
$(window).on('load', function () { | |
//------------------------------------------------------------------------ | |
// PRELOADER SCRIPT | |
//------------------------------------------------------------------------ | |
if (!preloaderClosedFlag) { | |
preloaderClosedFlag = 1; | |
$("#preloader").delay(400).fadeOut("slow"); | |
$("#preloader .clock").fadeOut(); |
NewerOlder