<system.web>
<deployment retail="true"/>
</system.web>
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
| # Idempotent way to build a /etc/hosts file with Ansible using your Ansible hosts inventory for a source. | |
| # Will include all hosts the playbook is run on. | |
| # Inspired from http://xmeblog.blogspot.com/2013/06/ansible-dynamicaly-update-etchosts.html | |
| - name: "Build hosts file" | |
| lineinfile: dest=/etc/hosts regexp='.*{{ item }}$' line="{{ hostvars[item].ansible_default_ipv4.address }} {{item}}" state=present | |
| when: hostvars[item].ansible_default_ipv4.address is defined | |
| with_items: groups['all'] |
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
| # Usage: .\DisableNuGetPackageRestore.ps1 C:\Path\To\Solution.sln | |
| # Get the path that the user specified when calling the script | |
| $solution = $args[0] | |
| $solutionPath = Split-Path $solution -Parent | |
| $solutionName = Split-Path $solution -Leaf | |
| # Delete the .nuget directory and all contents | |
| Remove-Item (Join-Path $solutionPath ".nuget") -Force -Recurse -ErrorAction 0 |
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
| function Get-ScriptPath { | |
| $scritDir = Get-Variable PSScriptRoot -ErrorAction SilentlyContinue | ForEach-Object { $_.Value } | |
| if (!$scriptDir) { | |
| if ($MyInvocation.MyCommand.Path) { | |
| $scriptDir = Split-Path $MyInvocation.MyCommand.Path -Parent | |
| } | |
| } | |
| if (!$scriptDir) { | |
| if ($ExecutionContext.SessionState.Module.Path) { | |
| $scriptDir = Split-Path (Split-Path $ExecutionContext.SessionState.Module.Path) |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Test"> | |
| <Target Name="Test"> | |
| <PropertyGroup> | |
| <StartTicks>$([System.DateTime]::UtcNow.Ticks)</StartTicks> | |
| </PropertyGroup> | |
| <Message Text="Starting ticks: $(StartTicks)"/> |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
| <!-- | |
| This shows how you can calculate the elapsed time in MSBuild | |
| --> | |
| <Target Name="BeforeBuild"> | |
| <PropertyGroup> | |
| <startTime>$([System.DateTime]::Now)</startTime> |
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 Sitecore.Mvc.Presentation | |
| @using Sitecore.Mvc | |
| @model RenderingModel | |
| @{ | |
| Layout = null; | |
| Sitecore.Context.Items["twitter:title"] = Model.Item["title"] | |
| Sitecore.Context.Items["twitter:description"] = Model.Item["description"] | |
| } | |
| <h1>@Html.Sitecore().Field("title")</h1> | |
| @Html.Sitecore().Field("text") |
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
| Package UrlRewrite | |
| { | |
| #Install URL Rewrite module for IIS | |
| DependsOn = "[WindowsFeaturesWebServer]windowsFeatures" | |
| Ensure = "Present" | |
| Name = "IIS URL Rewrite Module 2" | |
| Path = "http://download.microsoft.com/download/6/7/D/67D80164-7DD0-48AF-86E3-DE7A182D6815/rewrite_2.0_rtw_x64.msi" | |
| Arguments = "/quiet" |
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
| nexus: | |
| build: ./nexus | |
| ports: | |
| - "18081:8081" | |
| jenkins: | |
| build: ./jenkins | |
| ports: | |
| - "18080:8080" | |
| links: |
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
| <# | |
| Author(s): Bruce Lee, Grant Killian, Kelly Rusk, Jimmy Rudley | |
| Created Date: August 4, 2016 | |
| Modified Date: May 3, 2017 | |
| This is the Rackspace Managed Services for Sitecore (https://www.rackspace.com/digital/sitecore) script for security hardening a Sitecore environment | |
| If the Execution Policy does not allow execution, you may need to run the following interactively to allow a scoped session bypass. | |
| This is secure as it requires interaction on server and cannot be executed from a script: |