Skip to content

Instantly share code, notes, and snippets.

View rajeevkannav's full-sized avatar

Rajeev Sharma rajeevkannav

View GitHub Profile
@rajeevkannav
rajeevkannav / Starter Help
Last active November 3, 2017 11:06
React Native Starter Help
react-native init AppLicationName
cd AppLicationName
{
// .vscode/settings.json
// Place your settings in this file to overwrite default and user settings.
"prettier.eslintIntegration": true,
"editor.formatOnSave": true
}
@rajeevkannav
rajeevkannav / Dockerfile
Created November 18, 2016 14:25 — forked from renatosousafilho/Dockerfile
Deploy com Mina, Docker e Docker Compose
FROM rails:4.2.3
MAINTAINER Renato Filho <renatosousafilho@gmail.com>
ENV HOME /home/app
ENV RAILS_ENV development
RUN useradd -m -s /bin/bash app
RUN gem install -N bundler
/* Invoke sync with the custom options, which enables user interaction.
For customizing the sync behavior, see SyncOptions in the CodePush documentation. */
window.codePush.sync(
function (syncStatus) {
switch (syncStatus) {
// Result (final) statuses
case SyncStatus.UPDATE_INSTALLED:
console.log("The update was installed successfully. For InstallMode.ON_NEXT_RESTART, the changes will be visible after application restart. ");
break;
case SyncStatus.UP_TO_DATE:
index >= 0 && index < size_used_:Error:Assert failed:in file ../ccutil/genericvector.h, line 512
/home/rajeev/.rvm/gems/ruby-2.0.0-p598/gems/tesseract-ocr-0.1.8/lib/tesseract/api.rb:157: [BUG] Segmentation fault
ruby 2.0.0p598 (2014-11-13 revision 48408) [x86_64-linux]
-- Control frame information -----------------------------------------------
c:0007 p:---- s:0028 e:000027 CFUNC :get_utf8_text
c:0006 p:---- s:0026 e:000025 IFUNC
c:0005 p:0018 s:0024 e:000023 METHOD /home/rajeev/.rvm/gems/ruby-2.0.0-p598/gems/tesseract-ocr-0.1.8/lib/tesseract/api.rb:157
c:0004 p:0040 s:0019 e:000018 METHOD /home/rajeev/.rvm/gems/ruby-2.0.0-p598/gems/tesseract-ocr-0.1.8/lib/tesseract/engine.rb:151
c:0003 p:0032 s:0011 e:000010 LAMBDA /home/rajeev/.rvm/gems/ruby-2.0.0-p598/gems/call-me-0.0.2.3/lib/call-me/named.rb:207 [FINISH]
Linux-Shell-Script
@rajeevkannav
rajeevkannav / RELK.sh
Last active August 29, 2015 14:24 — forked from adionditsak/RELK.sh
#/bin/bash
##########################################################
### INTRODUCTION
##########################################################
: '
Install and configure R (Redis) + ELK server from scratch on CentOS 6.5.
* Logstash version 1.4.2
* Elasticsearch version 1.3.2
@rajeevkannav
rajeevkannav / pdf2htmlEX.sh
Last active March 29, 2022 18:28
Install CMake, pkg-config,GNU Getopt,GCC,poppler,fontforge,pdf2htmlEX in Ubuntu 15.05
#!/bin/bash
# Ubuntu Developer Script For pdf2htmlEx
# Created by Rajeev Kannav Sharma
# http://rajeevkannav.github.io/
#
#
# Downloads and configures the following:
#
# CMake, pkg-config
# GNU Getopt
class API::V1::BaseController < ApplicationController
skip_before_filter :verify_authenticity_token
before_filter :cors_preflight_check
after_filter :cors_set_access_control_headers
def cors_set_access_control_headers
headers['Access-Control-Allow-Origin'] = '*'
headers['Access-Control-Allow-Methods'] = 'POST, GET, PUT, DELETE, OPTIONS'

Postgres 9.2 - Install, Setup and Quick Reference

Set the default template to UTF8

$ su postgres
$ psql -U postgres
psql (9.2.4)
Type "help" for help.
@rajeevkannav
rajeevkannav / Ubuntu Developer Script For Ionic Framework
Created October 29, 2014 06:17
Ubuntu Developer Script For Ionic Framework
#!/bin/bash
# Ubuntu Developer Script For Ionic Framework
# Created by Nic Raboy
# http://www.nraboy.com
#
#
# Downloads and configures the following:
#
# Java JDK
# Apache Ant