Skip to content

Instantly share code, notes, and snippets.

View flarocca's full-sized avatar
💭
Coding...

Facundo La Rocca flarocca

💭
Coding...
View GitHub Profile
@flarocca
flarocca / gist:70a994f2489e560eb3469b9ca0750e03
Created February 23, 2021 12:16
Azure AD B2C - Idioma - EN
// Español
https://linkedinazureadb2c.b2clogin.com/linkedinazureadb2c.onmicrosoft.com/oauth2/v2.0/authorize?
p=B2C_1_InicioSesionConRegistro&
client_id=f4adfa19-2162-449a-a083-a2c7a1834aec&
nonce=defaultNonce&
redirect_uri=https%3A%2F%2Fjwt.ms%2F&
scope=openid&
response_type=id_token&
prompt=login&
ui_locales=es <-- UI_LOCALES = ES
@flarocca
flarocca / create_mvc_web_app.txt
Last active March 31, 2021 15:54
Create MVC Web App
dotnet new sln -n AzureADB2C
dotnet new mvc -n AzureADB2C.MVC -o AzureADB2C.MVC
dotnet sln add .\AzureADB2C.MVC\AzureADB2C.MVC.csproj
# Crear solución y projecto MVC
dotnet new sln --name AzureAdB2C
dotnet new mvc --name AzureAdB2C.MVC --output AzureAdB2C.MVC
dotnet sln add .\AzureAdB2C.MVC\AzureAdB2C.MVC.csproj
# Instalar las librerías necesarias
dotnet add .\AzureAdB2C.MVC\AzureAdB2C.MVC.csproj package Microsoft.Identity.Web
dotnet add .\AzureAdB2C.MVC\AzureAdB2C.MVC.csproj package Microsoft.Identity.Web.UI
# Restaurar y compilar
@flarocca
flarocca / ethersdb_integration_test_failure.rs
Last active July 22, 2024 12:55
revm EthersDB failure on single threaded test
#[tokio::test]
async fn demo_test() {
// Problem:
// This test works fine with revm 8.0.0, but at latest version (12.1.0) it fails.
// There is a new at EthersDB::new() that checks that current tokio::runtime is
// not single-threaded (https://github.com/bluealloy/revm/blob/8eaff99234aca42955345e2775ef11e24e2c0339/crates/revm/src/db/ethersdb.rs#L24).
// Context:
// Our main application runs using tokio::main macro, which works pretty well with
// both versions of the library. However, as you can appreciate in the code snippet,