Skip to content

Instantly share code, notes, and snippets.

View vorou's full-sized avatar

Viktor Voropaev vorou

View GitHub Profile
set-executionpolicy remotesigned; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')); cinst -y conemu; Start-BitsTransfer -Source "https://raw.githubusercontent.com/vorou/config/master/ConEmu.xml" -Destination "C:\Program Files\ConEmu"
sudo apt-get install -y --no-install-recommends apt-transport-https ca-certificates curl software-properties-common
curl -fsSL https://apt.dockerproject.org/gpg | sudo apt-key add -
sudo add-apt-repository "deb https://apt.dockerproject.org/repo/ ubuntu-$(lsb_release -cs) main"
sudo apt-get update
sudo apt-get -y install docker-engine
sudo docker run hello-world
sudo curl -L "https://github.com/docker/compose/releases/download/1.11.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
git clone
// ==UserScript==
// @name teamcity
// @namespace elba-build-2
// @include http://elba-build-1/*
// @include http://elba-build-2/*
// @version 1
// @grant none
// ==/UserScript==
console.log('teamcity.user.js');
// ==UserScript==
// @name Generate branch name for YT issue
// @namespace voropaev.viktor@gmail.com
// @include https://yt.skbkontur.ru/issue/*
// @version 1
// @grant none
// ==/UserScript==
/**
* Create a web friendly URL slug from a string.
<meta name="theme-color" content="#3094d0" />
<meta name="msapplication-navbutton-color" content="#3094d0" />
<meta name="apple-mobile-web-app-status-bar-style" content="#3094d0" />
cat C:\elasticsearch\logs\*_index_search_slowlog.log | select -last 1 | %{$_ -match 'source\[(.*)\], extra_source'} | %{$Matches[1]} | clip
[Test]
public void UnitOfWork_StateUnderTest_ExpectedBehavior()
{
var routes = new RouteCollection();
RouteConfig.RegisterRoutes(routes);
var response = new Mock<HttpResponseBase>();
response.Setup(x => x.ApplyAppPathModifier("/Home/DoStuff")).Returns("http://localhost/Home/DoStuff");
var context = new Mock<HttpContextBase>();
$ErrorActionPreference = 'Stop';
$process = Get-Process RBTray -ErrorAction SilentlyContinue
if ($process) {
Stop-Process $process
Write-Output "Process stopped, waiting for 5 sec."
Start-Sleep -s 5
}
> cmd /c ".\umodel.exe -nomesh -noanim -dds -export .\CHAR_Aztec_B.xxx > aztec.log 2>&1"
Detected game root . (no recurse)
Found 2 game files (5 skipped)
Loading package: CHAR_Aztec_B.xxx Ver: 677/157 Engine: 379 Names: 2743 Exports: 524 Imports: 79 Game: 8103
Loading MaterialInstanceConstant AZ_A_Xray_GN_Eyeball_MIC from package CHAR_Aztec_B.xxx
******** Loading object MaterialInstanceConstant'CHAR_Aztec_B.AZ_A_Xray_GN_Eyeball_MIC' ********
*** Struc property ParameterValue expected type FLinearColor but read FLinearColor
*** Struc property ParameterValue expected type FLinearColor but read FLinearColor
*** Struc property ParameterValue expected type FLinearColor but read FLinearColor