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 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
ПРОТОКОЛ | |
АНАЛИЗА ПРИЛОЖЕНИЯ "BURGER KING" ОТ РАЗРАБОТЧИКА "LOYALTY PLANT" ("ФАБРИКА ЛОЯЛЬНОСТИ") | |
ОСНОВНЫЕ ПОЛОЖЕНИЯ: | |
======================================================================================================== | |
1. Приложение разработано для мобильных платформ: Android, Windows Phone, iOS | |
2. Приложение разработано на основе фреймворка Xamarin, который реализует поддержку .NET-приложений в мобильной среде | |
3. Приложение, кроме того, состоит в целом из двух важных частей: | |
* .NET-ассембли, написаный, скорее всего, на C#. (Весь код, включая структуру классов, а так же декомпилированные листинги методов, можно получить с использованием .NET Reflector) | |
* Ассембли содержит основной функционал программы, логику работы с аппаратным обеспечением, логику для генерирования уникального идентфикатора устройства |
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> | |
<title>Калькулятор стоимости поддержки — первая линия ColumbusCare</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<script type="text/javascript"> | |
/* | |
* Калькулятор стоимости поддержки — первая линия ColumbusCare | |
*/ | |
function calc() { |
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
# (я решил не использовать grep / sed для анализа и редактирования каждго дампа, | |
# так как при помощи SQL-запросов я быстрее решу ту же задачу) | |
# шаг 0 | |
# выгружаем из каждого локально развернутого приложения дамп базы данных | |
# suo_local - база из которой сгружаем | |
# db.sql - файл в который выгружаем | |
pg_dump suo_local -t slots -t conversation_fs -t users -t board_settings -t office_settings \ | |
-t offices -t portal_tickets -t day_schedules -t activities -t register_action_normatives -t service_normatives \ |
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
[Unit] | |
Description=Redis Server | |
After=network.target | |
[Service] | |
Type=simple | |
ExecStart=/usr/bin/redis-3.0.4/src/redis-server | |
#/etc/redis.conf | |
ExecStop=/bin/kill -15 $MAINPID | |
PIDFile=/var/run/redis.pid |
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
# | |
# systemd unit file for CentOS 7, Ubuntu 15.04 | |
# | |
# Customize this file based on your bundler location, app directory, etc. | |
# Put this in /usr/lib/systemd/system (CentOS) or /lib/systemd/system (Ubuntu). | |
# Run: | |
# - systemctl enable sidekiq | |
# - systemctl {start,stop,restart} sidekiq | |
# | |
# This file corresponds to a single Sidekiq process. Add multiple copies |
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
# The only setting we feel strongly about is the fail_timeout=0 | |
# directive in the "upstream" block. max_fails=0 also has the same | |
# effect as fail_timeout=0 for current versions of nginx and may be | |
# used in its place. | |
# you generally only need one nginx worker unless you're serving | |
# large amounts of static files which require blocking disk reads | |
worker_processes 1; | |
# # drop privileges, root is needed on most systems for binding to port 80 |
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
f = File.new("passwords", 'w') | |
User.all.each do |u| | |
psw = ([*('A'..'Z'),*('0'..'9')]-%w(0 1 I O)).sample(8).join | |
office = u.office_id.nil? ? " " : u.office.name | |
f.write("office: #{office} fio: #{u.first_name} #{u.middle_name} #{u.last_name} email: #{u.email} password: #{psw}\n\n") | |
u.password = psw | |
u.password_confirmation = psw | |
u.save | |
end |
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/bash | |
while true | |
do | |
psql soms_production -f /var/lib/pgsql/update_soms.sql | |
sleep 5 | |
done |
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
Подготовка [один раз]: | |
- Создать директорию /new (в корне системы) [один раз] | |
mkdir /new | |
cd /new | |
• Скопировать все файлы в директорию [один раз]: | |
git clone https://gist.github.com/529a563a1e1f621a5eec.git | |
• Подключиться по ssh к серверу БД: | |
ssh [email protected] | |
• Перейти в директорию | |
cd /new/529a563a1e1f621a5eec |
OlderNewer