GithubHelp home page GithubHelp logo

mkthrowie's Introduction

mkthrowie

Introduction

mkthrowie.sh is simple bash script that lets you 'drag-n-drop' files simply copypasting between terminals.

It creates a gzipped and base64 encoded tar file to the stdout that you can copy to other hosts bash prompt to deploy the files given as arguments. I call this encoded tar as 'throwie'. mkthrowie makes a throwie of itself if no arguments are given.

Usage

$ ./mkthrowie.sh  
mkthrowie.sh version 0.02
-------------------------
              vvvvvv--- copy throwie below ---vvvvvv
stty -echo;base64 -d<<_EOF|tar xzv;stty echo
H4sIAC9beVYCA+3STU/CQBAG4F7dXzFCQ9RkoXy0RoHExKAhUTASPUjQtHWVRuiStoB8/Xe3pRiMejHxQPI+l9nOTnc7k+YLw7eoH8ipJ/JhX/sXhnJsmipaRsUqb8VE0SiWtGLJKlsl06yYlqYyZtnQSNslaTO
fcUdk9wuO5xccO+wzdt+47TTbrbqRN4qMhSIiLsmXY18tGTtvX3Xq+kEYRTMKvbk4TDMLFe6uW51Tniw72ewRrVaMCbcvKbP9e9FEBKEnfdLTmzJpEf/NpoC+mCTUNrlyNKP0AnLEQE5Jpdf7m3eTD+bxuqraFF
aF+HOt9tRoXywjO6D3+aSalMQVGdbtkp4l/hqRQb0e5XK0YHuXD82bOj+huJ5zfzwUgedyOfVF/DySQWQ73sCL73HnL8RVkvQzWtLmwinp8WjYipbLPx9o/HRg2mTczs/Dekx8G5btyImIh7XezzANAAAAAAAAA
AAAAAAAAAAAAAB2zAfNJn0cACgAAA==
_EOF
              ^^^^^^--- copy throwie above ---^^^^^^

Xclip support

mkthrowie.sh will check if it can use a working xclip binary. If it can, it will pipe its output to xclip to copy it to the default clipboard. If xclip is not available it will print the base64ed output between 'cut' markers.

mkthrowie's People

Contributors

endreszabo avatar

Watchers

 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.