Skip to content

Instantly share code, notes, and snippets.

@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"
@artbear
artbear / Отключить1С.ps1
Created April 20, 2016 13:19 — forked from b4tman/Отключить1С.ps1
Скрипт отрубающий всех (на клиентском компе) забывчивых от сервера 1с, с обратным отсчетом. Прописывается в планировщик на конец рабочего дня. (Powershell only)
# у 1С нет x86_64 версии компонента V83.COMConnector, поэтому проще запустить x86 версию PowerShell
if ($env:Processor_Architecture -ne "x86") {
write-warning "Запуск PowerShell x86..."
if ($myInvocation.Line) {
&"$env:WINDIR\syswow64\windowspowershell\v1.0\powershell.exe" -NonInteractive -NoProfile $myInvocation.Line
} else {
&"$env:WINDIR\syswow64\windowspowershell\v1.0\powershell.exe" -NonInteractive -NoProfile -file "$($myInvocation.InvocationName)" $args
}
exit $lastexitcode
}