This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ([System.Net.Dns]::GetHostByName(($env:computerName))).HostName |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Import-module Polaris -force | |
| # Using a script block | |
| New-PolarisPostRoute -Path "/Pcc" -ScriptBlock { | |
| $json = $Request.Body | |
| $comp = $json.computerName | |
| $FileName = $Json.FileName | |
| $return = $comp + $FileName | |
| $response.Send($return) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <head> | |
| <!-- | |
| Uncomenting this section, and commenting the links below, actually works... | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
| <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script> | |
| --> | |
| <Link rel='stylesheet' type=text/css href='C:/Program Files/WindowsPowerShell/Modules/PSHTML/0.7.11/Assets/BootStrap/bootstrap.min.css'> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <# | |
| <html> | |
| <head> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/css/bootstrap.min.css"> | |
| <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> | |
| <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.1/js/bootstrap.min.js"></script> | |
| </head> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| image: | |
| - Previous Ubuntu | |
| - Visual Studio 2015 | |
| install: | |
| - ps: >- | |
| .\CI\02_Install.ps1 | |
| build_script: | |
| - ps: >- | |
| write-host "Skipping build" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Import-Module C:\Users\taavast3\OneDrive\Repo\Projects\OpenSource\PSHTML\PSHTML\PSHTML.psd1 -Force | |
| Import-Module Polaris -Force | |
| New-PolarisGetRoute "/" -Scriptblock { | |
| $GroupName = "TestGroup" | |
| $HTML = .\Routes\LocalUserView.ps1 -GroupName $GroupName | |
| $Response.SetContentType('text/html') |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Param( | |
| [String]$UserSID = 'S-1-5-21-3890033740-644365979-2086776761-1001', | |
| [String]$GroupName | |
| ) | |
| If($UserSID){ | |
| $Response.SetContentType('text/plain') | |
| #$Body = [System.Web.HttpUtility]::UrlDecode($Request.BodyString) | |
| $Response.Send(($Request.BodyString)) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Param( | |
| [String]$GroupName = "administrators" | |
| ) | |
| html { | |
| head { | |
| title 'Local User Manager' | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Function Get-GitLabCIVariableValues { | |
| $Standardvariables = Get-Variable | ? {$_.Name -like "CI*" -or $_.Name -like "*GITLAB_*"} | |
| #$NonStandardVariables = Get-Variable -Name "RESTORE_CACHE_ATTEMPTS","CHAT_INPUT","CHAT_CHANNEL","GET_SOURCES_ATTEMPTS","ARTIFACT_DOWNLOAD_ATTEMPTS" | |
| $return = $Standardvariables #+ $NonStandardVariables | |
| return $return | |
| } | |
| $FullLocalRepoPath = (Get-Variable -Name CI_PROJECT_DIR -ValueOnly).Replace("/","\") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Class Repository { | |
| [System.IO.DirectoryInfo]$RootPath | |
| [System.IO.DirectoryInfo[]]$Subfolders | |
| Repository([String]$RootPath,[String[]]$SubFolders){ | |
| $this.RootPath = $RootPath | |
| $this.AddSubFolder($SubFolders) | |
| } |