~
~
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
#As described here: http://boxstarter.org/Learn/WebLauncher | |
#The command to run, built from the raw link of this gist | |
#START http://boxstarter.org/package/nr/url?https://gist.github.com/automatonic/7771dfd7015a72453091/raw/4cbbf4811d11929ebe0f98c51f04e7476179c13f/example.boxstarter | |
#Special windowsy stuff. see http://boxstarter.org/WinConfig | |
Set-WindowsExplorerOptions -EnableShowHiddenFilesFoldersDrives -EnableShowProtectedOSFiles -EnableShowFileExtensions | |
Enable-RemoteDesktop | |
Install-WindowsUpdate | |
Disable-InternetExplorerESC |
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
Verifying that +woolnough is my blockchain ID. https://onename.com/woolnough |
title | event | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Sunday Training |
|
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 | |
( | |
[parameter(mandatory = $true)] $email | |
,[parameter(mandatory = $true)] $account | |
,[parameter(mandatory = $false)] $DemoIndex | |
) | |
[System.Diagnostics.Debug]::Write("Starting PowerShell WF") | |
$domainAndAccount = "FIMDEV\" + $account | |
if(@(Get-PSsnapin | where-object {$_.Name -eq "FIMAutomation"} ).count -eq 0) {add-pssnapin FIMAutomation} | |
$template = Get-AuthenticationWorkflowRegistrationTemplate -AuthenticationWorkflowName "Password Reset AuthN Workflow" |
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
# Username of the user to add | |
$username = "svc_fim_service" | |
# Domain of the user to add | |
$domain = "FIMDev" | |
# Display name to set in the portal | |
$displayName = "FIM Service Service Account" | |
Import-Module LithnetRMA | |
Set-ResourceManagementClient -BaseAddress localhost # -Credentials (Get-Credential) |
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
Function Set-SpnPermission { | |
param( | |
[String]$obj, | |
[switch]$Write, | |
[switch]$Read | |
) | |
### Set-SpnPermission -obj "DOMAIN\svc_SQL" -write -read | |
Import-Module ActiveDirectory | |
$Identity = [security.principal.ntaccount]$obj |
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
*nix b64 encode binary file | |
base64 -i ~/Downloads/site.lic | |
Windows 64 encode binary file | |
$FileName = "C:\site.lic" | |
$base64string = [Convert]::ToBase64String([IO.File]::ReadAllBytes($FileName)) | |
$base64string | Out-File "c:\lic.b64.txt" | |
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
#!/bin/sh | |
DOMAIN=<domain> | |
KEYSTOREPW=<changeme> | |
GFDOMAIN=/opt/keycloak-3.1.0.Final/standalone/configuration/ | |
LIVE=/etc/letsencrypt/live/$DOMAIN | |
sudo openssl pkcs12 -export -in $LIVE/cert.pem -inkey $LIVE/privkey.pem -out cert_and_key.p12 -name myalias -CAfile $LIVE/chain.pem -caname root -password pass:$KEYSTOREPW | |
sudo keytool -importkeystore -destkeystore keystore.jks -srckeystore cert_and_key.p12 -srcstoretype PKCS12 -alias myalias -srcstorepass $KEYSTOREPW -deststorepass $KEYSTOREPW -destkeypass $KEYSTOREPW |
OlderNewer