Skip to content

Instantly share code, notes, and snippets.

@robgha01
robgha01 / GistList!.md
Created November 14, 2014 13:54
Try GistList for iOS! http://gistlist.io/

##alt text GistList: TODO for coders alt text

2016-06-21T11:31:15.1296266Z Checking if artifacts directory exists: C:\a\1\a
2016-06-21T11:31:15.1306400Z Creating artifacts directory.
2016-06-21T11:31:15.1316301Z Checking if test results directory exists: C:\a\1\TestResults
2016-06-21T11:31:15.1316301Z Creating test results directory.
2016-06-21T11:31:15.1326293Z Creating binaries directory.
2016-06-21T11:31:15.1766288Z Starting: Get sources
2016-06-21T11:31:15.1866281Z Entering GitSourceProvider.PrepareRepositoryAsync
2016-06-21T11:31:15.1876298Z Repository type=TfsGit
2016-06-21T11:31:15.1876298Z localPath=C:\a\1\s
2016-06-21T11:31:15.1876298Z clean=False
Syncing repository: BlueLeet.Common (Git)
Starting clone
Checking out abba9a39952d2ec736d9cf4ab59d4451d13c279c to C:\a\1\s
Checked out branch refs/heads/master for repository BlueLeet.Common at commit abba9a39952d2ec736d9cf4ab59d4451d13c279c
******************************************************************************
Running tasks
******************************************************************************
******************************************************************************
Starting task: Cake
******************************************************************************
******************************************************************************
Initializing Hosted Agent
******************************************************************************
Requesting an Agent from the Hosted Agent Pool
Hosted Agent successfully assigned.
Configuring connection settings for Hosted Agent
Starting Hosted Agent
******************************************************************************
Starting: Build
******************************************************************************
namespace BlueLeet.Build
{
using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using Cake.Core;
using Cake.Core.Annotations;
using Cake.Core.IO;
Preparing to run build script...
Clearing NuGet HTTP cache: C:\Users\Robert\AppData\Local\NuGet\v3-cache
Clearing NuGet cache: C:\Users\Robert\AppData\Local\NuGet\Cache
Clearing NuGet global packages cache: C:\Users\Robert\.nuget\packages\
Local resources cleared.
Running build script...
Module directory does not exist.
Performing debug...
Attach debugger to process 4064 to continue
Debugger attached
Preparing to run build script...
Clearing NuGet HTTP cache: C:\Users\Robert\AppData\Local\NuGet\v3-cache
Clearing NuGet cache: C:\Users\Robert\AppData\Local\NuGet\Cache
Clearing NuGet global packages cache: C:\Users\Robert\.nuget\packages\
Local resources cleared.
Running build script...
Module directory does not exist.
Performing debug...
Attach debugger to process 6580 to continue
Debugger attached
using System;
using System.Collections.Generic;
using System.Linq;
using Cake.Core;
using Cake.Core.Annotations;
using JetBrains.Annotations;
/// <summary>
@robgha01
robgha01 / gh-pages-deploy.md
Created October 31, 2016 11:41 — forked from cobyism/gh-pages-deploy.md
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

@robgha01
robgha01 / Bootstrap.cs
Last active January 13, 2017 21:16
Umbraco 7 How to create a custom route.
public class ApplicationRouteBootstrap : ApplicationEventHandler
{
/// <inheritdoc />
protected override void ApplicationStarted(
UmbracoApplicationBase umbracoApplication,
ApplicationContext applicationContext)
{
RouteTable.Routes.MapUmbracoRoute(
"Profile",
"{action}/{alias}",