Skip to content

Instantly share code, notes, and snippets.

View tschoonover's full-sized avatar

Timothy Schoonover tschoonover

View GitHub Profile
@tschoonover
tschoonover / bootstrap-dotnet
Last active June 6, 2019 07:52
Install .NET Core 1.1 and VS Code with C# extension for Linux Mint 18 / Ubuntu 16.04 (amd64)
#!/bin/bash
#dotnet
sh -c 'echo "deb [arch=amd64] https://apt-mo.trafficmanager.net/repos/dotnet-release/ xenial main" > /etc/apt/sources.list.d/dotnetdev.list'
apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 417A0893
apt-get update
apt-get install dotnet-dev-1.0.0-preview2.1-003177
#vscode
wget "https://go.microsoft.com/fwlink/?LinkID=760868" -qO /tmp/vscode.deb && dpkg -i /tmp/vscode.deb
@tschoonover
tschoonover / Test-ADAuthentication.ps1
Last active April 20, 2017 18:35
Check password with PowerShell
Function Test-ADAuthentication {
param($username,$password)
(new-object directoryservices.directoryentry "",$username,$password).psbase.name -ne $null
}
Test-ADAuthentication "DOMAIN\username" "password"