Skip to content

Instantly share code, notes, and snippets.

View krishnenc's full-sized avatar

krishnen chedambarum krishnenc

View GitHub Profile
@krishnenc
krishnenc / wildfly-install.sh
Created April 21, 2017 05:47 — forked from sukharevd/wildfly-install.sh
Script to install JBoss Wildfly 10.x as service in Linux
#!/bin/bash
#title :wildfly-install.sh
#description :The script to install Wildfly 10.x
#more :http://sukharevd.net/wildfly-8-installation.html
#author :Dmitriy Sukharev
#date :2016-06-18T02:45-0700
#usage :/bin/bash wildfly-install.sh
#tested-version1 :10.0.0.CR3
#tested-distros1 :Ubuntu 15.10; Debian 7,8; CentOS 7; Fedora 22
#tested-version2 :10.0.0.Final
@krishnenc
krishnenc / JBoss Admin
Last active December 20, 2015 08:49
JBoss Admin
http://docs.jboss.org/jbossas/6/Admin_Console_Guide/en-US/pdf/Admin_Console_Guide.pdf
https://community.jboss.org/blogs/amartin-blog/2012/02/08/how-to-set-up-a-postgresql-jdbc-driver-on-jboss-7
http://localhost:9990/console/App.html#server-overview
create-user.sh
Install Maven
https://github.com/matschaffer/knife-solo
@krishnenc
krishnenc / postgresql-sharding
Last active December 12, 2017 10:28
Postgresql Sharding
http://www.depesz.com/2011/12/02/the-secret-ingredient-in-the-webscale-sauce/
http://www.craigkerstiens.com/2012/11/30/sharding-your-database/
https://github.com/markokr/pghashlib
http://www.niwi.be/2013/03/06/table-partitioning-with-postgresql/
https://blog.engineyard.com/2013/scaling-postgresql-performance-table-partitioning
http://instagram-engineering.tumblr.com/post/10853187575/sharding-ids-at-instagram
http://instagram-engineering.tumblr.com/post/40781627982/handling-growth-with-postgres-5-tips-from-instagram
http://media.postgresql.org/sfpug/instagram_sfpug.pdf
@krishnenc
krishnenc / gist:2888230
Created June 7, 2012 11:04
Redis Feed added to Gatling DSL
package other
import com.excilys.ebi.gatling.core.Predef._
import com.excilys.ebi.gatling.http.Predef._
import com.excilys.ebi.gatling.jdbc.Predef._
import com.excilys.ebi.gatling.http.Headers.Names._
import com.excilys.ebi.gatling.redis.Predef.redisFeeder
import akka.util.duration._
import bootstrap._
import com.redis._
@krishnenc
krishnenc / gist:2888208
Created June 7, 2012 10:59
byteArrayBody added to Gatling DSL to enable injection of custom byte array bodies
package other
import com.excilys.ebi.gatling.core.Predef._
import com.excilys.ebi.gatling.http.Predef._
import com.excilys.ebi.gatling.jdbc.Predef._
import com.excilys.ebi.gatling.http.Headers.Names._
import com.excilys.ebi.gatling.redis.Predef.redisFeeder
import akka.util.duration._
import bootstrap._
import com.redis._
@krishnenc
krishnenc / AkkaUnfilteredSample.scala
Created March 15, 2012 13:28 — forked from chrsan/AkkaUnfilteredSample.scala
Akka 2.0 unfiltered RESTful sample
package akka.unfiltered
import akka.actor._
import akka.dispatch.Future
import akka.pattern.ask
import akka.util.duration._
import akka.util.Timeout
import unfiltered.Async
import unfiltered.request._
@krishnenc
krishnenc / lock.c
Created May 26, 2011 07:39
Creating and releasing a lock file
#include <stdio.h>
#include <fcntl.h>
#include <stdlib.h>
#include <unistd.h>
#define PACKAGE "crlock"
//create the lock on the postgresql server
int logos_getlock_file()