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
C:\Program Files\Oracle\VirtualBox\VBoxManage.exe clonehd "C:\Users\thepi\VirtualBox VMs\ubuntu-17.04\ubuntu-17.04-disk001.vmdk" "C:\Users\thepi\VirtualBox VMs\ubuntu-17.04\ubuntu-17.04-disk001.vdi" --format vdi | |
C:\Program Files\Oracle\VirtualBox\VBoxManage modifyhd "C:\Users\thepi\VirtualBox VMs\ubuntu-17.04\ubuntu-17.04-disk001.vdi" --resize 30000 | |
C:\Program Files\Oracle\VirtualBox\VBoxManage.exe clonehd "C:\Users\thepi\VirtualBox VMs\ubuntu-17.04\ubuntu-17.04-disk001.vdi" "C:\Users\thepi\VirtualBox VMs\ubuntu-17.04\ubuntu-17.04-disk002.vmdk" --format vmdk |
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
SELECT | |
u.id AS user_id, | |
u.email, | |
p.comment, | |
NULL AS first_name, | |
NULL AS middle_name, | |
NULL AS last_name, | |
NULL AS lang | |
FROM nirhub.user AS u | |
LEFT JOIN nirhub.person AS p |
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
[FlowIntencity] | |
HIGH = 'Высокий трафик' | |
MODERATE = 'Низкий трафик' | |
LOW = 'Средний трафик' | |
[Flooring] | |
ASPHALT_OR_CONCRETE_TILE = 'Асфальт или бетонная плитка' | |
PLAIN_CONCRETE = 'Бетон без покрытия' | |
CONCRETE_WITH_ANTIDUST_COATING = 'Бетонный пол с антипылевым покрытием' |
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
// Для задачи WEB-2021 пока можно сделать только Sources. | |
// В дальнейшем если будут приходить другие типы я автоматически буду их использовать. | |
// Русский текст который сдесь так и будет вставляться напрямую в фильтры и везде где используется тип. | |
GET /api/types : | |
{ | |
Sources : { | |
'cianCommercial' : 'ЦИАН', | |
'domofondCommercial' : 'Домофонд', | |
'arendator' : 'Арендатор' | |
}, |
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
listen_addresses = '*' | |
max_connections = 100 # (change requires restart) | |
shared_buffers = 50GB # min 128kB | |
work_mem = 512MB # min 64kB | |
maintenance_work_mem = 2GB # min 1MB | |
dynamic_shared_memory_type = posix # the default is the first option | |
effective_io_concurrency = 8 # 1-1000; 0 disables prefetching | |
max_worker_processes = 12 # (change requires restart) | |
wal_buffers = 16MB # min 32kB, -1 sets based on shared_buffers | |
max_wal_size = 4GB |
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
POST: /api/getStats?token=eyJhbGciO // Нужен POST а не GET потому что полигоны могут не влезть в ограничение GET на 3-4Kb. | |
REQUEST: | |
{ | |
"filter": { // все поля которые есть в фильтре по запросу api/filterOffers | |
"price": { | |
"from": null, | |
"to": null | |
}, | |
"trusted": null, | |
"separateEntrance": null, |
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
buildscript { | |
repositories { | |
mavenCentral() | |
} | |
dependencies { | |
classpath("org.springframework.boot:spring-boot-gradle-plugin:1.3.5.RELEASE") | |
classpath('com.bmuschko:gradle-cargo-plugin:2.0.3') | |
classpath('org.flywaydb:flyway-core:4.0') | |
} | |
} |
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
import TaskStore from './TaskStore' | |
function TaskStoreSaveErrors (data) { | |
let task = TaskStore(data) | |
return task.saveErrors | |
} | |
// task.saveErrors Example | |
// [ |
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
server { | |
listen *:80; | |
server_name test.srg-it.ru; | |
rewrite ^/?$ /ExpressSite/; | |
if ($ssl_protocol = "") { | |
return 301 https://$host$request_uri; | |
} | |
index index.html index.htm index.php; |
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
filterOffers: { // запрос | |
filter: { | |
price: { | |
from: 10, | |
to: 5000, | |
}, | |
realtyType: ['office'], | |
// ...остальные поля которые уже есть | |
limit: 10, // вернуть первые 10 объектов |