Coder Social home page Coder Social logo

nwcopy's Introduction

nwcopy/nwpaste

The fool proof network copy & paste program. Well, maybe someday.

Usage

Copy data from the clipboard (pbpaste).

> nwcopy -p
/Users/josh/Dropbox/nwcopy/f314eee55161b14f140ee07b358ba63ef54112ac

Paste to STDOUT and the clipboard (pbcopy)

> nwpaste
<Contents of clipboard>

Copy contents of a file to the clipboard (works with binaries)

> nwcopy /path/to/file
/Users/josh/Dropbox/nwcopy/e1c1675f009e65d8571bbab9243660da20a3b2a2

Paste the file to disk

> nwpaste
Pasted to file

Pipe arbitrary whatever to the clipboard

> echo 'pipes work' | nwcopy
/Users/josh/Dropbox/nwcopy/5293e79627710caf507fb9b841df51356650c78d

Paste to STDOUT and the clipboard (pbcopy)

> nwpaste
pipes work

Paste a hash from nwcopy.net (shared or otherwise)

> nwpaste <hash>
Whatever that hash represented

Description

nwcopy takes whatever is in the clipboard (or pipe or filename) and copies it to nwcopy.net. If you don’t have nwcopy.net configured, it will copy to a file in your Dropbox folder ~/Dropbox/nwcopy/<sha1>

nwpaste takes the contents of the most recent file (from nwcopy.net or your Dropbox), prints it to STDIN and puts it in the clipboard.

WTF?

How in the world is this useful?

I constantly want to copy and paste between machines which cannot directly talk to one another. My solution was simple, and this is it. It also happens to be really easy to use.

Is that all?

Is that all? Well, yeah, right now. This is the initial version, and it works! However, here are my plans:

  • Support multiple files with globbing and whatnot.

  • When multiple files are supplied, they should be pasted back with their original filename (tarball?)

  • Whatever folks deem useful.

  • Have some delicious brisket.

nwcopy's People

Contributors

j05h avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

strategist922

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.