Coder Social home page Coder Social logo

cap's Introduction

cap

Quickly capture stream-of-thought text to a timestamped sqlite database.

CircleCI

use

$ cap "some text you want to remember"
# or:
$ echo "some text you want to remember" | cap
# or:
$ some_program_with_useful_output | cap

This inserts the text into a sqlite database that by default lives at ~/cap.db. You can make your own database in any other location, and then alias cap to specify your custom location like cap -l /some/other/location/cap.db. The name of the db is not significant, and is only a default.

You can then view your data with cap_viewer (a simple webapp) or query it like:

$ sqlite3 ~/cap.db
sqlite> SELECT * FROM entries

The schema of the entries table is:

CREATE TABLE IF NOT EXISTS entries (
  id INTEGER PRIMARY KEY AUTOINCREMENT,
  body TEXT,
  created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP
)

install

$ brew install sqlite
$ git clone [email protected]:ckampfe/cap.git
$ cd cap
$ cargo install --path . --force

help

clark$> cap -h
cap 0.1.0
Clark Kampfe <[email protected]>

USAGE:
    cap [OPTIONS] [entry]

FLAGS:
    -h, --help       Prints help information
    -V, --version    Prints version information

OPTIONS:
    -l, --database-location <db_location>

ARGS:
    <entry>

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.