This file contains hidden or 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
| <# | |
| .Synopsis | |
| Determines the AssemblyVersion, AssemblyFileVersion and AssemblyInformationalVersion using build, revision and NuGet publish history. | |
| .Parameter baseDir | |
| The root directory from which to recursively search for AssemblyInfo files | |
| When called from TeamCity, use: "%teamcity.build.checkoutDir%" or omit. | |
| Defaults to the parent directory of the script. | |
| .Parameter nugetExe | |
| The full path to NuGet.exe | |
| When called from TeamCity, use: "%teamcity.tool.NuGet.CommandLine.DEFAULT.nupkg%\tools\NuGet.exe" |
This file contains hidden or 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
| taskkill /F /FI "SERVICES eq DevOps.Dashboard.Bot" |
This file contains hidden or 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
| New-EventLog -LogName DevOps.Dashboard -Source DevOps.Dashboard.Bot | |
| Write-EventLog -LogName DevOps.Dashboard -Source DevOps.Dashboard.Bot -EntryType Information -Message "Bot starting..." -EventId 1 | |
| Write-EventLog -LogName DevOps.Dashboard -Source DevOps.Dashboard.Bot -EntryType Error -Message "DummyException: Something strange occurred somewhere, sometime." -EventId 2 |
This file contains hidden or 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
| netsh advfirewall firewall set rule group="File and Printer Sharing" new enable=Yes |
This file contains hidden or 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
| <# | |
| .Synopsis | |
| - Create an AD group to manage adding and removing computers to or from a domain under a specific AD scope. | |
| - Add user accounts to the new group. | |
| .Link | |
| http://serverfault.com/a/146436/9144 | |
| .Link | |
| http://technet.microsoft.com/en-us/library/ee617210.aspx | |
| .Link | |
| http://damianflynn.com/2011/08/23/ad-delegating-control-in-powershell/ |
This file contains hidden or 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
| using System.Collections.Generic; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Net; | |
| using Newtonsoft.Json; | |
| namespace metmon | |
| { | |
| class Program | |
| { |
This file contains hidden or 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
| tf workspaces /owner:%USERDOMAIN%\%USERNAME% | |
| tf workspace /delete <workspace_name>;%USERDOMAIN%\%USERNAME% | |
| tf workspaces /owner:%USERDOMAIN%\%USERNAME% |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| git config --global url."[email protected]:".insteadOf git://github.com/ |