I hereby claim:
- I am hoetz on github.
- I am hoetz (https://keybase.io/hoetz) on keybase.
- I have a public key whose fingerprint is 9554 A373 578A D037 C65A 6C76 904E 4E33 D948 ABD7
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
2018-12-06 11:44:32.283 [NORMAL] tid:13 in 'StartLogging' C:\PowerShellEditorServices\src\PowerShellEditorServices.Host\EditorServicesHost.cs: line 181 | |
PowerShell Editor Services Host v1.10.0.0 starting (PID 10624 | |
Host application details: | |
Name: Visual Studio Code Host | |
Version: 1.10.0 | |
ProfileId: Microsoft.VSCode | |
Arch: X64 |
module AzureAdAuth | |
open System | |
open Microsoft.Extensions.DependencyInjection | |
open Microsoft.Extensions.Options | |
open Microsoft.AspNetCore.Authentication.JwtBearer | |
open Microsoft.IdentityModel.Tokens | |
open System.Text | |
open System.Threading.Tasks |
#Find users from foreign domains in a Active Directory group and output them to CSV | |
$group=get-adgroup "mygroup" -Properties member | |
$domainController="mydc.company.loc" | |
$fsps = $group.member | where {$_ -like "*foreign*"} | |
$outputUsers = @() | |
foreach ($fsp in $fsps) { | |
$found = $fsp -match 'S-\d-\d-\d+-\d+-\d+-\d+-\w+' | |
if ($found) { | |
$usr = get-aduser $matches[0] -server $domainController -Properties displayname, useraccountcontrol, description, mail | select -Property samaccountname, displayname, useraccountcontrol, description, mail | |
$outputUsers += $usr |
function PipeableFunction { | |
[cmdletbinding()] | |
Param ( | |
[parameter(ValueFromPipeline)] | |
[string]$upn | |
) |
//based on https://github.com/AzureAD/microsoft-authentication-library-for-dotnet/blob/90dca9e8a28102d7eb0d96d70e93350f5a0e095a/samples/desktop/SampleApp/CachePersistence.cs | |
module MicrosoftIdentityUtil | |
open Microsoft.Identity.Client | |
open System.IO | |
type CachePersistence() = | |
static let fileLock = new obj() | |
static let usertokenCache = new TokenCache() | |
static let cacheFilePath = |
#include <QCoreApplication> | |
#include <QString> | |
#include <Poco/Foundation.h> | |
#include <Poco/Crypto/Cipher.h> | |
#include <Poco/Crypto/CipherKey.h> | |
#include <Poco/Crypto/CipherFactory.h> | |
#include <openssl/crypto.h> | |
#include <QDebug> | |
I hereby claim:
To claim this, I am signing this object: