Skip to content

Instantly share code, notes, and snippets.


Diego Augusto diego-augusto

Block or report user

Report or block diego-augusto

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View db-logger.cs
catch (DbEntityValidationException e)
_logger.Error($"Exception: {e.Message}");
_logger.Error($"Inner: {e.InnerException?.Message}");
_logger.Error($"StackTrace: {e.StackTrace}");
diego-augusto / CustomEnumDropDownListFor.cs
Created Mar 3, 2018
Custom DropDownListFor for nullable types
View CustomEnumDropDownListFor.cs
private static Type GetNonNullableModelType(ModelMetadata modelMetadata)
Type realModelType = modelMetadata.ModelType;
Type underlyingType = Nullable.GetUnderlyingType(realModelType);
if (underlyingType != null)
realModelType = underlyingType;
return realModelType;
diego-augusto /
Last active Jul 25, 2018
Smart Merging in Unity with Meld (Windows)
  1. In Unity, go to Edit > Project Settings > Edit > Asset Serialization > Mode and select Force Text.
  2. Add UnityYAMLMerge.exe in %PATH%. (C:\Program Files\Unity\Editor\Data\Tools)
  3. In .gitconfig (C:\Users<user>) add at the end of the file:
		tool = unityyamlmerge
	[mergetool "unityyamlmerge"]
		trustExitCode = false
		cmd = UnityYAMLMerge merge -p "$BASE" "$REMOTE" "$LOCAL" "$MERGED"
diego-augusto / how-to-keystore.txt
Last active Jul 14, 2017
How to create a keystore and recover sha1 fingerprint
View how-to-keystore.txt
keytool -genkey -v -keystore release.keystore -alias example -keyalg RSA -keysize 2048 -validity 10000
keytool -list -v -keystore mykeystore.keystore -alias example -storepass example -keypass example
You can’t perform that action at this time.