Skip to content

Instantly share code, notes, and snippets.

@krunalm
krunalm / NlogSampleTextLogger
Created August 10, 2013 09:51
NLog => Sample Text Logger Class
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NLog;
namespace BrowserSessionTest
{
public static class Utils
{
@krunalm
krunalm / mono_installation
Created March 26, 2014 10:22
Installing lastest mono on Centos 6
$yum install bison gettext glib2 freetype fontconfig libpng libpng-devel libX11 libX11-devel glib2-devel libgdi* libexif glibc-devel urw-fonts java unzip gcc gcc-c++ automake autoconf libtool make bzip2 wget
$cd /usr/local/src
$wget http://download.mono-project.com/sources/mono/mono-3.0.1.tar.bz2
$tar jxf mono-3.0.1.tar.bz2
$cd mono-3.0.1
@krunalm
krunalm / appveyor deplyment name with version
Created June 5, 2014 10:12
appveyor deplyment name with version
function ZipFiles($zipfilename, $sourcedir)
{
[Reflection.Assembly]::LoadWithPartialName("System.IO.Compression.FileSystem")
$compressionLevel = [System.IO.Compression.CompressionLevel]::Optimal
[System.IO.Compression.ZipFile]::CreateFromDirectory($sourcedir, $zipfilename, $compressionLevel, $false)
}
# Step 1 - Sign all output assemblies
# TODO
@krunalm
krunalm / process memory ps
Created June 5, 2014 10:21
process memory powershell ps
$m = ps chrome | measure PM -Sum ; ("Chrome {0:N2}MB " -f ($m.sum / 1mb))
@krunalm
krunalm / EncouragementList
Created September 25, 2014 09:30
EncouragementList
Awesome !!
It's you KM..!
Mindblowing....
Sooooo Gooooood!!
Great!
Nice Job 😃!
🏆 Way to go!
Wow, nice change 👌!
So good ☝!
Bravo 👏!
@krunalm
krunalm / courseApi.js
Created February 21, 2017 14:15 — forked from coryhouse/courseApi.js
Mock CourseAPI for "Building Applications with React and Flux" on Pluralsight
"use strict";
//This file is mocking a web API by hitting hard coded data.
var courses = require('./courseData').courses;
var _ = require('lodash');
//This would be performed on the server in a real app. Just stubbing in.
var _generateId = function(course) {
return course.title.replace(' ', '-');
};
@krunalm
krunalm / courseData.js
Created February 21, 2017 14:15 — forked from coryhouse/courseData.js
Course data for "Building Applications with React and Flux" on Pluralsight
module.exports = {
courses: [
{
id: "clean-code",
title: "Clean Code: Writing Code for Humans",
watchHref: "http://www.pluralsight.com/courses/writing-clean-code-humans",
author: {
id: "cory-house",
name: "Cory House"
},
@krunalm
krunalm / m-list
Last active March 1, 2017 13:51
movies sci-fi test data
District 9 2009
Children of Men (2006)
Serenity (2005)
Edge of Tomorrow (2014)
Looper (2012)
Mr. Nobody (2009)
The Mist (2007)
Watchmen (2009)
Chronicle (2012)
Cloud Atlas (2012)
@krunalm
krunalm / vs_community-2017.txt
Created March 10, 2017 14:21
Command for VS Community 2017 - Offline Installer Download
Command for VS Community 2017 - Offline Installer Download
--------
Workload included: Desktop Application Development, .Net Core Development and Web Development
-----------
vs_community.exe --layout C:\vs2017offline --add Microsoft.VisualStudio.Workload.ManagedDesktop Component.GitHub.VisualStudio Microsoft.Net.Component.3.5.DeveloperTools Microsoft.VisualStudio.Component.LinqToSql Microsoft.VisualStudio.Component.TestTools.Core Microsoft.VisualStudio.Component.TypeScript.2.0 Microsoft.VisualStudio.Workload.NetWeb Microsoft.VisualStudio.Workload.NetCoreTools --lang en-US
@krunalm
krunalm / m-list.json
Created March 16, 2017 11:44
m-list in JSON format
[
{
"name": "Arrival",
"year": 2016
},
{
"name": "Suicide Squad",
"year": 2016
},
{