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
| using System.Text.Json; | |
| namespace HorizonREST.Models | |
| { | |
| public class AuthResponse | |
| { | |
| public string access_token { get; set; } | |
| public string refresh_token { get; set; } | |
| public string HorizonServer { get; set; } | |
| public AuthResponse() { } |
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
| variable "vsphere_user" {} | |
| variable "vsphere_password" {} | |
| variable "vsphere_server" {} | |
| variable "vsphere_nic_type" {} | |
| variable "windows_dc_name" {} | |
| variable "windows_dcoex_name" {} | |
| variable "windows_fs_name" {} | |
| variable "windows_cs_name" {} | |
| variable "windows_ca_name" {} | |
| variable "windows_av_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
| /provision /domain ftidev /machine TextXXXX /savefile TextXXXX.txt /reuse | |
| Add-Type -OutputType ConsoleApplication -OutputAssembly print_argv.exe -TypeDefinition @' | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Runtime.InteropServices; | |
| namespace PrintArgv | |
| { | |
| class Program | |
| { |
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
| using System; | |
| using System.Collections.Generic; | |
| using System.ComponentModel; | |
| using System.Data; | |
| using System.Diagnostics; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Net; | |
| using System.ServiceProcess; | |
| using System.Text; |
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 _MouseClicker { | |
| [cmdletbinding()] | |
| param( | |
| [int]$SecondsToRun, | |
| [int]$SleepSeconds, | |
| [Switch]$RunForever | |
| ) | |
| Function Get-MousePosition { | |
| Add-Type -AssemblyName System.Windows.Forms | |
| $return = [PSCustomObject]@{ |
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
| [cmdletbinding()] | |
| param( | |
| $SyncHash | |
| ) | |
| #-------------------------------------------------------------# | |
| #----XML Form Declarations------------------------------------# | |
| #-------------------------------------------------------------# | |
| Add-Type -AssemblyName PresentationCore, PresentationFramework, System.Windows.Forms | |
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
| Add-Type -AssemblyName PresentationCore | |
| function argb2box { | |
| $c = ($args[0] -split '#..(.{2})(.{2})(.{2})') | |
| $r, $g, $b = ("$c" -join (' ')).trim() -split ' ' | |
| return "`e[48;2;$([Int32]"0x$r");$([Int32]"0x$g");$([Int32]"0x$b")m `e[0m" | |
| } | |
| $sc = [System.Windows.Media.Colors] | |
| $array = $sc | Get-Member -static -Type Property | Select-Object -Expand Name | ForEach-Object { | |
| [pscustomobject]@{ | |
| ARGB = "$($sc::$_)" |
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
| #-------------------------------------------------------------# | |
| #----Initial Declarations-------------------------------------# | |
| #-------------------------------------------------------------# | |
| using namespace System.Windows | |
| using namespace System.Windows.Controls | |
| using namespace System.Windows.Threading | |
| Add-Type -AssemblyName PresentationCore, PresentationFramework, WindowsBase | |
| $Xaml = @" | |
| <Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" Width="800" Height="400" HorizontalAlignment="Left" VerticalAlignment="Top" Margin="0,0,0,0" WindowStartupLocation="CenterScreen" Title="Window Title"> |
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-Colors { | |
| $colors = [enum]::GetValues([System.ConsoleColor]) | |
| Foreach ($bgcolor in $colors) { | |
| Foreach ($fgcolor in $colors) { Write-Host "$fgcolor|" -ForegroundColor $fgcolor -BackgroundColor $bgcolor -NoNewLine } | |
| Write-Host " on $bgcolor" | |
| } | |
| } |
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
| { | |
| "__inputs": [ | |
| { | |
| "name": "DS_INFLUXDB", | |
| "label": "InfluxDB", | |
| "description": "", | |
| "type": "datasource", | |
| "pluginId": "influxdb", | |
| "pluginName": "InfluxDB" | |
| } |
NewerOlder