Moved gist to a repo: UNT-CAS/Update-VSCode
🍻 😏
<# | |
Invoked the test with the following command, so that I could save the times take the average of each Context: | |
```posh | |
Invoke-Pester -OutputFile test.xml -OutputFormat NUnitXml | |
``` | |
Then I did some math on the results as shown (yes, I use pipelines when not scripting): | |
```posh |
[System.Collections.ArrayList] $already_done = @() | |
Get-Content .\AppData\Local\CloudStation\log\daemon.log -Wait | ?{ $_ -match '\[ERROR\]' } | %{ | |
$_ -match '(\\Users\\[^\\]+\\CloudStation\\[^\]]+)' | Out-Null | |
if ($Matches[1] -and ($already_done -inotcontains $Matches[1])) { | |
Write-Host ($Matches[1] | Out-String) | |
Rename-Item (Resolve-Path $Matches[1]) "_$(Split-Path $Matches[1] -Leaf)" | |
while (-not (Test-Path $Matches[1])) { | |
Start-Sleep -Seconds 1 | |
} | |
Remove-Item "$(Split-Path $Matches[1] -Parent)\_$(Split-Path $Matches[1] -Leaf)" -Force |
C:\Temp>env\Scripts\python.exe manage.py shell | |
Python 3.5.1 (v3.5.1:37a07cee5969, Dec 6 2015, 01:54:25) [MSC v.1900 64 bit (AMD64)] on win32 | |
Type "help", "copyright", "credits" or "license" for more information. | |
(InteractiveConsole) | |
>>> from myapp.settings import EMAIL_KEY_EXPIRY_TIME | |
>>> from user.helpers import signing_dumps_w_entropy, signing_loads_w_entropy, get_uri | |
>>> import urllib.parse | |
>>> | |
>>> email = '[email protected]' | |
>>> key = signing_dumps_w_entropy(email) |
# This file describes the network interfaces available on your system | |
# and how to activate them. For more information, see interfaces(5). | |
source /etc/network/interfaces.d/* | |
# The loopback network interface | |
auto lo | |
iface lo inet loopback | |
# The primary network interface |
Moved gist to a repo: UNT-CAS/Update-VSCode
🍻 😏
Use these scripts to test VMware Horizon client connections.
The idea with these simple scripts is that a user might be telling IT staff that "they can't connect" or "it's not working."
These are simple scripts that can be run to collect useful information into a TestHorizonConnections.*.log
file for sending to the IT staff.
The log file will get automatically created in the users Downloads folder. the *
is a timestamp.
The file will be named something like this:
TestHorizonConnections.2023-11-06T12_19_46.5917880-06_00.log