git format-patch -1 <sha>
OR
git format-patch -1 HEAD
git apply --stat file.patch
# show stats.
git apply --check file.patch
# check for error before applying
# Set variables | |
echo UMBRACO 9 DEMO INSTALL | |
demoNameDefault='umbracov9-demo-'$RANDOM | |
# Get the demo name from the user | |
echo | |
echo Demo name should be only contain alphanumerics and hyphens. It Can''t start or end with hyphen. It should be less than 15 characters in length and globally unique. This will be the name of your web app. | |
read -p "Enter demo name [$demoNameDefault]: " input | |
demoName="${input:-$demoNameDefault}" | |
echo Demo Name: $demoName |
<Project Sdk="Microsoft.NET.Sdk.Web"> | |
<PropertyGroup> | |
<TargetFramework>netcoreapp2.0</TargetFramework> | |
<UserSecretsId>DancingGoatGcp</UserSecretsId> | |
</PropertyGroup> | |
<ItemGroup> | |
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.3" /> | |
<PackageReference Include="KenticoCloud.Delivery" Version="4.12.0" /> |
@model EmmTi.KenticoCloudConsumer.EnhancedDeliver.Sample.Models.SampleViewModel | |
<div class="article-tile article-tile-large"> | |
<div class="col-md-12 col-lg-6"> | |
<a href="@Url.Action("Show", "Articles", new { id = Model.System.Codename })"> | |
<img src="@Model.TeaserImage.Url" class="article-tile-image" alt="@Model.System.Name" /> | |
</a> | |
</div> | |
<div class="col-md-12 col-lg-6"> | |
<div class="article-tile-date"> |
using System; | |
using System.Collections.Generic; | |
using System.Configuration; | |
using System.Linq; | |
using System.Runtime.Caching; | |
using System.Web; | |
using SuzieT.Kentico.WebApp.Interfaces; | |
namespace SuzieT.Kentico.WebApp.Helpers | |
{ |
<!-- Google Tag Manager --> | |
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-XXXXXX" | |
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> | |
<script>dataLayer = [{'trackThisPage': 'false'}]; | |
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | |
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | |
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= | |
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); | |
})(window,document,'script','dataLayer','GTM-XXXXXX');</script> | |
<!-- End Google Tag Manager --> |
<!-- Google Tag Manager --> | |
<noscript><iframe src="//www.googletagmanager.com/ns.html?id=GTM-XXXXXX" | |
height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript> | |
<script>dataLayer = [{'trackThisPage': 'true'}]; | |
(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': | |
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], | |
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= | |
'//www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); | |
})(window,document,'script','dataLayer','GTM-XXXXXX');</script> | |
<!-- End Google Tag Manager --> |
@{ | |
Response.Cookies["ignorePageViews"].Value = "true"; | |
Response.Cookies["ignorePageViews"].Expires = DateTime.Now.AddYears(10); | |
<i>Cookie set to ignore page views.</i> | |
} |