pbgopy

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 28, 2020 License: MIT Imports: 5 Imported by: 0

README

pbgopy

Release go.dev reference

pbgopy acts like pbcopy/pbpaste but for multiple devices. It lets you share data across devices like you copy and paste.

Demo

Installation

Binary releases are available through here.

MacOS
brew install nakabonne/pbgopy/pbgopy
RHEL/CentOS
rpm -ivh https://github.com/nakabonne/pbgopy/releases/download/v0.1.0/pbgopy_0.1.0_linux_amd64.rpm
Debian/Ubuntu
wget https://github.com/nakabonne/pbgopy/releases/download/v0.1.0/pbgopy_0.1.0_linux_amd64.deb
apt install ./pbgopy_0.1.0_linux_amd64.deb
Go
go get github.com/nakabonne/pbgopy
Docker
docker run --rm nakabonne/pbgopy pbgopy help

Usage

First up, you start the pbgopy server which works as a shared clipboard for devices. It listens on port 9090 by default. You must allow access to this port for each device you want to share data with.

pbgopy serve

Put the address of the host where the pbgopy serve process is running into PBGOPY_SERVER environment variable.

export PBGOPY_SERVER=http://host.xz:9090
pbgopy copy <foo.png

Then paste it on another device:

export PBGOPY_SERVER=http://host.xz:9090
pbgopy paste >foo.png
TTL

You can set TTL for the cache. Give 0s for disabling it. Default is 24h.

pbgopy serve --ttl 10m
End-to-end encryption

pbgopy comes with an ability to encrypt/decrypt with a common key, hence allows you to perform end-to-end encryption without working with external tools.

pbgopy copy -k 32-byte-or-less-string <secret.txt

Then decrypt with the same key:

pbgopy paste -k 32-byte-or-less-string

Inspired By

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package cache provides an interface to temporarily store content on a pbgopy server.
Package cache provides an interface to temporarily store content on a pbgopy server.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL