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 _BroadcastSettingsChange | |
{ | |
if ([Environment]::UserInteractive) | |
{ | |
$win32native = @' | |
namespace EnvUtils | |
{ | |
using System; | |
using System.Runtime.InteropServices; | |
using System.Runtime.Versioning; |
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 Test-ProcessElevated | |
{ | |
[CmdletBinding()] | |
[OutputType([bool])] | |
param ( | |
[Parameter(Mandatory = $true, ValueFromPipeline = $true)] | |
[System.Diagnostics.Process] $Process | |
) | |
begin { |
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
/* | |
* FipsSHA256SignatureDescription.cs | |
* | |
* Copyright (c) 2013-2018, Sustainsys and contributors. All rights reserved. | |
* | |
* This library is free software; you can redistribute it and/or | |
* modify it under the terms of the GNU Lesser General Public | |
* License as published by the Free Software Foundation; either | |
* version 2.1 of the License, or (at your option) any later version. | |
* |
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
package com.gchakhidze.textsharpidea; | |
import com.intellij.injected.editor.DocumentWindow; | |
import com.intellij.openapi.editor.event.EditorFactoryEvent; | |
import com.intellij.util.ui.GraphicsUtil; | |
import org.jetbrains.annotations.NotNull; | |
import java.awt.Graphics; | |
import java.awt.Graphics2D; | |
import java.awt.RenderingHints; |
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
# This internal function will download latest NetSqlAzMan.dll from NuGet (if necessary) and import it into runspace: | |
function _DownloadAndImportLatestNetSqlAzManDll | |
{ | |
$DownloadUrl = 'https://api.nuget.org/packages/netsqlazman-x64.3.6.0.15.nupkg' | |
$LocalDir = Join-Path $env:TEMP 'NetSqlAzMan' | |
$LocalNupkg = Join-Path $LocalDir 'netsqlazman-x64.3.6.0.15.nupkg' | |
$DllPath = Join-Path $LocalDir 'lib\net40\NetSqlAzMan.dll' | |
if (-not (Test-Path $LocalDir)) { |