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
#Requires -Version 3.0 | |
param($websiteNames, $jobname, $jobtype, $packOutput, $slotName = "") | |
$VerbosePreference = "continue" | |
$ErrorActionPreference = "continue" | |
# Helper Functions (based on or from https://github.com/aspnet/vsweb-publish/blob/master/publish-module.psm1) | |
function Get-MSDeploy{ | |
[cmdletbinding()] |
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
# First configure the user you want to run this under - this will generally be pi, unless you've created your own users | |
export USER='pi' | |
eval cd ~$USER | |
# Check the state of the command - this'll either be start or stop | |
case "$1" in | |
start) | |
# if it's start, then start vncserver using the details below | |
su $USER -c '/usr/bin/vncserver :1 -geometry 1280x800 -depth 16 -pixelformat rgb565' |
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
[A-z0-9!#$%&'*+/=?^_`{|}~-]+[A-z0-9!#$%&'*+/=?.^_`{|}~-]*(?:-/.[A-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[A-z0-9](?:[A-z0-9-]*[A-z0-9])?\.)+[A-z0-9](?:[A-z0-9-]*[A-z0-9])? |
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
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using StructureMap; | |
using StructureMap.Configuration.DSL; | |
namespace StructureMapExample | |
{ | |
/// <summary> | |
/// A registry; I configure these one per "area" of my application. If it's a |
NewerOlder