An Ansible summary
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
Configuration file
First one found from of
Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)
First one found from of
sudo defaults write /Library/Preferences/ManagedInstalls SoftwareRepoURL "http://10.10.2.199/munki_repo" |
git branch -m old_branch new_branch # Rename branch locally | |
git push origin :old_branch # Delete the old branch | |
git push --set-upstream origin new_branch # Push the new branch, set local branch to track the new remote |
# Usage: powershell ExportSchema.ps1 "SERVERNAME" "DATABASE" "C:\<YourOutputPath>" | |
# Start Script | |
Set-ExecutionPolicy RemoteSigned | |
# Set-ExecutionPolicy -ExecutionPolicy:Unrestricted -Scope:LocalMachine | |
function GenerateDBScript([string]$serverName, [string]$dbname, [string]$scriptpath){ | |
[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.SqlServer.SMO") | Out-Null | |
[System.Reflection.Assembly]::LoadWithPartialName("System.Data") | Out-Null |