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 | |
setlocal EnableExtensions | |
rem https://1c.ru/rus/support/surrog.htm | |
echo --- delete services: | |
FOR %%A IN (haspflt vusbbus VUsb Emulator NEWHASP Multikey) DO ( | |
echo - %%A | |
sc stop %%A > NUL 2>&1 | |
sc delete %%A > NUL 2>&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
FROM node:10.12.0-alpine | |
WORKDIR /tmp | |
RUN apk add --no-cache --virtual .build-deps \ | |
graphicsmagick \ | |
git \ | |
libpng \ | |
libpng-dev \ | |
python \ |
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
FROM golang:1.11-alpine | |
RUN apk add -U --no-cache curl git make g++ && \ | |
RUN curl "https://raw.githubusercontent.com/golang/dep/master/install.sh" | sh | |
RUN go get -d -v github.com/muesli/beehive | |
RUN cd ${GOPATH}/src/github.com/muesli/beehive && \ | |
make get-deps && \ | |
make | |
FROM alpine:3.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
# Copyright (c) 2018 Ultimaker B.V. | |
# Cura is released under the terms of the LGPLv3 or higher. | |
from UM.Job import Job | |
from UM.Logger import Logger | |
from .avr_isp import ispBase | |
from .avr_isp.stk500v2 import Stk500v2 | |
from time import time, sleep |
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
#Область XLSX | |
// https://msdn.microsoft.com/ru-ru/library/office/documentformat.openxml.spreadsheet.cell.aspx?cs-save-lang=1&cs-lang=csharp#code-snippet-1 | |
// https://infostart.ru/public/665512/ | |
// https://infostart.ru/public/280340/ | |
Процедура XLSX_Распаковать(ИмяФайла, Каталог) | |
Зип = Новый ЧтениеZipФайла; | |
Зип.Открыть(ИмяФайла); |
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
CREATE LANGUAGE plpgsql; | |
create function m1_exec(text) returns void as $BODY$BEGIN execute $1; END;$BODY$ language plpgsql; | |
select m1_exec('ALTER TABLE ' || table_name || ' SET WITHOUT OIDS;') from information_schema.tables where table_schema = 'public'; | |
drop function m1_exec |
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 relname, pg_size_pretty(round(relpages*8*1024, 0)) as size FROM pg_class ORDER BY relpages DESC LIMIT 10 | |
LOAD 'online_analyze'; | |
SET "onlyne_analyze.enable" TO 'on'; | |
SET "onlyne_analyze.table_type" = 'temporary'; | |
SET "online_analyze.verbose" = 'off'; | |
CREATE EXTENSION pg_prewarm; | |
SELECT pg_prewarm('config'); |
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
Функция СтрокаРазмераФайла(Знач Размер) | |
ПредставленияПорядков = СтрРазделить("байт,КБ,МБ,ГБ,ТБ,ПБ,ЭБ", ","); | |
Порядок = Цел(Log10(Размер) / Log10(1024)); | |
Порядок = Мин(Порядок, ПредставленияПорядков.Количество() - 1); | |
Результат = Размер / Pow(1024, Порядок); | |
ФорматнаяСтрока = ?(Результат = Цел(Результат), "", "ЧДЦ=1"); | |
Результат = СтрШаблон("%1 %2", Формат(Результат, ФорматнаяСтрока), ПредставленияПорядков[Порядок]); | |
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
FROM alpine:latest as build | |
COPY Executor_2020_2_1_16.zip /tmp/Executor.zip | |
RUN mkdir /opt/executor | |
RUN unzip -oq /tmp/Executor.zip -d /opt/executor | |
# create launcher | |
RUN install -m 755 /opt/executor/bin/executor_j11.sh /usr/bin/executor | |
# fix SCRIPT_DIR |