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
using System; | |
using System.Web; | |
using NHibernate.Event; | |
using NHibernate.Persister.Entity; | |
namespace MyProject.Infrastructure.NHibernate.Listeners | |
{ | |
public class ModifiedTimeStampListener : IPreUpdateEventListener, IPreInsertEventListener | |
{ | |
public bool OnPreUpdate(PreUpdateEvent @event) |
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 simulatedClick(target, options) { | |
var event = target.ownerDocument.createEvent('MouseEvents'), | |
options = options || {}; | |
//Set your default options to the right of || | |
var opts = { | |
type: options.type || 'click', | |
canBubble:options.canBubble || true, | |
cancelable:options.cancelable || true, |
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
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions | |
Enable-RemoteDesktop | |
cinst fiddler4 | |
cinst git-credential-winstore | |
cinst console-devel | |
cinst sublimetext2 | |
cinst poshgit | |
cinst dotpeek |
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
<?xml version="1.0" encoding="utf-8"?> | |
<ServiceConfiguration serviceName="MyApp.CloudService" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration" osFamily="3" osVersion="*" schemaVersion="2012-10.1.8"> | |
<Role name="MyApp.Web"> | |
<Instances count="2" /> | |
<ConfigurationSettings> | |
<Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" value="DefaultEndpointsProtocol=https;AccountName=test;AccountKey=<KEY INFO>" /> | |
<Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.Enabled" value="true" /> | |
<Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountUsername" value="<REMOTE DESKTOP USERNAME>" /> | |
<Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountEncryptedPassword" value="<ENCRYPTED PASSWORD>" /> | |
<Setting name="Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountExpiration" value="<EXPIRE DATE>" /> |
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
<?xml version="1.0" encoding="utf-8"?> | |
<ServiceDefinition name="MyApp.Azure" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" schemaVersion="2012-10.1.8"> | |
<WebRole name="MyApp.Web" vmsize="Small"> | |
<Sites> | |
<Site name="Web" physicalDirectory="../../Publish/MyApp.Web/"> | |
<VirtualApplication name="api" physicalDirectory="../../Publish/MyApp.Api/" /> | |
<Bindings> | |
<Binding name="Endpoint1" endpointName="Endpoint1" /> | |
</Bindings> | |
</Site> |
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
Import-Module "C:\Program Files (x86)\Microsoft SDKs\Windows Azure\PowerShell\Azure\Azure.psd1" | |
Get-AzureSubscription |
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
cd c:\temp | |
makecert -sky exchange -r -n "CN=<certname>" -pe -a sha1 -len 2048 -ss MY "<certname>.cer" |
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-AzurePublishSettingsFile | |
Import-AzurePublishSettingsFile <mysettings>.publishsettings |
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
Set-ExecutionPolicy RemoteSigned | |
Import-Module "C:\Program Files (x86)\Microsoft SDKs\Windows Azure\PowerShell\Azure\Azure.psd1" |
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
using System; | |
namespace ExampleTemplateGenerator | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ | |
var entity = new Entity("User", "MyAppAssembly"); | |
var result = entity.TransformText(); |