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
| $env:chocolateyUseWindowsCompression='true' ; $env:ChocolateyInstall="$home\choco" ; iwr https://chocolatey.org/install.ps1 -UseBasicParsing | iex ; $env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User") ; choco --version |
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
| postman-collection-transformer convert -i | |
| D:\postman\Sitecore.Commerce.Engine.SDK.2.1.10\postman\Shops\Authentication.postman_collection.json | |
| -o D:\postman\Sitecore.Commerce.Engine.SDK.2.1.10\postman\Shops\New.Authentication.postman_collection.json -j 1.0.0 -p 2.0.0 -P |
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
| https://localhost:8986/solr/sitecore_master_index/update?stream.body=<delete><query>id:ee06293f941b42cdb4d316e2c09d762e</query></delete>&commit=true |
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
| param( | |
| [Parameter()] | |
| [switch]$NoBuild, | |
| [Parameter()] | |
| [switch]$NoSync, | |
| [Parameter()] | |
| [string]$CmHost="https://habitatstarterkit.local", | |
| [Parameter()] | |
| [string]$SolutionName="HabitatStarterKit.sln", | |
| [Parameter()] |
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
| Upload Collection - | |
| zkcli.bat -zkhost <YOUR_ZOOKEEPER_URL>.searchstax.com:2181 -cmd upconfig -confdir ../configsets/customindexname_web_index/conf/ -confname customindex_site_search_configs | |
| CREATE - | |
| curl -u 'Username:Password' 'https://<YOUR_SOLR_SEARCHSTAX_URL>/solr/admin/collections?action=CREATE&name=custom_site_master_index&collection.configName=customindex_site_search_configs&numShards=1&replicationFactor=1' | |
| curl -u 'Username:Password' -k 'https://<YOUR_SOLR_SEARCHSTAX_URL>/solr/admin/collections?action=CREATE&name=custom_site_web_index&collection.configName=customindex_site_search_configs&numShards=1&replicationFactor=1&createNodeSet=http://<YOUR_SOLR_URL>:8983/solr' | |
| DELETE - | |
| curl -u 'Username:Password' -k 'https://<YOUR_SOLR_SEARCHSTAX_URL>/solr/admin/collections?action=DELETE&name=custom_site_web_index&wt=xml' |
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
| $("#myform").bind('ajax:complete', function() { | |
| //Do Something | |
| }); |
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
| # User name from WebDeploy Publish Profile. | |
| $userName = "`$" #Use backtick while assigning variable content | |
| # Password from WebDeploy Publish Profile | |
| $password = "password" | |
| # Encode username and password to base64 string | |
| $base64AuthInfo = [Convert]::ToBase64String([Text.Encoding]::ASCII.GetBytes(("{0}:{1}" -f $userName, $password))) | |
| $envName = "https://.scm.azurewebsites.net" #Replace from publish settings |
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
| public static class ExtensionMethod | |
| { | |
| public static void Rename(this FileInfo fileInfo, string newName) | |
| { | |
| fileInfo.MoveTo(fileInfo.Directory.FullName + "\\" + newName + fileInfo.Extension); | |
| } | |
| } | |
| //Caller | |
| FileInfo file = new FileInfo("Complete_Directory_path_of_file"); | |
| file.Rename(fName.Replace('/', '-')); |