Skip to content

Instantly share code, notes, and snippets.

@artbear
artbear / reg-exp-from-xdto.bsl
Last active October 12, 2021 06:24
Регулярные выражения штатно через 1С и XDTO
// источник http://forum.infostart.ru/forum24/topic124865/message1517253
Функция ПроверитьСтроку(Строка, Фасет)
Чтение = Новый ЧтениеXML;
Чтение.УстановитьСтроку(
"<Model xmlns=""http://v8.1c.ru/8.1/xdto"" xmlns:xs=""http://www.w3.org/2001/XMLSchema"" xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""Model"">
|<package targetNamespace=""sample-my-package"">
|<valueType name=""testtypes"" base=""xs:string"">
|<pattern>" + Фасет + "</pattern>
|</valueType>
@artbear
artbear / init.coffee
Last active March 4, 2016 18:48 — forked from nixel2007/init.coffee
auto save as utf-8-bom in atom for onescript-files
atom.workspace.observeTextEditors (editor) ->
editor.onDidSave ->
if editor.getPath().slice(-3) is '.os'
if editor.getEncoding() is 'utf8' and editor.getText().charCodeAt(0) isnt 65279
editor.setText String.fromCharCode(65279) + editor.getText()
editor.save()
#!/usr/bin/env node
'use strict';
/*
#!/bin/bash
#
# Wrapper script for git mergetool
# This requires ~/.gitconfig file to have
# the following (adjusting for paths):
#
# [merge]
#!/bin/bash
# Wrapper script for git mergetool
# This requires the .gitconfig file to have:
# - mergetool entry for "wdiff";
# - mergetool entry for "fw_def";
# These merge tool entries must both specify the
# cmd field. The command to call this script:
# [mergetool "merge_wrapper"]
# cmd = $HOME/merge-wrapper \"$BASE\" \"$LOCAL\" \"$REMOTE\" \"$MERGED\"
# Locate this script in your $HOME
@artbear
artbear / .gitattributes
Created April 20, 2016 12:47
Docker Machine Jenkins
plugins.txt -crlf
run.sh -crlf
#!/bin/sh
# simple installer for Ubuntu 14.04 https://bitbucket.org/EvilBeaver/1script/wiki/Home
echo 'Starting wgeter latest develops'
wget --continue http://oscript.io/downloads/night-build/latest.zip
mkdir -p ./osc-engine/bin
mkdir -p ./osc-engine/lib
@artbear
artbear / install-oscript.sh
Last active October 18, 2020 12:40 — forked from EvilBeaver/install-oscript.sh
Правильная установка 1script на linux
#!/bin/sh
# simple installer for Ubuntu 14.04 https://bitbucket.org/EvilBeaver/1script/wiki/Home
echo 'Starting wgeter latest develops'
# wget --continue http://oscript.io/downloads/night-build/latest.zip
wget http://oscript.io/downloads/night-build/deb
sudo dpkg -i deb
@artbear
artbear / README.md
Created April 20, 2016 12:52 — forked from pumbaEO/README.md
jenkins groovy scripts collection.
@artbear
artbear / test-run.sh
Last active May 8, 2019 20:42 — forked from pumbaEO/gist:77ca3a00f14e44a4be54
Запуск тестирования xUnitFor1C 3.Х на Jenkins
#!/bin/sh
export WORKSPACE=`pwd`
echo $WORKSPACE
if test -d $WORKSPACE/build/ib; then rm -rf $WORKSPACE/build/ib; fi
mkdir $WORKSPACE/build -p
mkdir $WORKSPACE/build/ib -p
if test -d $WORKSPACE/test-reports; then rm -rf $WORKSPACE/test-reports; fi
[string[]] $urls = {}
$urls += "https://github.com/silverbulleters/vanessa-behavior.git"
$urls += "https://github.com/silverbulleters/vanessa-bdd-editor.git"
$urls += "https://github.com/silverbulleters/oscript-docker.git"
$urls += "https://github.com/silverbulleters/vanessa-stack-commons.git"
$urls += "https://github.com/silverbulleters/oscript-epf-merge.git"
$urls += "https://github.com/silverbulleters/vanessa-bootstrap.git"
$urls += "https://github.com/silverbulleters/vanessa-unpack.git"
$urls += "https://github.com/silverbulleters/vanessa-fixture-gen.git"
$urls += "https://github.com/silverbulleters/vanessa-epic-managment.git"