Skip to content

Instantly share code, notes, and snippets.

@model EditUserModel
@using (Html.BeginForm())
{
<div>
@Html.HiddenFor(m => m.Id)
@Html.TextBoxFor(m => m.FirstName)
@Html.TextBoxFor(m => m.LastName)
@Html.DropDownListFor(m => m.CountryId, Model.Countries)
@PaulStovell
PaulStovell / DeployToAzure.ps1
Created March 25, 2013 00:49
This is the bundled version of the Windows Azure deployment process used by Octopus.
## Octopus Azure deployment script, version 1.0
## --------------------------------------------------------------------------------------
##
## This script is used to control how we deploy packages to Windows Azure.
##
## When the script is run, the correct Azure subscription will ALREADY be selected,
## and we'll have loaded the neccessary management certificates. The Azure PowerShell module
## will also be loaded.
##
## If you want to customize the Azure deployment process, simply copy this script into
@johnkors
johnkors / PreDeploy.ps1
Created February 6, 2014 16:29
Octopus Deploy - PreDeploy.ps1 for Windows Azure when wanting to modify Cloud Service instance count and/or certificate thumbprint values.
<#
.SYNOPSIS
Modifies some Azure cscfg entries that Octopus Deploy 2.0 is not able to as of today.
.DESCRIPTION
Sets the thumbprint of the first certificate value. Sets the instance count for each role. Octopus-variables must match either of the two forms:
Azure.Role[rolename].Instances
Azure.Role[rolename].Certificate
where rolename is the roleName as defined in the ServiceConfiguration.Cloud.csfcg.
The config file must be named ServiceConfiguration.Cloud.cscfg.
#>
@plillevold
plillevold / DeployToAzure.ps1
Last active August 29, 2015 13:56 — forked from PaulStovell/DeployToAzure.ps1
Modified version of the bundled Windows Azure deployment process used by Octopus 2.0. This version will do a deploy to Staging, VIP swap to Production and then delete the Staging slot
## --------------------------------------------------------------------------------------
##
## This script is used to control how we deploy packages to Windows Azure.
## Orignial script (https://gist.github.com/PaulStovell/5234255) customized for
## Staging-To-Production with VIP swap deployment.
##
## NOTE: the script will only do Staging+VIP swap if $OctopusAzureSlot == "Staging".
## If $OctopusAzureSlot == anything else, the script will deploy directly to that slot
## without any further swapping.
##
@bjartwolf
bjartwolf / reading_list.md
Last active November 22, 2021 19:45
THE COMMANDANT'S PROFESSIONAL READING LIST

This is my recommended reading list. My recommendations are just that, I am not a commandant. It is only based on books I have read, so obviously biased and quite limited. I have named it based on one of the books in my reading list. Parts are .NET centered because that is mostly what I know. A lot is focused on the web. This is not a generic reading list for any software developer, I am mostly focused on web and API focused work stuff in .NET and so is this list. It leans towards the software developer wanting to be a tech-lead, architect or CTO.

A lot of links goes to Amazon, because I have those books in kindle for the most part and it is easy for me, but get them from anywhere.

THE COMMANDANT'S PROFESSIONAL READING LIST

If USMC Grunts can read five books a year, then so can software developers. https://www.marines.mil/News/Marines-TV/videoid/747008/