View paxwatch.ps1
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
Write-Host -fore green '===PAX CHECKER===' | |
Write-Host -fore green '===This will open a browser to the ticket window if PAX goes on sale===' | |
$result = $null | |
do { | |
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 | |
Write-Host -fore gray "$(Get-Date): Checking ShowClix for PAX" | |
$paxEvents = (Invoke-RestMethod -Headers @{'Cache-Control' = 'max-age=0'} 'https://www.showclix.com/rest.api/Partner/48/events').psobject.properties.value | | |
Where-Object { $PSItem.event -match 'PAX' -and $PSItem.event -notmatch 'BYOC|Special|Media|Exhibitor' } | |
$result = $paxEvents | | |
Where-Object { |
View settings.json
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
{ | |
"[bicep]": { | |
"editor.defaultFormatter": "ms-azuretools.vscode-bicep", | |
"editor.suggest.showWords": false, | |
"editor.suggest.snippetsPreventQuickSuggestions": false, | |
"editor.suggestSelection": "first", | |
"editor.wordBasedSuggestions": false, | |
"files.insertFinalNewline": true | |
}, | |
"[csharp]": { |
View MSBuild.xsd
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
<?xml version="1.0" encoding="utf-8"?> | |
<xs:schema targetNamespace="http://schemas.microsoft.com/developer/msbuild/2003" | |
xmlns:xs="http://www.w3.org/2001/XMLSchema" | |
xmlns:msb="http://schemas.microsoft.com/developer/msbuild/2003" | |
elementFormDefault="qualified"> | |
<!-- =================== IMPORT COMMON SCHEMA =========================== --> | |
<xs:include schemaLocation="https://raw.githubusercontent.com/dotnet/msbuild/main/src/MSBuild/Microsoft.Build.xsd"/> | |
<!-- ========= ADD CUSTOM ITEMS, PROPERTIES, AND TASKS BELOW ======= --> |
View pingometer.json
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": "0.9.9", | |
"description": "A small portable program that show your ping in Windows system tray.", | |
"homepage": "https://github.com/EFLFE/PingoMeter", | |
"license": "MIT", | |
"url": "https://github.com/EFLFE/PingoMeter/releases/download/0.9.9/PingoMeter_r0.9.9.zip", | |
"hash": "065C609C9AE945F55AA9476195091BE0A8D8D112B8ABDAB9392CE400981C88E4", | |
"extract_dir": "PingoMeter", | |
"shortcuts": [ | |
[ |
View CodeTunnel.ps1
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
param( | |
#Custom name for this cloud shell, if desired | |
[string]$Name, | |
#Auto-accept the licensing parameters = | |
[switch]$AcceptLicense, | |
#Use the insiders version of code CLI | |
[switch]$Insiders | |
) | |
$ErrorActionPreference = 'Stop' | |
$ProgressPreference = 'SilentlyContinue' |
View Get-ScriptModules.ps1
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
#requires -version 7 | |
using namespace System.Management.Automation.Language | |
using namespace Collections.Generic.Queue | |
function Get-ScriptModules { | |
<# | |
.SCRIPTBLOCK | |
Given a script, returns a list of all the modules it uses. | |
#> |
View EasyFormat.ps1
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
using namespace System.Management.Automation | |
using namespace System.Collections | |
function ConvertFrom-Format { | |
<# | |
.SYNOPSIS | |
Converts Format-Table output to a format that can be used with Add-FormatTable | |
#> | |
param( | |
#The name of the format view definition assigned to the format data. Default is 'CustomTableView | |
[ValidateNotNullOrEmpty()][string]$Name = 'CustomTableView', |
View settings.jsonc
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
Show hidden characters
//NOTE: Your .csproj file MUST have a dummy <Target Name='MakeSchemaHappy' /> to satisfy the schema or you will get an error | |
{ | |
"xml.fileAssociations": [ | |
{ | |
"pattern": "**/*.csproj", | |
"systemId": "https://raw.githubusercontent.com/dotnet/msbuild/main/src/MSBuild/Microsoft.Build.xsd" | |
} | |
], | |
"xml.validation.namespaces.enabled": "onNamespaceEncountered" | |
} |
View TestICMP.csproj
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
<Project Sdk="Microsoft.NET.Sdk"> | |
<PropertyGroup> | |
<TargetFramework>net7.0</TargetFramework> | |
<ImplicitUsings>enable</ImplicitUsings> | |
<Nullable>enable</Nullable> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="System.Management.Automation" Version="7.3.2" PrivateAssets="all" /> |
View Get-MgServicePrincipalPermission.ps1
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
#requires -version 7 | |
using namespace Microsoft.Graph.PowerShell.Models | |
using namespace System.Collections.Generic | |
function Get-MgServicePrincipalPermission { | |
param( | |
[Parameter(ParameterSetName='Id',ValueFromPipelineByPropertyName)][Alias('Id')][string]$ServicePrincipalId, | |
[Parameter(ParameterSetName='Object',ValueFromPipeline)][MicrosoftGraphServicePrincipal]$ServicePrincipal | |
) | |
begin { |
NewerOlder