Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

View MoimHossain's full-sized avatar
:shipit:
Crafting bugs!

Moim HA MoimHossain

:shipit:
Crafting bugs!
View GitHub Profile
@MoimHossain
MoimHossain / query.md
Created November 15, 2023 08:47
Azure DevOps Query via REST API

AzDO Queries

Because of the depth limit, the following way to retrieve the hierarchy could be a better appraoch.

If you are doing it on client side, you can follow the same algorithm - but only perform the expanson of folders on-demand (responding to user's click on a folder for expansion to prevent any page-freeze)

Load the Root folders

Lets explicitly load without the children (depth = 0)

@MoimHossain
MoimHossain / Permissions.http
Last active January 18, 2023 07:32
AzDO API to get user permission in a project
@projectName = "Platform"
@projectId = 1853c648-0f7d-4f1e-80ab-fd1ecd333520
@scopeDescriptor = scp.NjNlMTM4ODctZmZiNi00MTkxLTk3ZjYtODM0MmRiM2YzZjll
### Get scop descriptor for project
GET https://{{graphHost}}/{{organization}}/_apis/Graph/Descriptors/{{projectId}} HTTP/1.1
content-type: application/json; charset=utf-8; api-version=5.2-preview.1
Authorization: Basic {{base64EncodedPat}}
@MoimHossain
MoimHossain / RemoveAzureContainerRegistryImages
Created December 14, 2017 12:23
Removes container registry images
// list all
az acr repository show-tags -n ibispaas --repository ibis-fst-spa
// delete tags
az acr repository delete -n ibispaas --repository ibis-fst-spa --tag "20171204.3" -y
az acr repository delete -n ibispaas --repository ibis-fst-spa --tag "20171207.6" -y
az acr repository delete -n ibispaas --repository ibis-fst-spa --tag "20171116.6" -y
az acr repository delete -n ibispaas --repository ibis-fst-spa --tag "20171101.1" -y
az acr repository delete -n ibispaas --repository ibis-fst-spa --tag "20171107.2" -y
#!/bin/bash
# example of using arguments to a script
sudo echo "Hello world ---------------------- Moim Hossain"
sudo docker version