Skip to content

Instantly share code, notes, and snippets.

Danijel Malik DanijelMalik

Block or report user

Report or block DanijelMalik

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
DanijelMalik / DownloadBuildArtifacts.ps1
Created Aug 28, 2018
Download build artifacts in VSTS Release
View DownloadBuildArtifacts.ps1
[Parameter(Mandatory = $true)]
[string] $AccountName
# System variables
$releaseId = $env:RELEASE_RELEASEID
View GitCleanup.ps1
[Parameter(Mandatory = $false)]
[string] $Location
$oldLocation = Get-Location
Write-Host "Set Git location '$Location" -ForegroundColor Cyan
Set-Location $Location

Get ready for modern DevOps

Modern DevOps is a highway to greater business value and it works cross-platform. Automated deployments solved a handover problem, Application Monitoring Platforms closed the feedback and crash reporting gap, and containers made the “works on my machine” stereotype real. Next mission: automated environments.

In this session, Danijel will start by identifying the common bad practices to give you some quick wins. His experience starts from the smallest businesses and extends to the largest businesses including some of the largest banks. You will learn why Zero Based Infrastructure is the next step of a DevOps evolution, why Cloud is your best friend, and how to integrate this approach back into your deployment pipeline. You will walk away with a solid understanding of what Infrastructure as Code is and the main advantages, leaving you with nothing to worry about but your code.

View SSW.Website.TfsHelper.VSTS.cs
public TfsHelper(Uri uri, string username, string password)
_tfsServer = new TfsTeamProjectCollection(uri, new VssAadCredential(username, password));
_buildServer = _tfsServer.GetService<IBuildServer>();
_versionServer = _tfsServer.GetService<VersionControlServer>();
View SSW.Website.TfsHelper.TFS.cs
public TfsHelper(Uri uri)
_tfsServer = new TfsTeamProjectCollection(uri);
_buildServer = _tfsServer.GetService<IBuildServer>();
_versionServer = _tfsServer.GetService<VersionControlServer>();
DanijelMalik / TransformXml.ps1
Created Jan 6, 2017
Transforms XML files e.g. Web.Release.config to Web.config
View TransformXml.ps1
[string] $SourceFile,
[string] $TargetFile
if (!$SourceFile -or !(Test-Path -path $SourceFile -PathType Leaf)) {
throw "File not found. $xml";
if (!$TargetFile -or !(Test-Path -path $TargetFile -PathType Leaf)) {
throw "File not found. $TargetFile";
DanijelMalik / NuGet.config
Created Jan 6, 2017
NuGet.config for Sitefinity
View NuGet.config
<?xml version="1.0" encoding="utf-8"?>
<add key="SitefinityNuGet" value="" />
<add key="" value="" />
<add key="All" value="(Aggregate source)" />
View WorkstationSetup.ps1
[switch] $Essentials,
[switch] $DevelopmentTools
function Install-ChocoPackages()
[string[]] $Packages
You can’t perform that action at this time.