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-LocalPowerBIPorts { | |
$obj=@() | |
Foreach($p In (Get-Process -Name "PBIDesktop" -ErrorAction Ignore | ` | |
select Id, ProcessName, mainWindowTitle)) { | |
$properties = @{ 'PID'=$p.Id; | |
'ProcessName'=$p.ProcessName | |
'Title'=$p.mainWindowTitle | |
'Port'=( get-nettcpconnection -OwningProcess ([int]$p.Id) | Where-Object { ($_.State -eq "Established") -and ($_.RemotePort -ne "443") } | Select-Object remoteport -Unique ).remoteport | |
} |
[geometric shapes](http://www.unicode.org/charts/PDF/U25A0.pdf) | ▲ △ ▼ ▽ ▶ ▷ ◀ ◁ ● ◐ ◑ ◒ ◓ ◔ ◕ |
---|
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
/** | |
* Lightweight script to detect whether the browser is running in Private mode. | |
* @returns {Promise<boolean>} | |
* | |
* Live demo: | |
* @see https://output.jsbin.com/tazuwif | |
* | |
* This snippet uses Promises. If you want to run it in old browsers, polyfill it: | |
* @see https://cdn.jsdelivr.net/npm/es6-promise@4/dist/es6-promise.auto.min.js | |
* |
A minimal sample app using ADAL.JS and plain old vanilla JavaScript to obtain an access token from Azure Active Directory and use that access token to make an API request. In this case, the API we're requesting a token for is the Microsoft Graph API, which is used to retrieve the signed-in user's basic profile.
You can see (and test) this live at: https://bl.ocks.org/psignoret/raw/50e88652ae5cb6cc157c09857e3ba87f/
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
<# | |
.SYNOPSIS | |
Lists delegated permissions (OAuth2PermissionGrants) and application permissions (AppRoleAssignments). | |
.PARAMETER DelegatedPermissions | |
If set, will return delegated permissions. If neither this switch nor the ApplicationPermissions switch is set, | |
both application and delegated permissions will be returned. | |
.PARAMETER ApplicationPermissions | |
If set, will return application permissions. If neither this switch nor the DelegatedPermissions switch is set, |
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
<style id="jsbin-css"> | |
.demo-wrapper { | |
top: 0px; | |
position: fixed; | |
min-height: 50px; | |
width: 100%; | |
} | |
.slider { |
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
SELECT CONVERT(DATE, CAST(201909 as VARCHAR(6)) + '01') |
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
var CPF = | |
FORMAT ( | |
SELECTEDVALUE ( DM_MGR_CLIENTE[NUM_CPF] ); | |
"000\.##0\.##0\-#0" | |
) |
NewerOlder