Skip to content

Instantly share code, notes, and snippets.

Avatar
😀

Blake Niemyjski niemyjski

😀
View GitHub Profile
View gist:2007783
Unexpected exception: Object reference not set to an instance of an object.
at Microsoft.VisualStudio.Editor.Implementation.VsTextBufferAdapter.GetData_VsBufferEncoding()
at Microsoft.VisualStudio.Editor.Implementation.VsTextBufferAdapter.GetData(Guid& riidKey, Object& pvtData)
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo)
at Microsoft.VisualStudio.VSIP.NativeMethods.ThrowOnFailure(Int32 hr, Int32[] expectedHRFailure)
at VisualSVN.VS.AbstractLockedTextBuffer.GetEncoding()
at VisualSVN.Core.MarkerBuilder.BuildMarkers(ILockedTextBuffer lockedTextBuffer, IFileContentProvider fileContentProvider, IBufferContentProvider bufferContentProvider, IsPathVersionedDelegate isPathVersioned, Client client)
at VisualSVN.Core.QuickDiffUpdater.BuildMarkers(ILockedTextBuffer lockedTextBuffer)
at VisualSVN.Core.QuickDiffUpdater.Process()
StackTrace:
View CompiledPropertyAccessor.cs
using System;
using System.Linq.Expressions;
using System.Reflection;
using WebApi.Delta;
namespace Hst.Deals.API.Infrastructure
{
internal class CompiledPropertyAccessor<TEntityType> : PropertyAccessor<TEntityType> where TEntityType : class
{
private Action<TEntityType, object> _setter;
View gulpfile.js
var gulp = require('gulp'),
gulpif = require('gulp-if'),
less = require('gulp-less'),
autoprefixer = require('gulp-autoprefixer'),
minifycss = require('gulp-minify-css'),
rename = require('gulp-rename'),
clean = require('gulp-clean'),
runSequence = require('run-sequence'),
concat = require('gulp-concat'),
uglify = require('gulp-uglify'),
View gist:e01f64006d7e59a00356
<configuration>
<system.web>
<httpModules>
<remove name="ExceptionlessModule"/>
<add name="ExceptionlessModule" type="Exceptionless.Web.ExceptionlessModule, Exceptionless.Web" />
</httpModules>
</system.web>
</configuration>
@niemyjski
niemyjski / gist:469ccce03dc5b753d522
Created Dec 16, 2014
Exceptionless Log Source Trace Messages
View gist:469ccce03dc5b753d522
internal static readonly TraceSource _traceSource = new TraceSource("MyLogSource");
ExceptionlessTraceListener traceListener = Trace.Listeners.OfType<ExceptionlessTraceListener>().FirstOrDefault();
if (traceListener != null)
_traceSource.Listeners.Add(traceListener);
OR
<system.diagnostics>
<sharedListeners>
<add name="DiskLog" type="System.Diagnostics.TextWriterTraceListener" traceOutputOptions="DateTime" initializeData="MyLog.log" />
View essential-javascript-links.md
View gist:1e630fa2955f5d6dbb04
{
"title": "Exceptionless",
"services": {
"query": {
"list": {
"0": {
"id": 0,
"color": "#7EB26D",
"alias": "",
"pin": false,
@niemyjski
niemyjski / plugin.example.cs
Last active Aug 29, 2015
Exceptionless Plugin Example
View plugin.example.cs
// There are two ways to create an plugin:
public class UniqueUserIdentifierPlugin : IEventPlugin {
public void Run(EventPluginContext context) {
if (!ctx.Client.Configuration.IncludePrivateInformation)
return;
// Only update it if it's not currently set.
var user = context.Event.GetUserIdentity();
if (user != null)
@niemyjski
niemyjski / gist:a68114db0ddf1f9717f6
Last active Apr 5, 2016
IIS6 Exceptionless Web.config file changes
View gist:a68114db0ddf1f9717f6
<!-- Required changes if you are using Exceptionless.Mvc -->
<system.web>
<httpModules>
<add type="Exceptionless.Mvc.ExceptionlessModule, Exceptionless.Mvc" name="ExceptionlessModule"/>
</httpModules>
</system.web>
<!-- Required changes if you are using Exceptionless.Web -->
<system.web>
<httpModules>