Skip to content

Instantly share code, notes, and snippets.

View jakobjs's full-sized avatar

Jakob jakobjs

  • Reykjavík, Iceland
View GitHub Profile
@Kristinn-Stefansson
Kristinn-Stefansson / RemoveObsoleteDotnetCoreSDKs.ps1
Last active January 13, 2020 10:30
Remove Obsolete .NET Core SDKs - Leaving the one with the highest version number
$app = Get-WmiObject -Class Win32_Product | Where-Object {
$_.Name -match ".NET Core SDK"
} | ForEach-Object {
$isMatch = $_.Name -match "(\d+)\.(\d+)\.(\d+)"
$version = [System.Version]::Parse($Matches[0])
return [System.Tuple]::Create(($version),$_)
}
$installedVersions = @{}
@danielepolencic
danielepolencic / README.md
Last active April 20, 2024 21:50
Create 3 nodes Kubernetes cluster locally with Vagrant

3 Virtual Machines Kubernetes cluster

Dependencies

You should install VirtualBox and Vagrant before you start.

Creating the cluster

You should create a Vagrantfile in an empty directory with the following content:

@f-bader
f-bader / Sync-TfsIdentity.ps1
Last active March 17, 2021 14:55 — forked from jstangroome/Sync-TfsIdentity.ps1
Force TFS 2018 to synchronize Active Directory group memberships
[CmdletBinding()]
param (
[Parameter(Mandatory=$true, Position=0)]
[uri]
$ServerUri
)
$ErrorActionPreference = 'Stop'
Set-StrictMode -Version Latest
@45413
45413 / string-and-filename-manipulation.ps1
Last active November 14, 2023 22:47
Powershell String and Filename Manipulation
# Working with a [System.IO.FileInfo] Object
## Get file object into variable
PS C:\DATA> $file = Get-ChildItem C:\DATA\test.xls
## Full path name
PS C:\DATA> $file.FullName
C:\DATA\test.xls
## Filename including extension
PS C:\DATA> $file.Name
@alexellis
alexellis / k8s-pi.md
Last active April 11, 2024 14:17
K8s on Raspbian
@jstangroome
jstangroome / Sync-TfsIdentity.ps1
Created September 20, 2012 01:56
Force TFS 2012 to synchronize Active Directory group memberships
[CmdletBinding()]
param (
[Parameter(Mandatory=$true, Position=0)]
[uri]
$ServerUri
)
$ErrorActionPreference = 'Stop'
Set-StrictMode -Version Latest