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
//1. НЕ работает группировка Procedure/EndProcedure, Function/EndFunction | |
//2. Не опознаются ключевые слова "Not", "In", "False", "True" | |
//3. Не опознается объект CommandLineArguments (АргументыКоманднойСтроки) | |
//4. Не опознается метод Count() (Количество()) у массивов | |
//5. RunApp глотает кавычки: | |
//cmdLine = | |
//"C:\Snegopat 20\fossil.exe" clone "http://snegopat.ru:9004" "C:\Snegopat 20\repo\core.fossil" | |
// | |
//а командная строка процесса = | |
//"C:\Snegopat 20\fossil.exe" clone http://snegopat.ru:9004 C:\Snegopat 20\repo\core.fossil |
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
////////////////////////////////////////////////////////////////////// | |
// | |
// Изменение remote для нескольких репозитариев GIT | |
// Copyright EvilBeaver <ovsiankin.aa@gmail.com> 2015 | |
// | |
////////////////////////////////////////////////////////////////////// | |
Перем СтарыйПрефикс; | |
Перем НовыйПрефикс; |
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
// Привязка файлов *.os к oscript.exe | |
// Запуск скриптов *.os из командной строки без указания расширения | |
// (с) awa, 2015 | |
#Использовать tempfiles | |
Процедура Главная() | |
СистемнаяИнформация = Новый СистемнаяИнформация; | |
ОС = НРег(СистемнаяИнформация.ВерсияОС); | |
Если Найти(ОС, "windows") = 0 Тогда |
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
#Использовать logos | |
#Использовать fs | |
Процедура ВыполнитьОбработку(Знач Каталог) | |
ВсеПапки = НайтиФайлы(Каталог, ПолучитьМаскуВсеФайлы()); | |
Для Каждого НайденныйКаталог Из ВсеПапки Цикл | |
Если Не НайденныйКаталог.ЭтоКаталог() Тогда | |
Продолжить; |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# All Vagrant configuration is done below. The "2" in Vagrant.configure | |
# configures the configuration version (we support older styles for | |
# backwards compatibility). Please don't change it unless you know what | |
# you're doing. | |
Vagrant.configure(2) do |config| | |
# The most common configuration options are documented and commented below. | |
# For a complete reference, please see the online documentation at |
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
#Использовать logos | |
#Использовать cmdline | |
Перем Лог; | |
Перем мТекущаяВерсия; | |
Процедура ОпределитьТекущуюВерсию() | |
ИмяКомпонента = "HKEY_LOCAL_MACHINE\SOFTWARE\Classes\V83.COMConnector\CLSID\"; |
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 | |
wget --no-check-certificate https://www.rabbitmq.com/releases/rabbitmq-server/v3.6.3/rabbitmq-server_3.6.3-1_all.deb | |
apt-get -y install erlang-nox socat && | |
dpkg -i rabbitmq-server_3.6.3-1_all.deb && | |
rm rabbitmq-server_3.6.3-1_all.deb && | |
rabbitmq-plugins enable rabbitmq_management | |
rabbitmqctl add_user admin admin |
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
Н = 50000000; | |
Массив = Новый Массив(); | |
Массив.Добавить(Ложь); | |
Массив.Добавить(Ложь); | |
Для индекс = 2 По Н Цикл | |
Массив.Добавить(Истина); | |
КонецЦикла; |
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
#Использовать fs | |
#Использовать progbar | |
Процедура ВыполнитьСортировку(Знач ИсходныйПуть) | |
ПрогрессБар = Новый ПрогрессБар(); | |
ВсеФайлы = НайтиФайлы(ИсходныйПуть, ПолучитьМаскуВсеФайлы(), Ложь); | |
Таблица = Новый ТаблицаЗначений(); | |
Таблица.Колонки.Добавить("Ключ", Новый ОписаниеТипов("Дата")); |
OlderNewer