Skip to content

Instantly share code, notes, and snippets.

View eriawan's full-sized avatar
:octocat:
Focusing on .NET, C#, F# and Azure DevOps

Eriawan Kusumawardhono eriawan

:octocat:
Focusing on .NET, C#, F# and Azure DevOps
View GitHub Profile
@eriawan
eriawan / sonarqube-remove-branch-name.yml
Created January 11, 2021 13:49 — forked from wilbit/sonarqube-remove-branch-name.yml
It removes sonar.branch.name property in Azure Pipeline. Put it somewhere between your SonarQubePrepare and SonarQubeAnalyze tasks.
- powershell: |
$params = "$env:SONARQUBE_SCANNER_PARAMS" -replace '"sonar.branch.name":"[\w/,-.]*"\,?'
Write-Host "##vso[task.setvariable variable=SONARQUBE_SCANNER_PARAMS]$params"
@eriawan
eriawan / example.md
Created June 23, 2020 10:09 — forked from ericclemmons/example.md
HTML5 <details> in GitHub

Using <details> in GitHub

Suppose you're opening an issue and there's a lot noisey logs that may be useful.

Rather than wrecking readability, wrap it in a <details> tag!

<details>
 Summary Goes Here
@eriawan
eriawan / gist:c14140ae45dd88c4bf6bab0a483426d6
Created March 28, 2019 11:29 — forked from steelcm/gist:2558512
Find open ports on windows server using PowerShell
PS C:\> netstat -an | select-string -pattern "listening"
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING
TCP 0.0.0.0:81 0.0.0.0:0 LISTENING
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING
TCP 0.0.0.0:383 0.0.0.0:0 LISTENING
@eriawan
eriawan / VSTS.yml
Created November 6, 2018 12:22 — forked from MarcusFelling/VSTS.yml
Example VSTS YAML build with 5 phases
phases:
- phase: CD
queue: LEP
steps:
- task: PowerShell@1
displayName: ExtConfigs_PreBuild.ps1
inputs:
scriptType: filePath
scriptName: "$(repo.BuildScripts)/ExtConfigs_PreBuild.ps1"
arguments: ''