View cumulusmx.service
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
[Unit] | |
Description=CumulusMX | |
Documentation=https://cumuluswiki.org/a/Main_Page | |
After=network-online.target | |
[Service] | |
User=root | |
Group=root | |
ExecStart=/usr/bin/mono-service -/home/pi/CumulusMX CumulusMX.exe -service | |
Type=forking |
View RedirectToHTTPS.config
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
<rewrite> | |
<rules> | |
<rule name="Redirect to https" enabled="true" patternSyntax="Wildcard" stopProcessing="true"> | |
<match url="*" negate="false" /> | |
<conditions logicalGrouping="MatchAny"> | |
<add input="{HTTPS}" pattern="off" /> | |
</conditions> | |
<action type="Redirect" url="https://{HTTP_HOST}{REQUEST_URI}" redirectType="Found" /> | |
</rule> | |
</rules> |
View CreateMongoDBService.bat
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
--rmdir /s D:\MongoDB\Data | |
mkdir D:\MongoDB\Data\db | |
mkdir D:\MongoDB\Data\log | |
copy mongod.conf "D:\MongoDB\" | |
sc.exe delete MongoDB | |
sc.exe create MongoDB binPath= "\"%PROGRAMFILES%\MongoDB\Server\3.0\bin\mongod.exe\" --service --config=\"D:\MongoDB\mongod.conf\"" DisplayName= "MongoDB" start= "auto" |
View OctopusNotification.html
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
<html><body style="font-family: arial; font-size: 12px;"><h2>Deployment of #{Octopus.Project.Name} #{Octopus.Release.Number} to #{Octopus.Environment.Name}</h2><p> <em>Initiated by #{unless Octopus.Deployment.CreatedBy.DisplayName}#{Octopus.Deployment.CreatedBy.Username}#{/unless} #{if Octopus.Deployment.CreatedBy.DisplayName}#{Octopus.Deployment.CreatedBy.DisplayName}#{/if} #{if Octopus.Deployment.CreatedBy.EmailAddress} (<a href="mailto: #{Octopus.Deployment.CreatedBy.EmailAddress}">#{Octopus.Deployment.CreatedBy.EmailAddress}</a>)#{/if} at #{Octopus.Deployment.Created}</em> <br> <a href="http://[OctoSvrUrl]/app#/projects/#{Octopus.Project.Name}/releases/#{Octopus.Release.Number}">Click here</a> to view the release detail</p>#{if Octopus.Release.Notes}<h3>Release notes</h3><p>#{Octopus.Release.Notes}</p>#{/if}<h3>Deployment process</h3><p>The deployment included the following actions:</p><ul> #{each action in Octopus.Action} <li><strong>#{action.Name}</strong> #{if action.Package.NuGetPacka |
View MsBuild Publish WebApp
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
/t:Package /p:_PackageTempDir="c:/published_files/" /p:Configuration="Release" /p:DeleteExistingFiles="True" |
View EnumList
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
using System; | |
using System.ComponentModel; | |
using Sitecore.Web.UI.HtmlControls; | |
namespace DetangledDigital.Sc.FieldTypes | |
{ | |
/* | |
* | |
* @CGaskell | |
* Custom field type. Renders a dropdown list based on a specified enum. |
View AliasRedirector
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
using System.Web; | |
using Sitecore; | |
using Sitecore.Configuration; | |
using Sitecore.Data.Items; | |
using Sitecore.Diagnostics; | |
using Sitecore.Links; | |
using Sitecore.Pipelines.HttpRequest; | |
using Sitecore.Resources.Media; | |
namespace DetangledDigital.SC.Pipelines |
View gist:8913779
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
namespace DetangledDigital.Services.Helpers | |
{ | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Xml.Linq; | |
// @CGASKELL: Some XElement helpers to assist with safely reading XML | |
public static class XElementHelper | |
{ |