Skip to content

Instantly share code, notes, and snippets.

View lfreneda's full-sized avatar
💙
Always deliver more than expected.

Luiz Freneda lfreneda

💙
Always deliver more than expected.
View GitHub Profile
@lfreneda
lfreneda / errors-and-solutions
Created January 19, 2012 18:47
Errors & Solutions
# HTTP Error 404.17 - Not Found, The requested content appears to be script and will not be served by the static file handler -> http://www.byteblocks.com/post/2010/03/25/HTTP-Error-40417-Not-Found.aspx
@lfreneda
lfreneda / useful-tips
Created January 30, 2012 12:31
Useful tips / links
[asp.net mvc] turn string parameters into int parameters -> http://haacked.com/archive/2010/02/21/manipulating-action-method-parameters.aspx
[jenkins hudson] download plugins hpi - http://hudson-ci.org/downloads/plugins/
[url viewstate decoder] http://meyerweb.com/eric/tools/dencoder/ - http://ignatu.co.uk/ViewStateDecoder.aspx
@lfreneda
lfreneda / gist:3207016
Created July 30, 2012 13:44
C# development setting to resharper :)
- ClassViewContextmenus.ClassViewMultiselectProjectreferencesItems.Pr
- EditorContextMenus.CodeWindow.SendToIn
+ Resharper_quickfix
- Tools.RecordtemporaryMacro
+ Resharper_refactorthis
+ Resharper_genera
@lfreneda
lfreneda / ASP.NET MVC IIS6
Created August 1, 2012 14:52
ASP.NET MVC IIS6
Properties > Configuration > Application Configuration > Insert > c:\windows\microsoft.net\framework\v4.0.30319\aspnet_isapi.dll
@lfreneda
lfreneda / recaptcha tools
Created August 1, 2012 19:26
recaptcha tools, testing, using without plugins google captcha
http://www.google.com/recaptcha/api/verify?privatekey=6LfKzNQSAAAAAClv9b2dO2Zjj9y79fExEu0ZLDBq&remoteip=127.0.0.1&challenge=03AHJ_Vuu2k8RYNjyHgLDEe5giky-QFvwbHEZ-UkAMbcjIBtacBtdUH-LPLHgVNZ36eFbsmGcjRv3UCQPkRx1wW0TCxfzs_yRrRsXq-fUAZL8i9tVc3TrQEmIMOhcbjCRVL34-_BaGOBPq&response=
https://www.google.com/recaptcha/api/noscript?k=6LfKzNQSAAAAAAFUYonBKor9an_P7z-vIvwgaplt
@lfreneda
lfreneda / twitter oauth links
Created August 2, 2012 00:24
twitter oauth links - integration asp.net C# Twitter tweet
@lfreneda
lfreneda / msbuilds
Created September 12, 2012 18:08
msbuild commands / publish / build / package
# wcf 3.5 webhost @ vs2008
msbuild project.csproj /t:ResolveReferences;_CopyWebApplication /p:Configuration=Release;BuildingProject=true;OutDir=C:\lfreneda\
@lfreneda
lfreneda / post-receive + hudson
Created November 5, 2012 13:41
post hook hudson git
#!/bin/sh
#
# An example hook script for the "post-receive" event.
#
# The "post-receive" script is run after receive-pack has accepted a pack
# and the repository has been updated. It is passed arguments in through
# stdin in the form
# <oldrev> <newrev> <refname>
# For example:
# aa453216d1b3e49e7f6f98441fa56946ddcd6a20 68f7abf4e6f922807889f52bc043ecd31b79f814 refs/heads/master
using System;
namespace NerdLove
{
public class Program
{
public static void Main(string[] args)
{
Love love = new Love();
You you = love;
public class SimpleControllerTests {
public void EnsureActionViewName<TController>(Func<TController, ActionResult> executeAction, string viewNameExpected)
where TController : Controller {
var controller = Activator.CreateInstance<TController>();
var viewResult = executeAction.Invoke(controller) as ViewResultBase;
AssertViewName(viewNameExpected, viewResult);
}