Skip to content

Instantly share code, notes, and snippets.

View gmackiewicz's full-sized avatar

Gabriel Mackiewicz gmackiewicz

View GitHub Profile
@gmackiewicz
gmackiewicz / dell-h310.md
Created October 20, 2023 16:24 — forked from woble/dell-h310.md
Flashing Dell PERC H310 to IT mode

If you have a Dell Perc H310 and your computer won't boot then you'll need to cover PCIe pins B5 and B6. You can cover them with a thin piece of electrical tape.

H310 DOS

  1. megacli.exe -AdpAllInfo -aAll -page 20 Write down SAS address.
  2. megarec.exe -writesbr 0 sbrempty.bin If this fails move on to next step.
  3. megarec.exe -cleanflash 0 Reboot.
  4. sas2flsh.exe -o -f 6GBPSAS.fw Reboot.
  5. sas2flsh.exe -o -f 2118it.bin
  6. s2fp19.exe -o -sasadd 500xxxxxxxxxxxxx
@gmackiewicz
gmackiewicz / CustomUserValidator.cs
Last active July 1, 2016 16:24 — forked from blachniet/CustomUserValidator.cs
This custom user validator can be used instead of the default user validator in order to change the required form of the UserName property in the IUser. To use this validator, just set UserManager.UserValidator to a new instance of this class.
/// <summary>
/// A replacement for the <see cref="UserValidator"/> which requires that an email
/// address be used for the <see cref="IUser.UserName"/> field.
/// </summary>
/// <typeparam name="TUser">Must be a type derived from <see cref="Microsoft.AspNet.Identity.IUser"/>.</typeparam>
/// <remarks>
/// This validator check the <see cref="IUser.UserName"/> property against the simple email regex provided at
/// http://www.regular-expressions.info/email.html. If a <see cref="UserManager"/> is provided in the constructor,
/// it will also ensure that the email address is not already being used by another account in the manager.
///