Skip to content

Instantly share code, notes, and snippets.

View voronenko-p's full-sized avatar

voronenko-p

View GitHub Profile
# register default runner with powershell
# register-runner -gitRegistrationToken SPECIFY -hostTags "windows"
# register oldschool runner with windows cmd
# register-runner -gitRegistrationToken SPECIFY -hostTags "windows" -gitlab_executor "shell" -gitlab_shell "cmd"
# install runner service as localsystem
# gitlab-service-register
# install runner service on behalf of specific user
Set-StrictMode -Version Latest
$ErrorActionPreference = "Stop"
$PSDefaultParameterValues['*:ErrorAction'] = 'Stop'
$url = "https://curl.haxx.se/ca/cacert.pem"
$output = "$PSScriptRoot\cacert.pem"
$certlocation = "Cert:\LocalMachine\Root"
Write-Host "Downloading $url to $output " -ForegroundColor "Yellow"
# This is the sshd server system-wide configuration file. See
# sshd_config(5) for more information.
# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options override the
# default value.
Port 22
#AddressFamily any