Skip to content

Instantly share code, notes, and snippets.

Avatar

Umar Zahoor umar-zahoor

View GitHub Profile
View my_vs2017_son_of_obsidian_with_resharper.vssettings
<UserSettings>
<ApplicationIdentity version="15.0"/>
<ToolsOptions>
<ToolsOptionsCategory name="Environment" RegisteredName="Environment"/>
</ToolsOptions>
<Category name="Environment_Group" RegisteredName="Environment_Group">
<Category name="Environment_FontsAndColors" Category="{1EDA5DD4-927A-43a7-810E-7FD247D0DA1D}" Package="{DA9FB551-C724-11d0-AE1F-00A0C90FFFC3}" RegisteredName="Environment_FontsAndColors" PackageName="Visual Studio Environment Package">
<PropertyValue name="Version">2</PropertyValue>
<FontsAndColors Version="2.0">
<Theme Id="{A4D6A176-B948-4B29-8C66-53C97A1ED7D0}"/>
@umar-zahoor
umar-zahoor / TokenGenerator.cs
Created Jul 18, 2018 — forked from diegojancic/TokenGenerator.cs
Random string generator, based on
View TokenGenerator.cs
/*
Based on Eric J's answer here: https://stackoverflow.com/a/1344255/72350
- Fixed bias by using 64 characters
- Removed unneeded 'new char[62]' and 'new byte[1]'
- Using GetBytes instead of GetNonZeroBytes
*/
using System.Security.Cryptography;
using System.Text;