Skip to content

Instantly share code, notes, and snippets.

View blakshmikanth's full-sized avatar

Lakshmikanth blakshmikanth

View GitHub Profile
@blakshmikanth
blakshmikanth / sysctl.conf
Created September 22, 2021 10:22 — forked from techgaun/sysctl.conf
Sysctl configuration for high performance
### KERNEL TUNING ###
# Increase size of file handles and inode cache
fs.file-max = 2097152
# Do less swapping
vm.swappiness = 10
vm.dirty_ratio = 60
vm.dirty_background_ratio = 2
@blakshmikanth
blakshmikanth / JsonMessageFormatter.cs
Created August 15, 2016 10:14 — forked from jchadwick/JsonMessageFormatter.cs
MSMQ Message JSON Formatter
using System;
using System.IO;
using System.Messaging;
using System.Text;
using Newtonsoft.Json;
public class JsonMessageFormatter : IMessageFormatter
{
private static readonly JsonSerializerSettings DefaultSerializerSettings =
new JsonSerializerSettings {
string settings = File.ReadAllText(@"C:\Users\johannes.rudolph\Documents\Visual Studio 2015\Settings\jrMonokai.vssettings");
var map = new Dictionary<string, string>()
{
{"Brace Matching (Rectangle)", "brace matching" },
{"String(C# @ Verbatim)", "string - verbatim" },
{"User Types", "class name"},
{"User Types(Enums)", "enum name"},
{"User Types(Interfaces)", " interface name"},
{"User Types(Delegates)", "delegate name"},
@blakshmikanth
blakshmikanth / 0_reuse_code.js
Created August 29, 2014 11:24
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console