Skip to content

Instantly share code, notes, and snippets.

View Ayanmullick's full-sized avatar
🎯
Focusing

Ayan Mullick Ayanmullick

🎯
Focusing
View GitHub Profile
@BrianFarnhill
BrianFarnhill / harparser.ps1
Created April 8, 2020 22:32
Generate Locust test from HAR file in PowerShell
$rawData = Get-Content -Raw -Path 'YourFileNameHere.har' | ConvertFrom-Json
$rootUrl = 'https://Your.Root.Domain/'
$output = @"
from locust import HttpLocust, TaskSet, task
class MyTaskSet(TaskSet):
"@
@Badgerati
Badgerati / GitHub_PSModule.ps1
Created October 2, 2019 21:14
Example script for publishing a PowerShell module to the NuGet GitHub Package Registry
<# --
Register the GitHub Package Registry
-- #>
$username = '<github-username>'
$token = '<github-personal-token>'
$sourceName = 'GitHub'
$source = "https://nuget.pkg.github.com/$username/index.json"
# add the github package registry as a nuget source
@atifaziz
atifaziz / Get-ProcessTree.ps1
Last active November 30, 2021 09:20
PowerShell 2.0 script to get processes tree
# Copyright (c) 2014 Atif Aziz. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,