Skip to content

Instantly share code, notes, and snippets.

Srikanth Jeevanandan srikanthjeeva

Block or report user

Report or block srikanthjeeva

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
srikanthjeeva /
Created Apr 12, 2017
How to return Boolean values from Perl dancer
# perl dancer includes JSON::XS
# so returning JSON::XS:
# to return true, JSON::XS::true
get '/works' => {
return to_json {success => JSON::XS::true};
srikanthjeeva / index.js
Last active Jun 1, 2016
Disable full text search for an Elasticsearch Field
View index.js
//PUT indexName
"mappings": {
"type": {
"properties": {
"filepath": {
"type": "string",
"index": "not_analyzed"
srikanthjeeva / elasticsearch_setup1.rb
Last active Jul 25, 2019
How to make a production setup of Elasticsearch Custer in Centos
View elasticsearch_setup1.rb
# OS Requirements: Centos 6+ & Java 1.8+
Installing Java
Download JDK from :
srikanthjeeva / 1.js
Last active Apr 18, 2016
Increase memory for node.js server
View 1.js
//while starting server pass --max-old-space-size=1024.
//this allocates 1024MB to node.js which is 1GB. Increase the number according to your hardware needs.
node --max-old-space-size=1024 controllers/aggregate_counters.js
// if using forever
forever start -c 'node --max-old-space-size=1024' your_script.js
srikanthjeeva / https GET request with Basic Auth in Ruby
Created Jan 28, 2015
https GET request with Basic Auth in Ruby
View https GET request with Basic Auth in Ruby
require 'net/http'
require 'net/https'
require 'uri'
uri = URI('')
Net::HTTP.start(, uri.port,
:use_ssl => uri.scheme == 'https',
:verify_mode => OpenSSL::SSL::VERIFY_NONE) do |http|
srikanthjeeva / DHTMLX Dynamic load and pagination
Created Jan 22, 2015
DHTMLX Dynamic load and pagination
View DHTMLX Dynamic load and pagination
//Must include these DHTMLX Pro Javascripts
View HTML file
<div id='grid-region'>
<div class="loading-image" id="table-ajax-loader"> </div> <!-- Add a Spinner if needed -->
<div> <!-- Style this if needed -->
<div id="pagingArea"></div>&nbsp;
<div id="infoArea"></div>
srikanthjeeva / gist:78908bf6173039f7871c
Last active Aug 29, 2015
CSS Tricks - Add a pointer
View gist:78908bf6173039f7871c
/* Display An arrow mark */
content: "";
display: block;
position: relative;
top: 20px;
left: -20px;
width: 0;
height: 0;
You can’t perform that action at this time.