I hereby claim:
- I am nordineb on github.
- I am nordineb (https://keybase.io/nordineb) on keybase.
- I have a public key whose fingerprint is D8A3 E77F 6D7C 29F9 C577 07BC 0045 F242 17B5 7521
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
cls | |
$search = New-Object DirectoryServices.DirectorySearcher([ADSI]"") | |
$search.filter = "(servicePrincipalName=*)" | |
## You can use this to filter for OU's: | |
## $results = $search.Findall() | ?{ $_.path -like '*OU=whatever,DC=whatever,DC=whatever*' } | |
$results = $search.Findall() | |
foreach( $result in $results ) { | |
$userEntry = $result.GetDirectoryEntry() |
<key name="Colors" modified="2015-12-10 22:46:43" build="151210"> | |
<value name="Count" type="dword" data="00000001"/> | |
<key name="Palette1" modified="2015-12-10 22:46:43" build="151210"> | |
<value name="Name" type="string" data="Material Theme"/> | |
<value name="ColorTable00" type="dword" data="004d4335"/> | |
<value name="ColorTable01" type="dword" data="006b60eb"/> | |
<value name="ColorTable02" type="dword" data="008de8c3"/> | |
<value name="ColorTable03" type="dword" data="0095ebf7"/> | |
<value name="ColorTable04" type="dword" data="00c4cb80"/> | |
<value name="ColorTable05" type="dword" data="009024ff"/> |
function IsLoggedIn | |
{ | |
$content = Get-AzureRmContext -ErrorAction SilentlyContinue | |
if ($content) | |
{ | |
return !([string]::IsNullOrEmpty($content.Account)) | |
} | |
return $false | |
} |
Login-AzureRmAccount
$resourceGroupName = "MYRESOURCEGROUP"
$resourceName = "MYAPPSERVICE"
$webapp = Get-AzureRmResource `
-ResourceGroupName $resourceGroupName `
-ResourceType Microsoft.Web/sites/config `
-ResourceName "$resourceName/web" `
Use powershell og bash
#!/bin/bash
# Delete all containers
docker rm $(docker ps -a -q)
# Delete all images
docker rmi $(docker images -q)
diginc/pi-hole latest bb640716ae33 2 months ago 363MB
azuresdk/azure-cli-python latest 7424f32d32f1 3 months ago 368MB
#Requires -Version 4
#Requires -RunAsAdministrator
$Protocols = @('PCT 1.0','SSL 2.0','SSL 3.0','TLS 1.0') # Leaving 'TLS 1.1' and 'TLS 1.2'
$Hashes = @('MD5','SHA') # SHA1 that is, leaving 'SHA 256', 'SHA 384', and 'SHA 512'
$Ciphers = @(
'DES 56/56'