This file contains 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-InfluxDb { | |
param( | |
[Parameter()] | |
$Url = 'http://localhost:8086/query?db=performance_data', | |
[Parameter()] | |
$Query | |
) | |
$Results = Invoke-RestMethod -Uri "$Url&q=$Query" |
This file contains 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 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 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 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 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 = (& { | |
h1 "This is h1 Title in header" | |
div { | |
p { | |
"This is simply a paragraph in a div." | |
} | |
h1 "This is h1" | |
h2 "This is h2" | |
h3 "This is h3" |
This file contains 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 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 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 "$PSScriptRoot/UniversalDashboard.psd1" | |
Import-Module "$PSScriptRoot/UniversalDashboard.CodeEditor/1.0.1/UniversalDashboard.CodeEditor.psd1" | |
Import-Module "$PSScriptRoot/UniversalDashboard.Helmet/1.0.1/UniversalDashboard.Helmet.psd1" | |
Import-Module "$PSScriptRoot/UniversalDashboard.Style/1.0.0/UniversalDashboard.Style.psd1" | |
Import-Module "$PSScriptRoot/UniversalDashboard.Diagrams/1.0.1/UniversalDashboard.Diagrams.psd1" | |
Import-Module "$PSScriptRoot/UniversalDashboard.SyntaxHighlighter/1.0.0/UniversalDashboard.SyntaxHighlighter.psd1" | |
Import-Module "$PSScriptRoot/UniversalDashboard.ObjectTree/1.0.1/UniversalDashboard.ObjectTree.psd1" | |
# Provides the New-CustomDashboard cmdlet. | |
Import-Module "$PSScriptRoot/Dashboard/Dashboard.psd1" |
This file contains 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 CreateProfile | |
{ | |
param([String]$pszUserSid, [String]$pszUserName, [System.Text.StringBuilder]$pszProfilePath, [uint]$cchProfilePath) | |
Add-Type -TypeDefinition ' | |
using System; | |
using System.Runtime.InteropServices; | |
public static class PInvoke { | |
[DllImport("userenv.dll", SetLastError = true, CharSet = CharSet.Auto)] | |
public static extern int CreateProfile( [MarshalAs(UnmanagedType.LPWStr)] String pszUserSid, [MarshalAs(UnmanagedType.LPWStr)] String pszUserName, [Out, MarshalAs(UnmanagedType.LPWStr)] System.Text.StringBuilder pszProfilePath, uint cchProfilePath); | |
} |
NewerOlder