Skip to content

Instantly share code, notes, and snippets.

View kevinrodriguez-io's full-sized avatar
🌎
To control your destiny start by controlling yourself

Kevin Rodríguez kevinrodriguez-io

🌎
To control your destiny start by controlling yourself
View GitHub Profile
@kevinrodriguez-io
kevinrodriguez-io / angularcli-scss-routing-jquery-fa-bs.bash
Last active August 22, 2017 03:18
Project setup: angular-cli, SCSS, Routing, jQuery, Font Awesome, Bootstrap
# Install node.js (With npm)
# Install angular-cli.
npm install -g @angular/cli
# Init new angular-cli project.
# Use the --style=scss flag if you want to use scss.
# Use the --routing flag if you want to use angular routing by default.
ng new my-project --style=scss --routing
gource -f -960x540 --disable-progress --seconds-per-day 0.5 --stop-on-idle --auto-skip-seconds 0.1 --title project --file-idle-time 0 --hide filenames,progress,mouse --output-ppm-stream - | ffmpeg -y -r 30 -f image2pipe -vcodec ppm -i - -vcodec libx264 -preset ultrafast -pix_fmt yuv420p -crf 1 -threads 0 -bf 0 gource.mp4
@kevinrodriguez-io
kevinrodriguez-io / ForgotPassword.cshtml.cs
Last active June 12, 2018 06:42
ASP.Net Core Identity UI 2.1 Account ForgotPassword
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text.Encodings.Web;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Identity;
using Microsoft.AspNetCore.Identity.UI.Services;
using Microsoft.AspNetCore.Mvc;
using Microsoft.AspNetCore.Mvc.RazorPages;
@kevinrodriguez-io
kevinrodriguez-io / EmailSender.cs
Created June 12, 2018 06:54
ASP.Net Core Identity UI 2.1 EmailSender
using Microsoft.AspNetCore.Identity.UI.Services;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
namespace MailSenderApp.Services {
public class EmailSender : IEmailSender {
public Task SendEmailAsync(string email, string subject, string htmlMessage) {
throw new NotImplementedException();
@kevinrodriguez-io
kevinrodriguez-io / Startup.cs
Created June 12, 2018 07:00
ASP.Net Core Identity UI 2.1 EmailSender registration on Startup.cs
// ... Usings
using Microsoft.AspNetCore.Identity.UI.Services;
using MailSenderApp.Services;
namespace MailSenderApp {
public class Startup {
// ... Startup initializer and other methods
public void ConfigureServices(IServiceCollection services)
@kevinrodriguez-io
kevinrodriguez-io / EmailSender.cs
Last active May 25, 2019 16:22
ASP.Net Core Identity UI 2.1 EmailSender using SmtpClient
using Microsoft.AspNetCore.Identity.UI.Services;
using System;
using System.Collections.Generic;
using System.Net;
using System.Net.Mail;
using System.Text;
using System.Threading.Tasks;
namespace MailSenderApp.Services {
public class EmailSender : IEmailSender {
@kevinrodriguez-io
kevinrodriguez-io / appsettings.json
Created June 12, 2018 07:10
ASP.Net Core Identity UI 2.1 Smtp configuration on appsettings.json
{
"ConnectionStrings": {
"DefaultConnection": "Server=myHost\\SQLINSTANCE;Database=myDataBase;Trusted_Connection=True;MultipleActiveResultSets=true"
},
"EmailSender": {
"Host": "smtp.yourprovider.com",
"Port": 587,
"EnableSSL": true,
"UserName": "[email protected]",
"Password": "Y0urP4ssw0rd!!!"
@kevinrodriguez-io
kevinrodriguez-io / Startup.cs
Created June 12, 2018 07:14
ASP.Net Core Identity UI 2.1 EmailSender parameterized registration on Startup.cs
// ... Usings
using Microsoft.AspNetCore.Identity.UI.Services;
using MailSenderApp.Services;
namespace MailSenderApp {
public class Startup {
// ... Startup initializer and other methods
public void ConfigureServices(IServiceCollection services)
@kevinrodriguez-io
kevinrodriguez-io / phpinfo.php
Created June 12, 2018 15:26
Good old phpinfo
<?php
phpinfo();
?>
@kevinrodriguez-io
kevinrodriguez-io / php.ini
Created June 12, 2018 15:28
php.ini Configuration for Visual Studio Code
[XDebug]
xdebug.remote_enable = 1
xdebug.remote_autostart = 1