Git Product home page Git Product logo

wikirofs's Introduction

WikiroFS

Wikiro is a virtual filesystem designed to mount Wikipedia in your filesystem.

Installation

> wget "https://github.com/loureirorg/wikirofs/releases/download/0.1.6/mount.wikiro"
> mv mount.wikiro /usr/sbin
> chmod +x /usr/sbin/mount.wikiro

Installation - Gem

> sudo su
> gem install wikirofs

Usage

# mount (eg. in /mnt/test)
> mount.wikiro /mnt/test

# default wikis
> ls /mnt/test
wikipedia-ceb
wikipedia-de
wikipedia-en
wikipedia-es
...

# main articles
> ls /mnt/test/wikipedia-en
Abacus.txt
Abiogenesis.txt
Abolitionism.txt
Abortion.txt
...

# not listed wikis
> mkdir /mnt/test/wikipedia-simple
> ls /mnt/test/wikipedia-simple
Abraham_Lincoln.txt
Acceleration.txt
Acid.txt
Adam_Smith.txt
...

# view article (even if it's not listed)
> cat /mnt/test/wikipedia-en/Moon.txt
{{about |Earths natural satellite |moons in general |Natural satellite |other uses}}
{{pp-semi-protected |small=yes}}
{{pp-move-indef}}
{{Use dmy dates|date=January 2017}}
...

# remove a wiki from the list (it doesn't affect the real Wikipedia)
> rmdir /mnt/test/wikipedia-ceb
> ls /mnt/test
wikipedia-ceb
wikipedia-de
wikipedia-en
...

# remove article from the list (it doesn't affect the real Wikipedia)
> rm /mnt/test/wikipedia-en/Abacus.txt
> ls /mnt/test/wikipedia-en
Abiogenesis.txt
Abolitionism.txt
Abortion.txt
...

# umount
> sudo umount /mnt/test

Compiling (with rb2exe)

> sudo su
> bundle install
> rb2exe main.rb --add=. --daemon -o mount.wikiro

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/loureirorg/wikirofs.

wikirofs's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

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.