Skip to content

Instantly share code, notes, and snippets.

View mrchief's full-sized avatar
🎯
Focusing

Hrusikesh Panda mrchief

🎯
Focusing
View GitHub Profile
@mrchief
mrchief / .git_ignore
Created May 17, 2012 17:21 — forked from JamieHouston/.git_ignore
git global ignore file for visual studio/windows
#OS junk files
[Tt]humbs.db
*.DS_Store
#Visual Studio files
*.[Oo]bj
*.user
*.aps
*.pch
*.vspscc
@mrchief
mrchief / ServiceStackJsonFormatter.cs
Created November 9, 2012 05:11
Swap ASP.NET WebAPI JsonFormatter with ServiceStack.Text JSON formatter
public class ServiceStackJsonFormatter : MediaTypeFormatter
{
public ServiceStackJsonFormatter()
{
SupportedMediaTypes.Add(new MediaTypeHeaderValue("application/json"));
SupportedEncodings.Add(new UTF8Encoding(false, true));
SupportedEncodings.Add(new UnicodeEncoding(false, true, true));
}
@mrchief
mrchief / Deploy-Windows-Service-Via-MSBuild.proj.xml
Last active June 26, 2024 09:37
MSBuild Script to deploy Windows Service to remote or local machine
<Project DefaultTargets="CopyOutputs;DeployService" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">
<!-- These settings control what the service's name, description etc appear in services.msc task panel. -->
<PropertyGroup Label="ServiceMetaData">
<ServiceName>ShinyNewService</ServiceName>
<ServiceDisplayName>Shiny New Service</ServiceDisplayName>
<ServiceDescription>A shiny new service, that changes the world for the greater good.</ServiceDescription>
</PropertyGroup>
<Choose>
@mrchief
mrchief / UnescapeUrl
Created April 1, 2013 19:23
If you have host level blocking for ad domains, and those deal clicks land you to an "This page can't be displayed Error" because they can't be re-directed as intended, then this bookmarklet extracts the encoded Url and reloads the page with the direct Url.
javascript: (function(){var href=window.location.href;var loc=href.indexOf('url=');if(loc>0){var endLoc=href.indexOf('&',loc+4);endLoc=endLoc>0?endLoc:href.length;window.location.href=unescape(href.substring(loc+4,endLoc));}})()
@mrchief
mrchief / LICENSE.md
Last active October 12, 2024 15:35
Add "Open with Sublime Text 2" to Windows Explorer Context Menu (including folders)

MIT License

Copyright (c) [year] [fullname]

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

body {
padding: 0;
margin: 0;
}
.wrapper {
width: 100%;
margin: 0 auto;
body {
padding: 0;
margin: 0;
}
.wrapper {
width: 100%;
margin: 0 auto;
@mrchief
mrchief / jsbin.tewitowa.css
Created June 25, 2014 19:27
Glassy Auto Ajax Bootstrap Overlay
#pleaseWaitDialog .modal-body {
text-align: center;
height: 100%;
}
.bar {
text-align: center;
color: #FFF;
text-shadow: 0px 1px 2px rgba(0,0,0,0.25);
line-height: 5em;
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
<div id="bloodhound">
<input class="typeahead" type="text" placeholder="States of USA">
</div>