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 bash | |
SCRIPT_DIR=$(cd "$(dirname "$(readlink -f "$BASH_SOURCE")")" ; pwd -P) | |
CONFIG_PATH=${SCRIPT_DIR}/../config | |
LOGBACK_OPT=-Dlogback.configurationFile=${CONFIG_PATH}/logback.xml | |
LOG_DIR=-Dlogs.root=${CONFIG_PATH}/../logs | |
CP_PATH=${SCRIPT_DIR}/../lib/*:${SCRIPT_DIR}/../lib/bsl_objects/* | |
java -XX:TieredStopAtLevel=1 -XX:+TieredCompilation -Dorg.eclipse.emf.common.util.ReferenceClearingQueue=false -cp "${CP_PATH}" "${LOGBACK_OPT}" "${LOG_DIR}" -Dfile.encoding=UTF-8 com.e1c.g5rt.executor.client.ConsoleExecutor "$@" |
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
@echo off | |
rem https://infostart.ru/1c/articles/818909/ | |
rem %1 - version number | |
rem %2 - first 2 port characters. for 1540,1541,1560:1591 it will be 15 | |
rem %3 - cluster reg catalog | |
rem register-service 8.3.11.3034 25 "C:\Program Files\1cv8\srvinfo2541" | |
set VerNum=8.3.17.1549 | |
set SrvUserName=.\USR1CV8 | |
set SrvUserPwd=PPPPPPAAAAAASSSSSSSSSSWWWWWWORRRRRDDDDD | |
set RangePort=4560:4591 |
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
Картинки |
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
$CATALOG_IBLOCK_ID = 42; | |
//////////////////////////////////////////////////////////////////////////////// | |
CModule::IncludeModule("iblock"); | |
$arIBlock = CIBlock::GetByID($CATALOG_IBLOCK_ID)->Fetch(); | |
echo " | |
<?xml version=\"1.0\" encoding=\"UTF-8\"?> | |
<Разделы> |
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 | |
# apache | |
sudo a2dismod php7.2 | |
sudo a2enmod php5.6 | |
sudo service apache2 restart | |
# cli | |
sudo update-alternatives --set php /usr/bin/php5.6 | |
sudo update-alternatives --set phar /usr/bin/phar5.6 |
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
&НаСервере | |
Функция ИмяПользователяНаСервере() | |
Возврат ИмяПользователя(); | |
Конецфункции | |
&НаКлиенте | |
Процедура Команда1(Команда) | |
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
Функционал: Выбор группы исполнителей в заказ-наряде | |
Я как мастер цеха | |
Хочу иметь возможность объединять сотрудников в группы (бригады) | |
И выбирать эти группы (бригады) в качестве исполнителей работ | |
Контекст: | |
Допустим, в справочнике Сотрудники есть группа "Бригада 1" | |
И в этой группе есть элементы: | |
""" |
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
git config --local core.pager "iconv -f cp1251 -t utf-8 | less" |
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
#Получить список файлов, измененных между двумя коммитами. | |
git log --name-only --pretty=oneline --full-index COMMIT1..COMMIT1 | grep -vE '^[0-9a-f]{40} ' | sort | uniq | |
# Здесь | |
# COMMIT1 - первый коммит или тэг | |
# COMMIT2 - второй коммит или тэг, или, например, HEAD |