Last major update: 25.08.2020
- Что такое авторизация/аутентификация
- Где хранить токены
- Как ставить куки ?
- Процесс логина
- Процесс рефреш токенов
- Кража токенов/Механизм контроля токенов
| ### Nginx ### | |
| check process nginx with pidfile /run/nginx.pid | |
| start program = "/usr/sbin/service nginx start" | |
| stop program = "/usr/sbin/service nginx stop" | |
| if cpu > 60% for 2 cycles then alert | |
| if cpu > 80% for 5 cycles then restart | |
| if memory usage > 80% for 5 cycles then restart | |
| if failed host 188.166.44.84 port 80 protocol http | |
| then restart | |
| if 3 restarts within 5 cycles then timeout |
| // check version | |
| node -v || node --version | |
| // list installed versions of node (via nvm) | |
| nvm ls | |
| // install specific version of node | |
| nvm install 6.9.2 | |
| // set default version of node |
| <form action="<%= @pay_desc['mrh_url'] %>" method="post"> | |
| <input type=hidden name=MrchLogin value="<%= @pay_desc['mrh_login'] %>"> | |
| <input type=hidden name=OutSum value="<%= @pay_desc['out_summ'] %>"> | |
| <input type=hidden name=InvId value="<%= @pay_desc['inv_id'] %>"> | |
| <input type=hidden name=Desc value="<%= @pay_desc['inv_desc'] %>"> | |
| <input type=hidden name=SignatureValue value="<%= @pay_desc['crc'] %>"> | |
| <input type=hidden name=Shp_item value="<%= @pay_desc['shp_item'] %>"> | |
| <input type=hidden name=IncCurrLabel value="<%= @pay_desc['in_curr'] %>"> | |
| <input type=hidden name=Culture value="<%= @pay_desc['culture'] %>"> | |
| <input type=submit value='Оплатить'> |
| #!/bin/bash | |
| # | |
| # PostgreSQL Backup Script Ver 1.0 | |
| # http://autopgsqlbackup.frozenpc.net | |
| # Copyright (c) 2005 Aaron Axelsen <[email protected]> | |
| # | |
| # This script is based of the AutoMySQLBackup Script Ver 2.2 | |
| # It can be found at http://sourceforge.net/projects/automysqlbackup/ | |
| # | |
| # The PostgreSQL changes are based on a patch agaisnt AutoMySQLBackup 1.9 |
| Ruby | |
| What is a class? - Каркас для объектов, содержит данные, методы, инстансы. | |
| What is the difference between a class and a module? - Модуль - пространство имен, не может иметь экземпляров. | |
| What is an object? - Экземпляр класса. | |
| How would you declare and use a constructor in Ruby? | |
| def initialize(some, data) | |
| p "Initializer #{some} #{data}" | |
| end |