$ su postgres
$ psql -U postgres
psql (9.2.4)
Type "help" for help.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
FROM rails:4.2.3 | |
MAINTAINER Renato Filho <[email protected]> | |
ENV HOME /home/app | |
ENV RAILS_ENV development | |
RUN useradd -m -s /bin/bash app | |
RUN gem install -N bundler |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* 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: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Linux-Shell-Script |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |