Code Monkey home page Code Monkey logo

perican's Introduction

perican

perican is a CLI tool to retrieve data from some applications

Table of Contents

Install for developers

Current code is a very alpha and kind of proof-of-concept demonstration. We recommend you not to install via usual gem-style procedure.

  1. Install rbenv + ruby-build (see https://github.com/sstephenson/rbenv#basic-github-checkout for details)
    $ git clone https://github.com/sstephenson/rbenv.git ~/.rbenv
    $ git clone https://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
    # Edit your shell dot files to add some path and environment variables.
        
  2. Install Latest Ruby and bundler
    # Install ruby 2.2.1
    $ rbenv install 2.2.1
    
    # Installation check
    $ rbenv global 2.2.1
    $ ruby -v # -> You will see: ruby 2.2.1...
    
    # Install bundler for your new Ruby
    $ gem install bundler
    $ rbenv rehash
    
    # Get back to your sytem default Ruby if you want
    $ rbenv global system # say, /usr/bin/ruby
    $ ruby -v
        
  3. Clone perican from github
    $ git clone [email protected]:nomlab/perican.git ~/src/perican
        
  4. Set default ruby version in perican project
    $ cd ~/src/perican
    $ echo '2.2.1' > .ruby-version
    $ ruby -v # -> You will see: ruby 2.2.1...
        
  5. Install requied gem packages
    $ cd ~/src/perican
    $ bundle install --path vendor/bundle
        
  6. Setup config.yml
    $ cd ~/src/perican
    $ mkdir -p ~/.config/perican
    $ cp examples/config.yml ~/.config/perican/config.yml
    $ vim ~/.config/perican/config.yml # Detail is explained in next section
        

Setup config.yml

Gmail

MAIL:
  LOGIN: "[email protected]" # Your gmail address
  PASSWD: "XXXXXXXXXXXXXXXXX"        # Your google passward
  SERVER: "imap.gmail.com"           # Do not touch

Evernote

EVERNOTE:
  CONSUMER_KEY: "XXXXXXXXXXXX"
  CONSUMER_SECRET: "XXXXXXXXXXXXXXXXXXXXX"
  ACCESS_TOKEN: "S=XX:U=XXXX:XXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

Slack

SLACK:
  TEAM: "XXXXXXX"                                       # Your slack team name
  TOKEN: "xoxp-XXXXXXXXXX-XXXXXXXXXX-XXXXXXXXXX-XXXXXX" # Get token from https://api.slack.com/web
  CHANNEL: "#general"                                   # perican gets message from this channel
  USERNAME: "XXXXXXXXXXXXXXXXXXXXXXX"                   # Your user name
  COUNT: 20                                             # The number of messages to retrieve at a time

Toggl

TOGGL:
  TOKEN: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX" # Get your API token from https://www.toggl.com/app/profile

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.