Skip to content

Instantly share code, notes, and snippets.

View artemkozlenkov's full-sized avatar
✌️

Artem Kozlenkov artemkozlenkov

✌️
View GitHub Profile
@'
param (
[string]$Url,
[string]$OutputFileName
)
if (-not $Url) {
Write-Host "Please provide a URL using -Url parameter."
exit 1
}
@'
# Check if Chocolatey is installed, and if not, install it
if (-not (Get-Command choco -ErrorAction SilentlyContinue)) {
Write-Output "Chocolatey is not installed. Installing Chocolatey..."
Set-ExecutionPolicy Bypass -Scope Process -Force
iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
}
# Install Git using Chocolatey
Write-Output "Installing Git..."
# create new key
ssh-keygen -f ~/.ssh/new_key