I hereby claim:
- I am scruffydan on github.
- I am scruffydan (https://keybase.io/scruffydan) on keybase.
- I have a public key ASB-VZfiKVizwBQ7MUxgsVJL3_ZfOhnkgVBIC01Ev_7fSAo
To claim this, I am signing this object:
| #!/usr/bin/env bash | |
| #============================================================================== | |
| # A script to add lines of text to a file if they do not already exist. | |
| # It creates a timestamped backup of the original file before making changes. | |
| # | |
| # Exits with status 1 if the target file does not exist, is not writable, | |
| # or if an error occurs during writing. | |
| # Exits with status 0 on successful completion (lines added or already exist). | |
| #============================================================================== |
| Net user loginname /DOMAIN /active:YES |
| # Steps: | |
| # Run command in PowerShell on the DirSync server. ($adConnector and $aadConnector are found in Connectors tab in Synchronization Service Manager) | |
| # Perform Full Sync command in PowerShell. | |
| # Azure AD Password toggle: | |
| $adConnector = "<CASE SENSITIVE AD CONNECTOR NAME>" | |
| $aadConnector = "<CASE SENSITIVE AAD CONNECTOR NAME>" | |
| Import-Module adsync | |
| $c = Get-ADSyncConnector -Name $adConnector | |
| $p = New-Object Microsoft.IdentityManagement.PowerShell.ObjectModel.ConfigurationParameter “Microsoft.Synchronize.ForceFullPasswordSync”, String, ConnectorGlobal, $null, $null, $null |
| A small collection of useful robocopy scripts |
I hereby claim:
To claim this, I am signing this object:
| /** | |
| * Utility function to check if a gravatar exists for a given email or id | |
| * @param int|string|object $id_or_email A user ID, email address, or comment object | |
| * @return bool if the gravatar exists or not | |
| */ | |
| function validate_gravatar($id_or_email) { | |
| //id or email code borrowed from wp-includes/pluggable.php | |
| $email = ''; |
| #!/bin/sh | |
| TTL="300" | |
| ZONE="example.com" | |
| HOSTS="@ subdomain0 subdomain1" #subdomains seperated by spaces | |
| LASTIP_CHECK="example.com" #domain to check to se if current IP matches public DNS records | |
| # Use -f to force ip change | |
| if echo "$1" | grep -q "\-f" ; then | |
| FORCE=true |