Skip to content

Instantly share code, notes, and snippets.

View phillip-haydon's full-sized avatar
💭
Banana's are yellow.

Phillip Haydon phillip-haydon

💭
Banana's are yellow.
View GitHub Profile
@phillip-haydon
phillip-haydon / Error
Created October 22, 2014 13:06
Boxstarter Error
Boxstarter: Installing package https://gist.githubusercontent.com/phillip-haydon
/b7dec246f0ad953ad65c/raw/f6e23a9039b500e5d4d8df6ec5460ee31ea12edb/boxstarter-sc
ript
Boxstarter Version 2.4.123
(c) 2014 Matt Wrock. http://boxstarter.org
Boxstarter: Disabling Automatic Updates from Windows Update
Calling 'C:\ProgramData\chocolatey\chocolateyinstall\nuget.exe pack temp_Boxstar
terPackage\temp_BoxstarterPackage.nuspec -NoPackageAnalysis -NonInteractive'.
Attempting to build package from 'temp_BoxstarterPackage.nuspec'.
@phillip-haydon
phillip-haydon / gist:d491df603c5b1a0caa5c
Created October 20, 2014 12:26
Sample Simple Authentication Process Calling
namespace SimpleAuthenticationProcessCallSample
{
using System;
class Program
{
static void Main(string[] args)
{
Console.WriteLine("Hello World");
using (var exifStream = new MemoryStream())
using (var imageFactory = new ImageFactory())
{
file.Value.Position = 0;
file.Value.CopyTo(exifStream);
exifStream.Position = 0;
var exifData = imageFactory.Load(exifStream)
.GetExifTags();
public class ExifInfo
{
public static IList<Exif> ExifTagsToCapture;
static ExifInfo()
{
ExifTagsToCapture = new List<Exif>
{
new Exif
{
@phillip-haydon
phillip-haydon / RDCMAN
Last active August 29, 2015 14:03
Chocolatey Install for VS
PS C:\Windows\system32> cinst rdcman -debug
DEBUG: Running 'Append-InstallLog' with chocoInstallLog:''
DEBUG: Arguments: $command =
'install'|$packageNames='rdcman'|$source=''|$version=''|$allVersions=False|$InstallArguments=''|$overrideArguments=Fals
e|$force=False|$prerelease=False|$localonly=False|$verbosity=False|$debug=True|$quiet=False|$name=''|$ignoreDependencie
s=False|$forceX86=False|$packageParameters=''|PowerShellVersion=4.0
DEBUG: Running 'Chocolatey-Install' for 'rdcman' with source: '', version: '', installerArguments:''
DEBUG: Running 'Chocolatey-NuGet' for rdcman with source:''. Force? False
Chocolatey (v0.9.8.24) is installing 'rdcman' and dependencies. By installing you accept the license for 'rdcman' and ea
ch dependency you are installing.
@phillip-haydon
phillip-haydon / boxstarter-script
Last active October 1, 2023 22:02
My Boxstarter Script
Set-ExplorerOptions -showHidenFilesFoldersDrives -showProtectedOSFiles -showFileExtensions
Set-StartScreenOptions -EnableBootToDesktop -EnableDesktopBackgroundOnStart -EnableShowStartOnActiveScreen -EnableShowAppsViewOnStartScreen -EnableSearchEverywhereInAppsView -EnableListDesktopAppsFirst
Install-WindowsUpdate -acceptEula
cinst notepad2
cinst SublimeText3
cinst sublimetext3-contextmenu
cinst git-credential-winstore
cinst ConEmu
cinst poshgit
@phillip-haydon
phillip-haydon / gist:8771892
Created February 2, 2014 17:35
glup bundler
var gulp = require('gulp');
var concat = require('gulp-concat');
gulp.task('scripts', function() {
gulp.src('./directives/*.js')
.pipe(concat("directives.js"))
.pipe(gulp.dest('./scripts/'))
});
gulp.run('scripts');
store.DatabaseCommands.Patch("videos/", new[]
{
new PatchRequest
{
Type = PatchCommandType.Modify,
Name = "@metadata",
Nested = new[]
{
new PatchRequest
{
//Wont work
var thing = @"Value=One
Value=Two";
//Will work
var thing = "Value=One\nValue=Two"
Nancy.RequestExecutionException: Oh noes! ---> System.AggregateException: One or more errors occurred. ---> System.AggregateException: One or more errors occurred. ---> System.NotSupportedException: Specified method is not supported.
at Raven.Client.Document.DocumentSession.Raven.Client.Linq.IDocumentQueryGenerator.AsyncQuery[T](String indexName, Boolean isMapReduce) in c:\Builds\RavenDB-Unstable-v2.5\Raven.Client.Lightweight\Document\DocumentSession.cs:line 758
at Raven.Client.Linq.RavenQueryProviderProcessor`1.GetAsyncLuceneQueryFor(Expression expression) in c:\Builds\RavenDB-Unstable-v2.5\Raven.Client.Lightweight\Linq\RavenQueryProviderProcessor.cs:line 1452
at Raven.Client.Linq.RavenQueryProvider`1.ToAsyncLuceneQuery[TResult](Expression expression) in c:\Builds\RavenDB-Unstable-v2.5\Raven.Client.Lightweight\Linq\RavenQueryProvider.cs:line 251
at Raven.Client.LinqExtensions.ToListAsync[T](IQueryable`1 source) in c:\Builds\RavenDB-Unstable-v2.5\Raven.Client.Lightweight\PublicExtensions\LinqExten