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
rsync -avzh --progress root@192.168.21.20:/backup/site1 /data/site1/ |
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
#Get the DAC assemly Location | |
$DacFxLocation = "C:\Program Files (x86)\Microsoft SQL Server\140\DAC\bin" | |
#Get the Dac File Location | |
$DacFileLocation = "C:\Sitecore9.3\DBs" | |
#Get SQL Server Name | |
$sqlserver = Read-Host 'What is the SQL servername?' #'nlgsusnpscmi1' | |
#Get SQL Server Username |
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
function UpdateSitecorePackagesForAllProjects([string] $OldVersion = "9.3.0", [string] $NewVersion = "10.1.0", [string] $Source = "https://sitecore.myget.org/F/sc-packages/api/v3/index.json") { | |
Write-Host "Old Sitecore Package Version - $OldVersion" -BackgroundColor Magenta | |
Write-Host "New Sitecore Package Version - $NewVersion" -BackgroundColor Magenta | |
$projectsList = Get-Package Sitecore. | Select ProjectName -Unique | |
foreach($projNameObject in $projectsList) { | |
$projName = $projNameObject.ProjectName | |
Write-Host "Start inpsecting project - $projName" -BackgroundColor Green | |
$pkgs = Get-Package Sitecore. -ProjectName $projName |
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
# Reference: https://doc.sitecorepowershell.com/appendix/packaging/new-securitysource | |
$package = New-Package "Sitecore-UsersAndRoles"; | |
#Set package metadata | |
$package.Sources.Clear(); | |
$package.Metadata.Author = "Nehemiah"; | |
$package.Metadata.Publisher = "Company"; | |
$package.Metadata.Version = "1.0"; | |
$package.Metadata.Readme = 'This package has all the users and roles of the Sitecore Instance' |
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
# This script updates .NET Target Framework version in both SDK and Legacy Project format types. | |
using namespace System.Collections.Generic | |
# Provide the src folder where the csproj files are located. | |
# This script can check the child folders as well. | |
$dir = "C:\Helix\src" | |
# Provide the target framework version | |
$legacyTargetFrameworkVersion = "v4.7.2"; |
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
<# | |
.SYNOPSIS | |
Lists all referenced items by lookup items. | |
.NOTES | |
NEHEMIAH JEYAKUMAR | |
#> | |
# | |
# INPUT / CONFIGURATION | |
# |
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
[System.Web.Security.Membership]::GetAllUsers() | | |
Select-Object -Property @{Name = 'FullName'; Expression = {(Get-User -Identity $_.UserName).Profile.FullName}}, | |
@{Name="User Name"; Expression={ $_.UserName} }, | |
@{Name="Email"; Expression={ $_.Email} }, | |
@{Name="Is Admin"; Expression={ (Get-User -Identity $_.UserName).IsAdministrator} }, | |
@{Name="Is Online"; Expression={ $_.IsOnline} }, | |
@{Name="Is Enabled"; Expression={ $_.IsApproved} }, | |
@{Name="Is Locked"; Expression={ $_.IsLockedOut } }, | |
@{Name="Domain"; Expression={ $_.ProviderName} }, | |
@{Name="Created Date"; Expression={ $_.CreationDate} }, |
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
<%@ Page Language="C#" AutoEventWireup="false" Debug="true" %> <%@ Import Namespace="Sitecore.Sites" %> <%@ Import Namespace="Sitecore.Text" %> <%@ Import Namespace="System.Linq" %> | |
<script runat="server" language="c#"> | |
public SiteCollection siteCollection; | |
public Site selectedSiteObj; | |
/// <summary> | |
/// Page Load event handler. | |
/// </summary> | |
protected override void OnLoad(EventArgs e) |
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
<%@ Page Language="C#" AutoEventWireup="true" Debug="true" %> | |
<html> | |
<head> | |
<title> CMS Context Information</title> | |
</head> | |
<body> | |
<h1 style="text-align: center"> | |
CMS Context Information</h1> | |
<div> |
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
// ==UserScript== | |
// @name New Userscript | |
// @namespace http://tampermonkey.net/ | |
// @version 0.1 | |
// @description try to take over the world! | |
// @author You | |
// @match https://www.tampermonkey.net/index.php?version=4.14&ext=dhdg&updated=true | |
// @icon https://www.google.com/s2/favicons?sz=64&domain=tampermonkey.net | |
// @grant none | |
// @include https://doc.sitecore.com/* |
OlderNewer