Skip to content

Instantly share code, notes, and snippets.

require 'formula'
class TmuxForIterm2 < Formula
url 'http://iterm2.googlecode.com/files/tmux-for-iTerm2-20130319.tar.gz'
#SHA1 'f14a0bad6991b9e3380d5c3a6057e09f62597d1f'
homepage 'http://code.google.com/p/iterm2/wiki/TmuxIntegration'
depends_on 'libevent'
def install
@prabirshrestha
prabirshrestha / DocumentsIISExpressconfigapplicationhost.config
Created September 18, 2012 13:30 — forked from duncansmart/add urlacl.cmd
Allows IISExpress site to be externally accessed (e.g. by VM or iOS device)
<site name="WebSite1" id="1" serverAutoStart="true">
<application path="/">
<virtualDirectory path="/" physicalPath="C:\PathToWebSite" />
</application>
<bindings>
<binding protocol="http" bindingInformation=":1151:localhost" />
<binding protocol="http" bindingInformation="*:1151:pswin8mac.local" />
</bindings>
</site>
cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:WindowsInstaller31"
cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:WindowsInstaller45"
# .NET
cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:netframework2"
cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:NETFramework35"
cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:NETFramework4"
# IIS
cmd /C "WebpiCmd\WebpiCmd.exe /Install /AcceptEula /SuppressReboot /Products:IIS7"
@prabirshrestha
prabirshrestha / url decode.cs
Created September 13, 2011 18:55 — forked from anonymous/url decode
if elif madness
public static string UrlDecode(string s)
{
#if WINDOWS_PHONE
return System.Net.HttpUtility.UrlDecode(s);
#elif SILVERLIGHT
return System.Windows.Browser.HttpUtility.UrlDecode(s);
#else
// Since HttpUtility.UrlDecode doesn't exist in Client Framework
// get it from Mono.
// Thank god, mono libraries are licensed under MIT.
@prabirshrestha
prabirshrestha / AccountController.cs
Created July 5, 2011 18:12 — forked from prabirshrestha/AccountController.cs
Facebook Connect with ASP.NET MVC
public class AccountController : Controller
{
public ActionResult Login(string returnUrl, string scope)
{
if (!Url.IsLocalUrl(returnUrl))
{
returnUrl = "/";
}
ViewData["returnUrl"] = returnUrl;
using System.Web;
namespace NetflixDemo
{
public class AppHarborHttpContextWrapper : HttpContextWrapper
{
private readonly HttpContext httpContext;
public AppHarborHttpContextWrapper(HttpContext httpContext) : base(httpContext)
{
@prabirshrestha
prabirshrestha / Readme.txt
Created July 27, 2010 07:25 — forked from dieseltravis/Readme.txt
YUI compressor
Example usage:
...in <head>:
<link rel="stylesheet" type="text/css" href="/YuiCompressor.ashx?css=reset,style" />
...just before the </body>:
<script type="text/javascript" src="/YuiCompressor.ashx?js=main,someotherscript"></script>
Changelog:
2010-02-18: Updated to support HTTP compression