Skip to content

Instantly share code, notes, and snippets.

@davidwincent
davidwincent / README.md
Last active December 20, 2018 10:29
Improve file system performace in WSL / WLinux

File system performance in windows subsytem for linux is still a bit mediocre. As an example I tried running git checkout on a medium/large open source project. No download times are included in the tests.

Steps to reproduce test:

$ cd ~/

$ git clone git@github.com:umbraco/Umbraco-CMS.git

$ cd Umbraco-CMS

mutation Batch1542278450399 {
b0: updateCompany(id: "cj8613fj60bz70196d7w9ms1q", name: "TEST") { name }
b1: updateCompany(id: "cj96z6svptruw0127qpcpquu1", name: "TEST") { name }
b2: updateCompany(id: "cj9pe4zznke610195pzbk51nv", name: "TEST") { name }
b3: updateCompany(id: "cj9rmbw29bccn01750uupp896", name: "TEST") { name }
b4: updateCompany(id: "cj9sd931ilz8n0183jk1yivxt", name: "TEST") { name }
b5: updateCompany(id: "cj9sf0x9ao3xn0116u1l0jxj8", name: "TEST") { name }
b6: updateCompany(id: "cj9tyqfiz0d3f01609yr9vz88", name: "TEST") { name }
b7: updateCompany(id: "cj9ya724ptsmx0131w0q73r2h", name: "TEST") { name }
b8: updateCompany(id: "cj9ya9ptzstfb0175wbm9h89q", name: "TEST") { name }
Dear David Wincent,
It is important we know the status of the transaction between you and Nicola Valerie with Transaction ID: T78F7DY44JAZ4, otherwise legal action may be taken against you since you have not e-mailed us the money gram transfer information and scanned receipt of the money gram transfer.
We believed you entered into agreement by requesting money through PayPal from the buyer, and by not e-mailing us with the details of the money gram transfer information, you are violating PayPal users agreement in act of the 1999 Law in collaboration with the World Law Enforcement Agency. We are encouraging you to go ahead and send the money to your client agent pick up agent and get back to us the money gram information for verification and once verified,All your funds will get updated into your account in the next couple of Minutes.
You are now mandated to transfer the sum of The 7 500,00 SEK to the buyer's shipping agent and email us the proof of transfer within the next 12 hours, failure to do so wo
@davidwincent
davidwincent / .gitconfig
Created September 14, 2015 10:25
,gitconfig windows
[user]
name = username
email = useremail
[core]
autocrlf = false
fscache = true
preloadindex = true
excludesfile = %USERPROFILE%\\.gitignore
[push]
default = simple
@davidwincent
davidwincent / UmbracoTraceLog.txt
Created March 27, 2015 10:31
UmbracoTraceLog.txt
2015-03-27 11:30:03,599 [20] INFO Umbraco.Core.PluginManager - [Thread 7] Determining hash of code files on disk
2015-03-27 11:30:03,663 [20] INFO Umbraco.Core.PluginManager - [Thread 7] Hash determined (took 32ms)
2015-03-27 11:30:03,707 [20] INFO Umbraco.Core.PluginManager - [Thread 7] Starting resolution types of umbraco.interfaces.IApplicationStartupHandler
2015-03-27 11:30:03,790 [20] INFO Umbraco.Core.PluginManager - [Thread 7] Completed resolution of types of umbraco.interfaces.IApplicationStartupHandler, found 36 (took 77ms)
2015-03-27 11:30:04,163 [20] INFO Umbraco.Core.PluginManager - [Thread 7] Starting resolution types of Umbraco.Core.PropertyEditors.IPropertyEditorValueConverter
2015-03-27 11:30:05,004 [20] INFO Umbraco.Core.PluginManager - [Thread 7] Completed resolution of types of Umbraco.Core.PropertyEditors.IPropertyEditorValueConverter, found 0 (took 841ms)
2015-03-27 11:30:05,005 [20] INFO Umbraco.Core.PluginManager - [Thread 7] Starting resolution types of Umbraco.Core.PropertyEdit
@davidwincent
davidwincent / CodeGen.config
Created September 30, 2014 21:13
Umbraco.CodeGen Issue #9
<CodeGenerator OverwriteReadOnly="false" GeneratorFactory="Umbraco.CodeGen.Generators.AnnotatedCodeGeneratorFactory, Umbraco.CodeGen" ParserFactory="Umbraco.CodeGen.Parsers.AnnotatedParserFactory, Umbraco.CodeGen">
<DocumentTypes ModelPath="Models/DocumentTypes" BaseClass="PublishedContentBase" GenerateClasses="true" GenerateXml="false" Namespace="Umbraco.Web.UI.Models" />
<MediaTypes ModelPath="Models/MediaTypes" BaseClass="PublishedContentBase" GenerateClasses="true" GenerateXml="false" Namespace="Umbraco.Web.UI.Models" />
<TypeMappings DefaultDefinitionId="0cc0eba1-9960-42c9-bf9b-60e150b429ae">
<TypeMapping DataTypeId="Umbraco.TrueFalse" Type="Boolean" Description="True/false" />
<TypeMapping DataTypeId="Umbraco.Integer" Type="Int32" Description="Numeric" />
<TypeMapping DataTypeId="Umbraco.UploadField" Type="Int32" Description="Upload" />
<TypeMapping DataTypeId="Umbraco.DateTime" Type="DateTime" Description="Date Picker with time" />
<TypeMapping DataTypeId="Umbraco.ColorPickerA
namespace ServiceTools
{
/// <summary>
///
/// </summary>
[Flags]
public enum ServiceManagerRights
{
/// <summary>
///
@davidwincent
davidwincent / CorsHandler.cs
Created January 27, 2014 09:57
asp.net MVC options/cors handler
public class CorsHandler : DelegatingHandler
{
const string Origin = "Origin";
const string AccessControlRequestMethod = "Access-Control-Request-Method";
const string AccessControlRequestHeaders = "Access-Control-Request-Headers";
const string AccessControlAllowOrigin = "Access-Control-Allow-Origin";
const string AccessControlAllowMethods = "Access-Control-Allow-Methods";
const string AccessControlAllowHeaders = "Access-Control-Allow-Headers";
protected string AllowOrigin;
@davidwincent
davidwincent / gist:6211078
Created August 12, 2013 14:06
GOOGLE+ AWARENESS REWARD.doc
From: Google Inc.
Corporate Headquarters,
1600 Amphitheatre Parkway,
Mountain View,
California, 94043,