Skip to content

Instantly share code, notes, and snippets.

@nevadascout
nevadascout / GatherLevels.cs
Created November 10, 2015 15:39
Gather level modifier for Rust (Oxide plugin)
//-----------------------------------------------------------------------
// <copyright file="GatherLevels.cs" company="RustFactions">
// Player Gather Level Modifier for Rust Oxide
// Written by nevada_scout for Rust Factions (http://reddit.com/r/rustfactions)
// Copyright (c) 2015 nevada_scout
// </copyright>
//-----------------------------------------------------------------------
namespace Oxide.Plugins
{
@nevadascout
nevadascout / gravatarmd5.cs
Created July 6, 2015 13:00
Gravatar MD5 Hash
public static MvcHtmlString GetGravatarForUser(string email, int size = 50)
{
var hash = Md5.CreateHash(email);
// return new MvcHtmlString(string.Format("https://secure.gravatar.com/avatar/{0}?s=50&d={1}", hash, defaultAvatarUrl));
return new MvcHtmlString(string.Format("https://secure.gravatar.com/avatar/{0}?s={1}", hash, size));
}