Skip to content

Instantly share code, notes, and snippets.

James Green JamesGreenAU

Block or report user

Report or block JamesGreenAU

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
View partial-couch-wrapper-cookie.cs
View CreateResponse.cs
public class CreateResponse
// use of JsonPropertyAttribute is supported on properties if needed.
public bool ok { get; set; }
public string id { get; set; }
public string rev { get; set; }
public string error { get; set; }
public string reason { get; set; }
View partial-couch-wrapper.cs
public async Task<R> Put<T, R>(T docObject)
string DbName = "demodb";
string NewDocId = "newDocId";
// Valid paths, methods and response codes are documented here:
using (var httpClient = new HttpClient())
httpClient.BaseAddress = new Uri("http://server:5984/");
JamesGreenAU / PostDeploy.ps1
Last active Oct 14, 2015
Post deploy step for migrating media from one Umbraco web root to another.
View PostDeploy.ps1
# Copies the Media folder from the previous release folder to the newly deployed folder.
cd $OctopusOriginalPackageDirectoryPath
cd ..
Write-Host "Moving media folder for release " $OctopusParameters["Octopus.Release.Number"]
$R = Get-ChildItem | Sort-Object Name | select -last 2
$old = $R[0]
JamesGreenAU / 0_reuse_code.js
Created May 22, 2014
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
You can’t perform that action at this time.