Skip to content

Instantly share code, notes, and snippets.

View dylanyoung-dev's full-sized avatar
🥑
Focusing

Dylan Young dylanyoung-dev

🥑
Focusing
View GitHub Profile
###### Get Kubernetes running locally
## Install the CLI
az aks install-cli
## Make sure you set your PATH environment variable afterwards
###### General AKS Commands
## Login to azure (Ensure you have Azure CLI installed locally)
az login
## Get the name of your docker registry and determine it's path
az acr show --name <NameOfRegistryWhenYouCreatedIt> --query loginServer --output table
## Login to your ACR Registry
az acr login --name <NameOfRegistryWhenYouCreatedIt>
####### Now before you can push local registry docker images to acr, you must tag them
@dylanyoung-dev
dylanyoung-dev / Sitecore Docker Cheatsheet
Last active April 27, 2021 05:07
Docker Cheatsheet for getting setup with Sitecore Docker folder and then how to manage my docker images locally.
## Sitecore Docker Repository (Clone Locally)
git clone https://github.com/Sitecore/docker-images/
## Change Directory to Root of Cloned Repository
cd docker-images
## Run Build.ps1 (with default tags)
.\Build.ps1
## Set Path for License File
@dylanyoung-dev
dylanyoung-dev / Sitecore XP 9.0.x Uninstallation
Created December 11, 2019 22:35
This script is used to uninstall Sitecore 9.0.x versions of the Experience Platform of Sitecore.
# Ensure you run the XC Uninstallation first, before you uninstall your XP version of Sitecore.
# Define parameters
Param(
[string]$Prefix = "yoursite",
[string]$SitecoreSiteName = "$Prefix.sc",
[string]$SitecoreXConnect = "$Prefix.xconnect",
[string]$InstallDirectory = "C:\inetpub\wwwroot\",
[string]$SolrService = "Solr662",
[string]$PathToSolr = "C:\Solr\solr-6.6.2\",
@dylanyoung-dev
dylanyoung-dev / Sitecore XC 9.0.x Uninstallation
Last active December 11, 2019 22:36
Used for uninstalling a 9.0.x version of Sitecore XC from your local environment.
## Make sure the values below match the settings you used in the XC 9.0.2 Installation
Param(
[string]$EngineSuffix = 'yoursite',
[string]$Prefix = 'yoursite',
[string]$CommerceOpsSiteName = 'CommerceOps_',
[string]$CommerceShopsSiteName = 'CommerceShops_',
[string]$CommerceAuthoringSiteName = 'CommerceAuthoring_',
[string]$CommerceMinionsSiteName = 'CommerceMinions_',
[string]$SitecoreBizFxSiteName = 'SitecoreBizFx',
@dylanyoung-dev
dylanyoung-dev / Sitecore XC 9.0.2 Installation
Created December 11, 2019 22:29
Used to install XC 9.0.2 on your machine.
## You can only have one instance of XC using this install script, at any given time on your local environment.
## You must run XP 9.0.2 before you run this script. Ensure values below match your values supplied from your XP Install
param(
[string]$EngineSuffix = 'yoursite',
[string]$SitePrefix = "yoursite",
[string]$ScInstallDirectory = "c:\inetpub\wwwroot\",
[string]$SiteHostHeaderName = "$SitePrefix.sc",
[string]$SqlServer = ".\SQL2016",
[string]$SqlDbPrefix = "yoursite",
@dylanyoung-dev
dylanyoung-dev / Master_SingleServer.json
Last active May 26, 2019 23:50
Support RootCertFileName Parameter
// ------------------------------------------------------------------------------------------------------ //
// Sitecore Install Framework - Commerce Single Server Configuration //
// //
// Run this configuration to install a single instance of Commerce Engine and Sitecore Storefront Site. //
// //
// //
// NOTE: Only single line comments are accepted in configurations. //
// ------------------------------------------------------------------------------------------------------ //
<?xml version="1.0"?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/" xmlns:role="http://www.sitecore.net/xmlconfig/role/">
<sitecore>
<sc.variable name="sourceFolder" value="[PathToSrcCode]\src" />
</sitecore>
</configuration>
module.exports = function () {
var sitecoreRoot = "[PhysicalSitecoreWebsitePath]";
var config = {
websiteRoot: sitecoreRoot,
sitecoreLibraries: sitecoreRoot + "\\bin",
solutionName: "Hackathon.ThePoutineers",
licensePath: sitecoreRoot + "\\App_Data\\license.xml",
runCleanBuilds: false,
MSBuildToolsVersion: "auto",
buildConfiguration: "Debug",
@dylanyoung-dev
dylanyoung-dev / \publishsettingsdebug.targets
Created March 2, 2019 09:30
SC Hackathon - Social Assistant
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<publishUrl>[PathToYourWebsite]</publishUrl>
<ExcludeFilesFromDeployment>packages.config</ExcludeFilesFromDeployment>
</PropertyGroup>
<Import Project="./publishsettings.targets.user" Condition="exists('./publishsettings.targets.user')" />
</Project>