Giter VIP home page Giter VIP logo

silverkey's Introduction

Name

Silver key

Table of contents

What's is it?

Check the video, worth a thousand words.

IMAGE ALT TEXT

Current state

Proof of Concept

Tested only on Ubuntu 16.04, but it should work on any other linux, see requirements section

WARNING

IT'S INSECURE. Use at your own risk

All data stored in plain text, connection between client<->server NOT encrypted

Web ui and etcd api installed without any authentication

Requirements

docker (version >= 1.13.0)

docker-compose (version >= 1.11.2)

X11 compatibility server (like xorg, x11-server)

Prechecks

user $ docker ps | head -1
CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES

If you see error like

Got permission denied while trying to connect to the Docker daemon socket at unix:///var/run/docker.sock: Get
http://%2Fvar%2Frun%2Fdocker.sock/v1.35/containers/json: dial unix /var/run/docker.sock: connect: permission denied

please follow the instructions https://docs.docker.com/install/linux/linux-postinstall/#manage-docker-as-a-non-root-user

Install in single-user mode

user@localhost $ git clone https://github.com/metacoma/silverkey
user@localhost $ cd silverkey
user@localhost $ docker-compose pull
user@localhost $ docker-compose up -d
user@localhost $ xhost +local:docker

Add example key

user@localhost $ curl -XPUT -s localhost:2379/v2/keys/i/myphone -d value=873084503445
{"action":"set","node":{"key":"/myphone ","value":"873084503445","modifiedIndex":31,"createdIndex":31}}

ETCD api v2 available on http://localhost:2379/v2/keys

Also you can manage key/value through web interface http://localhost:2888

bind hotkey (for example F2) to run next command

docker exec silverkey_gui_1 silverkey.sh

Install in multi-user mode

Run these commands on the server (in this example ip addr is 172.16.172.4)

user@localhost $ ssh 172.16.172.4
[email protected] $ git clone https://github.com/metacoma/silverkey
[email protected] $ cd silverkey
[email protected] $ docker-compose pull
[email protected] $ docker-compose up -d ui etcd

WEB ui for etcd available on http://172.16.172.4:2888 ETCD api v2 available on http://172.16.172.4:2379

Install on the clients

user@localhost $ git clone https://github.com/metacoma/silverkey
user@localhost $ cd silverkey
user@localhost $ docker-compose pull
user@localhost $ docker-compose run --name silverkey_gui_1 -d -e SILVERCOMPLETE_HOST=172.16.172.4 gui
user@localhost $ xhost +local:docker

Add example key:

user@localhost $ curl -XPUT -s 172.16.172.4:2379/v2/keys/i/myphone -d value=873084503445
{"action":"set","node":{"key":"/myphoneм-d","value":"873084503445","modifiedIndex":31,"createdIndex":31}}

Also you can manage your key/value through web interface http://172.16.172.4:2888

bind hotkey (for example F2) to run next command

docker exec silverkey_gui_1 silverkey.sh

How to use it

It's very easy, just press your hotkey and type the keywords, the value is auto-inserted in your current text edit form, like termnial console, google drive documents, etc...

Uninstall

cd silverkey
docker-compose stop
docker-compose rm -f

silverkey's People

Contributors

metacoma avatar

Watchers

Mikhail Ivanov 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.