Skip to content

Instantly share code, notes, and snippets.

View leniel's full-sized avatar
🏠
Working from home

Leniel Maccaferri leniel

🏠
Working from home
View GitHub Profile
@leniel
leniel / ReactToDoIndex.js
Created May 2, 2020 17:29
ReactJS To Do app index.js
import React from 'react';
import ReactDOM from 'react-dom';
import './index.css';
import App from './App';
import * as serviceWorker from './serviceWorker';
import { Auth0Provider } from './auth/Auth'
import config from "./auth/auth_config.json";
import history from "./utils/history";
// A function that routes the user to the right place after login
@leniel
leniel / ConfigurationSetupExtensions.cs
Created July 10, 2019 16:39
AutoFact to Ninject ConfigurationSetupExtensions
using System;
using Ninject;
using Microsoft.Extensions.Configuration;
using Microsoft.Extensions.Options;
namespace MyProject.Extensions
{
public static class ConfigurationSetupExtensions
{
// Ninject version of:
@leniel
leniel / npm-debug.log
Created September 11, 2015 17:53
Error when trying to install cldr-data package with NPM command npm install cldr-data
This file has been truncated, but you can view the full file.
0 info it worked if it ends with ok
1 verbose cli [ 'C:\\Program Files\\nodejs\\\\node.exe',
1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'install',
1 verbose cli 'cldr-data' ]
2 info using [email protected]
3 info using [email protected]
4 verbose node symlink C:\Program Files\nodejs\\node.exe
5 verbose cache add [ 'cldr-data', null ]
6 verbose cache add name=undefined spec="cldr-data" args=["cldr-data",null]
@leniel
leniel / gist:11196345
Created April 22, 2014 22:17
ASP.NET Web Deployment using Visual Studio: Deploying Extra Files
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit http://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>Package</WebPublishMethod>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
@leniel
leniel / Production.pubxml
Last active December 18, 2015 01:28
MS Deploy AfterPublish target
<Target Name="CustomAfterPublish" AfterTargets="PipelineDeployPhase;MSDeployPublish;Package">
<!-- Note to see this message when publishing from VS in the output window you must increase the verbosity
of the output to Detailed. Here is where you can find the setting:
Tools->Options->Projects and Solutions->Build and Run->MSBuild project build verbosity. -->
<Message Text="**************** Custom target after publish ****************" Importance="high" />
<Copy SourceFiles="$(ProjectDir)\MyCustomScript.js" DestinationFolder="C:\MyFolder\data\repos\conf\web" />
</Target>
C:\Program Files\Microsoft Visual Studio 11.0\VC>vstest.console "C:\Schetine\tru
nk\Schetine\bin\Schetine.Tests.dll" /inisolation
Microsoft (R) Test Execution Command Line Tool Version 11.0.50323.1
Copyright (c) Microsoft Corporation. All rights reserved.
Starting test execution, please wait...
Failed Create
Error Message:
Initialization method Schetine.Tests.Controllers.RealtyControllerTest.Setup t
hrew exception. System.IO.FileLoadException: System.IO.FileLoadException: Could
@leniel
leniel / no isolation
Created April 21, 2012 16:24
Using mstest.exe in the command-line
C:\Program Files\Microsoft Visual Studio 11.0\VC>mstest /testcontainer:"C:\Schet
ine\trunk\Schetine\bin\Schetine.Tests.dll" /noisolation
Microsoft (R) Test Execution Command Line Tool Version 11.0.50214.1
Copyright (c) Microsoft Corporation. All rights reserved.
Loading C:\Schetine\trunk\Schetine\bin\Schetine.Tests.dll...
Starting execution...
Results Top Level Tests
------- ---------------
V, 2124, 1, 2012/04/19, 11:51:32.519, 53768136965, devenv.exe, TestPluginCache: Updating loadOnlyWellKnownExtensions from False to False.
V, 2124, 1, 2012/04/19, 11:51:32.519, 53768157695, devenv.exe, TestPluginCache: Using directories for assembly resolution 'C:\USERS\LENIEL\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\11.0\EXTENSIONS\EVZSJR1D.MSX'.
V, 2124, 1, 2012/04/19, 11:51:32.519, 53768159871, devenv.exe, TestPluginCache: Updated the available extensions to 'C:\USERS\LENIEL\APPDATA\LOCAL\MICROSOFT\VISUALSTUDIO\11.0\EXTENSIONS\EVZSJR1D.MSX\NUnit.VisualStudio.TestAdapter.dll'.
I, 2124, 19, 2012/04/19, 11:51:32.582, 53768357990, devenv.exe, CommonUtilities.ResolveFilePath: File path resolved to:
I, 2124, 19, 2012/04/19, 11:51:32.582, 53768359167, devenv.exe, TestRunnerServiceClient: Starting test runner process:
I, 2124, 19, 2012/04/19, 11:51:32.582, 53768359270, devenv.exe, TestRunnerServiceClient: Starting test runner process: , arguments: /parentProcessId 2124, workingDirectory: C:\Windows\system32
V, 2124,
<?xml version ="1.0"?>
<configuration>
<configSections>
<section name="msbuildToolsets" type="Microsoft.Build.BuildEngine.ToolsetConfigurationSection, Microsoft.Build.Engine, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
</configSections>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0.30319" />
<requiredRuntime version="v4.0.30319" safemode="true"/>
</startup>
<runtime>
@leniel
leniel / gist:2031525
Created March 13, 2012 20:57
WinHost Server Error when trying to access deployed app with UseEmbeddedHttpServer = true
Server Error in '/test' Application.
Access is denied
Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.
Exception Details: System.Net.HttpListenerException: Access is denied
Source Error:
An unhandled exception was generated during the execution of the current web request. Information regarding the origin and location of the exception can be identified using the exception stack trace below.