Skip to content

Instantly share code, notes, and snippets.

View asikorski's full-sized avatar
💭
I may be slow to respond.

asikorski

💭
I may be slow to respond.
  • Kraków, Malopolskie, Poland
View GitHub Profile
@asikorski
asikorski / Install-Modules.ps1
Last active October 4, 2021 18:18
Powershell
Install-Module -Name Az -AllowClobber -Scope CurrentUser
Install-Module -Name PSModuleDevelopment -AllowClobber -Scope CurrentUser
Install-Module -Name PSFramework -AllowClobber -Scope CurrentUser
Install-Module -Name AzureAD -AllowClobber -Scope CurrentUser
Install-Module -Name Pester -RequiredVersion 4.10.1 -AllowClobber -Scope CurrentUser
Invoke-WebRequest -Uri https://aka.ms/installazurecliwindows -OutFile .\AzureCLI.msi; Start-Process msiexec.exe -Wait -ArgumentList '/I AzureCLI.msi /quiet'
az extension add --name azure-devops
@asikorski
asikorski / git.sh
Last active September 14, 2019 09:03
[Git]
#!/bin/bash
#Wyswietl log gita jako nazwy komitow
git log --pretty=format:"%s"
#Clone repository to folder
git clone [email protected]:whatever folder-name
#Checkout to remote branch
@asikorski
asikorski / tfx.sh
Last active May 30, 2019 07:44
[Tfx]
#!/bin/bash
#Install Tool ([https://www.npmjs.com/package/tfx-cli](https://www.npmjs.com/package/tfx-cli))
npm install -g tfx-cli
#Autoryzacja a nastepnie provide correct URL [**https://abilityplatform.visualstudio.com/DefaultCollection**](https://abilityplatform.visualstudio.com/DefaultCollection) and PAT token
tfx login --authType pat
#Publish task z bierzacego katalogu do wczesniej skonfigurowanego vsts
tfx build tasks upload --task-path .
@asikorski
asikorski / az.ps1
Last active September 14, 2019 09:41
[az] #azure
Invoke-WebRequest -Uri https://aka.ms/installazurecliwindows -OutFile .\AzureCLI.msi; Start-Process msiexec.exe -Wait -ArgumentList '/I AzureCLI.msi /quiet'
#Zainstlauje najnowsza wersje Azure Az
az extension add --name azure-devops
#Instlauje extension do zarzadzania Azure DevOps
az login
az devops configure --defaults organization=https://dev.azure.com/abilityplatform project="Ability Platform"
#Loguje a nastepnie konfiguruje dostep do orgazniacji