Skip to content

Instantly share code, notes, and snippets.

Anton Kuryan akuryan

Block or report user

Report or block akuryan

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@akuryan
akuryan / transform.ps1
Last active Oct 20, 2019
Gets files in folder to be used as transformation files
View transform.ps1
param(
[string]$folderWithTransforms,
[string]$webRoot,
[string]$roleName,
[string]$transformationAssemblyPath
)
Write-Output "Starting collecting files for transformations"
if ([string]::IsNullOrWhiteSpace($folderWithTransforms)) {
View z.CDProd.ScalabilitySettings.config
<?xml version="1.0"?>
<configuration xmlns:patch="http://www.sitecore.net/xmlconfig/">
<sitecore>
<settings>
<!-- INSTANCE NAME
Unique name for Sitecore instance.
Default value: (machine name and IIS site name)
-->
<setting name="InstanceName">
<patch:attribute name="value"></patch:attribute>
@akuryan
akuryan / example.cspoj.addition
Last active Jan 11, 2016
Modify .csproj to include file content in delivery only once
View example.cspoj.addition
<PropertyGroup>
<OnBeforePackageUsingManifest>
$(OnBeforePackageUsingManifest);
AddSpecificSkipRule;
</OnBeforePackageUsingManifest>
<AfterAddIisSettingAndFileContentsToSourceManifest>
$(AfterAddIisSettingAndFileContentsToSourceManifest);
AddSpecificSkipRule;
</AfterAddIisSettingAndFileContentsToSourceManifest>
<!-- Due to known error (http://stackoverflow.com/questions/12576662/msdeploy-skip-rules-when-using-msbuild-publishprofile-with-visual-studio-2012)
View gist:855d819530bf42074e07
#Switches slots on azure web app (expects that there is only one deployment slot present)
#Example usage: .\SwitchAzureWebsite.ps1 username password "some subscription name" "some-webappname"
#where
#username - user with co-administrator rights on subscription
#password - password for this user
#some sbuscription name - name of subscrtion
#"some-webappname" - webapp to switch slot for
param(
View GetAzureSubscription.psm1
function GetAzureSubscription([string]$userName, [string]$password, [string]$subscriptionName)
{
$secpasswd = ConvertTo-SecureString $password -AsPlainText -Force
$cred = New-Object System.Management.Automation.PSCredential ($userName, $secpasswd)
Add-AzureAccount -Credential $cred
Select-AzureSubscription -SubscriptionName $subscriptionName -Current
}
@akuryan
akuryan / gist:aa458edd325ff840eb97
Created Jul 14, 2014
Small script to start weinre remote debugging server
View gist:aa458edd325ff840eb97
#!/bin/sh
#
# chkconfig: 35 99 99
# description: Node.js /home/nodejs/sample/app.js
#
. /etc/rc.d/init.d/functions
USER="weinre"
You can’t perform that action at this time.