Node JS

TIP: Node JS PUG Conditionals

Posted on

Recently I was working on a tiny project in which I need to make text field as READONLY when it’s backfilled by query and FREE TEXT if empty. Yes, as you guessed I use PowerShell a lot at my workplace. Having said that, let me show case the demo using PowerShell and Node JS Scenario […]

PowerShell

TIP: Using TrueSight QueryEventByID and RetrieveQueryResults Complex Types in PowerShell

Posted on

Recently I was working on piece of code which retrieves TrueSight alert information. I got stuck with “Invalid Long Type:” – Doesn’t make sense right? Come lets see it detail! Consider you have an alert ID like “mc.pncell_[HOSTNAME].1a5ed3bb.0” using the below snippet you can retrieve the result (resultHandle)

We need the resultHandle for RetrieveQueryResults operations. Now let […]

PowerShell

Create VSTS Build Definitions using PowerShell

Posted on

For my current project assignment I was asked to share a PowerShell script which creates VSTS build + phase dynamically. To make this blog short let me show a simple build definitions sample. With no wait here is the code

Step 1: You need Personal Access Token (PAT). Go get it. Step 2: Convert […]

Node JS

Dynamically populate data for drop down list using PUG in Node JS

Posted on

Let me keep this blog simple and easy. All we need to achieve is to dynamically retrieve items in PUG drop down list. Here is the logic!

So, now let us create a data.json file – In my case it’s like below

For our demo let’s list the Skills in drop down list […]