Skip to content

Instantly share code, notes, and snippets.

View simongui's full-sized avatar

Simon Guindon simongui

View GitHub Profile

Keybase proof

I hereby claim:

  • I am simongui on github.
  • I am simongui (https://keybase.io/simongui) on keybase.
  • I have a public key ASCIbDx3hcZF-lx53oqKINEIee2_J6eJWO0yHtsJaE6niwo

To claim this, I am signing this object:

@simongui
simongui / 0_reuse_code.js
Created April 27, 2017 12:55
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
[2015-10-13 19:02:54,825][ERROR][bootstrap ] Exception
org.elasticsearch.common.inject.CreationException: Guice creation errors:
1) A binding to org.elasticsearch.cloud.aws.AwsS3Service was already configured at _unknown_.
at _unknown_
2) A binding to org.elasticsearch.cloud.aws.AwsEc2Service was already configured at _unknown_.
at _unknown_
2 errors
Missing method .ctor in assembly /tmp/root-temp-aspnet-0/cbb1b533/assembly/shadow/bef1c25f/a209de39_1cf81c66_00000001/System.Web.Providers.dll, type System.Data.Objects.DataClasses.EdmRelationshipAttribute
Can't find custom attr constructor image: /tmp/root-temp-aspnet-0/cbb1b533/assembly/shadow/bef1c25f/a209de39_1cf81c66_00000001/System.Web.Providers.dll mtoken: 0x0a000012
Missing method System.Web.Security.FormsAuthentication::get_IsEnabled() in assembly /usr/local/lib/mono/gac/System.Web/4.0.0.0__b03f5f7f11d50a3a/System.Web.dll, referenced in assembly /tmp/root-temp-aspnet-0/cbb1b533/assembly/shadow/5cf10065/40091c03_1cf81c66_00000001/System.Web.Http.WebHost.dll
@simongui
simongui / masstransit_build.bat
Created March 26, 2012 19:02
MassTransit build.bat output
C:\GitHub\MassTransit>build.bat --trace
Building for .NET 3.5
rake aborted!
undefined method `[]' for nil:NilClass
Tasks: TOP => all => default => compile => versioning
(See full trace by running task with --trace)
C:\GitHub\MassTransit>
@simongui
simongui / mt_json_bytearray_deserialization_bug.cs
Created March 21, 2012 22:59
MassTransit JSON byte[] derialization bug
// Taken from MassTransit.Seralization.XmlMessageSerializer
var serializer = JsonSerializer.Create(
new JsonSerializerSettings
{
NullValueHandling = NullValueHandling.Ignore,
DefaultValueHandling = DefaultValueHandling.Ignore,
MissingMemberHandling = MissingMemberHandling.Ignore,
ObjectCreationHandling = ObjectCreationHandling.Auto,
ConstructorHandling = ConstructorHandling.AllowNonPublicDefaultConstructor,
ContractResolver = new JsonContractResolver(),
@simongui
simongui / MonkeyBridgeCodeGeneration.cs
Created February 27, 2011 08:07
MonoTouch code generated from XAML created in Expression Blend
// XAML from Expression Blend
/*
<!--ContentPanel - place additional content here-->
<Grid x:Name="ContentPanel" Grid.Row="1" Margin="12,0,12,0">
<vt:UIView AutoresizeSubviews="True" ClearContext="True" ClipSubviews="True" ContentMode="Left" Hidden="True" MultipleTouchEnabled="True" Opaque="True" UserInteractionEnabled="True" iTag="128" BackgroundColor="#FFCA4E4E"/>
<vt:UIButton ContentEdgeInsets="1,3,2,4" ButtonType="DetailDisclosure" BackgroundColor="#FF3F65A3" ContentMode="TopLeft" ContentHorizontalAlignment="Left" ContentVerticalContentAlignment="Top" DisabledAdjustsImage="True" HighlightedAdjustsImage="True" HighlightReversesDirection="True" ShowsTouchOnHighlighted="True"/>
</Grid>
*/
// CODE GENERATION