Skip to content

Instantly share code, notes, and snippets.

View paulblamire's full-sized avatar

Paul Blamire paulblamire

View GitHub Profile
@ebicoglu
ebicoglu / passwordless-token-provider.md
Last active June 19, 2024 09:19
Implementing Passwordless Authentication in ASP NET Core Identity

Implementing Passwordless Authentication in ASP.NET Core Identity

To allow a user login with a magic URL, you need to implement a custom token provider. I'll show you how to add a custom token provider to authenticate a user with a link.

Step-1

Create a class named PasswordlessLoginProvider in your *.Web project.

PasswordlessLoginProvider.cs

@ammarshah
ammarshah / all_email_provider_domains.txt
Last active November 16, 2024 05:45
A list of all email provider domains (free, paid, blacklist etc). Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
0-mail.com
007addict.com
020.co.uk
027168.com
0815.ru
0815.su
0clickemail.com
0sg.net
0wnd.net
0wnd.org
@davidfowl
davidfowl / dotnetlayout.md
Last active November 13, 2024 13:19
.NET project structure
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
 tests/
@alexandrevicenzi
alexandrevicenzi / index.html
Last active September 25, 2024 00:16
Bootstrap CSS Animate Loading Icon Button
<!-- Code snippet -->
<div class="form-group">
<div class="col-md-12 text-center">
<span class="glyphicon glyphicon-refresh glyphicon-refresh-animate"></span>
</div>
</div>
@praeclarum
praeclarum / ObservableTableViewController.cs
Created April 7, 2014 16:57
This is my UITableViewController with DataSource property that listens for INotifyCollectionChanged
using System;
using System.Collections;
using System.Collections.Specialized;
using System.Diagnostics;
using MonoTouch.Foundation;
using MonoTouch.UIKit;
namespace Praeclarum.UI
{
@timgaunt
timgaunt / gist:9933156
Last active November 13, 2020 13:46
Set Umbraco folder permissions on IIS
$PhysicalPath = "[Path to Website]"
$appPoolAccount = "IIS_IUSRS"
$readExecute = $appPoolAccount,"ReadAndExecute","ContainerInherit,ObjectInherit","None","Allow"
$read = $appPoolAccount,"Read","ContainerInherit,ObjectInherit","None","Allow"
$modify = $appPoolAccount,"Modify","ContainerInherit,ObjectInherit","None","Allow"
$fileModify = $appPoolAccount,"Modify","Allow"
$objects = @{}
$objects["App_Browsers"] = $readExecute
$objects["App_Data"] = $modify
$objects["App_Plugins"] = $modify
@paulblamire
paulblamire / BootstrapHelper.Usage
Last active December 26, 2015 22:39
BootstrapHelper example usage
@using (Html.BeginForm())
{
using (Html.BeginFields())
{
<h4>Model Heading</h4>
<hr />
@Html.ValidationSummary(true)
@Html.Field(m => m.FirstName, @<text>@Html.EditorFor(item) @Html.ValidationMessageFor(item)</text>)
@paulblamire
paulblamire / BootstrapHelper
Created October 29, 2013 22:58
Helper to reduce the amount of Bootstrap 3.0 chrome that needs to be manual written around standard HtmlHelper extensions
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.WebPages;
using System.Linq.Expressions;
using System.Web.Mvc.Html;
using System.Text;