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 / 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');
@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 / 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.
public class ExifInfo
{
public static IList<Exif> ExifTagsToCapture;
static ExifInfo()
{
ExifTagsToCapture = new List<Exif>
{
new Exif
{
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();
@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");
@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:1bf930eebb8bbbc16faf
Created October 23, 2014 16:08
Upload text file that does not exist
(function() {
var button = document.getElementById("TestUpload");
function setupRequest() {
var xhr = new XMLHttpRequest();
xhr.open('POST', "/home/upload", true);
xhr.setRequestHeader("Accept", "application/json");
PM> Install-Package ServiceStack -Version 3.9.71
Attempting to resolve dependency 'ServiceStack.Common (= 3.0 && < 4.0)'.
Attempting to resolve dependency 'ServiceStack.Text'.
Attempting to resolve dependency 'ServiceStack.Redis (= 3.0 && < 4.0)'.
Attempting to resolve dependency 'ServiceStack.OrmLite.SqlServer (= 3.0 && < 4.0)'.
Installing 'ServiceStack.Text 4.0.33'.
You are downloading ServiceStack.Text from Service Stack, the license agreement to which is available at https://servicestack.net/terms. Check the package for additional dependencies, which may come with their own license agreement(s). Your use of the package and dependencies constitutes your acceptance of their license agreements. If you do not accept the license agreement(s), then delete the relevant components from your device.
Successfully installed 'ServiceStack.Text 4.0.33'.
Installing 'ServiceStack.Common 3.9.11'.
Successfully installed 'ServiceStack.Common 3.9.11'.
http://philliphaydon.com/stuffz/DSC00089.jpg
http://philliphaydon.com/stuffz/DSC00166.jpg
http://philliphaydon.com/stuffz/DSC00377.jpg
http://philliphaydon.com/stuffz/DSC00400.jpg
http://philliphaydon.com/stuffz/DSC01201.jpg
http://philliphaydon.com/stuffz/DSC01482.jpg
http://philliphaydon.com/stuffz/DSC02497.jpg