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 New-UDColorPicker { | |
[CmdletBinding()] | |
param( | |
[Parameter()] | |
[string]$Id = [Guid]::NewGuid(), | |
[Parameter()] | |
[ScriptBlock]$OnChange, | |
[Parameter()] | |
[string]$Value, | |
[Parameter()] |
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
{ | |
"version": "2.0.0", | |
"tasks": [ | |
{ | |
"label": "Start Universal (Test Config)", | |
"command": "${workspaceFolder}/src/output/Universal.Server.exe", | |
"type": "process", | |
"args": [ | |
"--appsettings", | |
"${workspaceFolder}\\test-configs\\${input:testConfig}" |
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-User { | |
1..100 | ForEach-Object { | |
[PSCustomObject]@{ | |
UserName = "User$_" | |
First = "Bill" | |
Last = $_ | |
Avatar = (Get-ChildItem "$Repository\Avatars" | Get-Random).Name | |
} | |
} | |
} |
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
tribution | |
500px | |
AccessibleIcon | |
Accusoft | |
AcquisitionsIncorporated | |
Adn | |
Adversal | |
Affiliatetheme | |
Airbnb | |
Algolia |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StuckRects3] | |
"Settings"=hex:30,00,00,00,fe,ff,ff,ff,7a,f4,00,00,03,00,00,00,5d,00,00,00,30,\ | |
00,00,00,00,00,00,00,00,00,00,00,80,07,00,00,30,00,00,00,60,00,00,00,01,00,\ | |
00,00 | |
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 Out-ColorString { | |
param([Parameter(ValueFromPipeline = $true)]$InputObject) | |
Begin { | |
$Items = @() | |
} | |
Process { | |
$Items += $InputObject |
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
$Path = Join-Path $Env:ProgramData "PowerShellUniversal" | |
$ExecutablePath = (Join-Path $Path "Universal.Server.exe") | |
Start-PSUServer -Port 5000 -Configuration { | |
New-PSUDashboard -Name 'Dashboard' -BaseUrl '/dashboard' -Framework "UniversalDashboard:Latest" -Content { | |
New-UDDashboard -Title 'Dashboard' -Content { | |
New-UDHelmet -Content { | |
New-UDHtmlTag -Tag 'link' -Attributes @{ | |
rel = "stylesheet" | |
href = 'https://fonts.googleapis.com/icon?family=Material+Icons' |
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
FROM mcr.microsoft.com/powershell:lts-ubuntu-18.04 | |
LABEL description="Universal - The ultimate platform for building web-based IT Tools" | |
EXPOSE 5000 | |
COPY [ "./stage", "/home/" ] | |
ENTRYPOINT ["./home/Universal/Universal.Server"] |
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 Send-Socket { | |
param( | |
$IPAddress, | |
$Port, | |
$Command | |
) | |
$ipEndpoint = [System.Net.IPEndPoint]::new([System.Net.IPAddress]$IPAddress, $Port) | |
$socket = [System.Net.Sockets.Socket]::new($ipEndpoint.AddressFamily, 'Stream', 'TCP') | |
$socket.Connect($ipEndpoint) |
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 .\module.psm1 | |
function New-ComponentPage { | |
param( | |
$Page | |
) | |
New-Page | |
} |
NewerOlder