dead simple way to copy paste your stdin to gist.github.com
$ npm install -g ghcopy$ ghcopy-authorizeprompt: username: drsocketybearsocksprompt: password:"t": "sometoken"
a file called
~/.ghcopy containing your token was created. if you are not in windows the permissions have been set so only you can read and write on it. it does not store your username.
if you are not comfortable with this you can create your token manually with curl and specify it each time you invoke ghcopy.
you can also specify all the other options here if you like. you might find that useful.
cat ~/.ssh/id_rsa.pub 2>&1 | ghcopy
why did i add
2>&1 ? cause some scripts will error out, and you want to capture that.
anything piped to ghcopy on stdin will be sent to a new gist.
Options:-d, --description description for this gist [default: "gist created by github.com/dscape/ghcopy"]-v, --verbose output to console while creating the gist [boolean] [default: true]-f, --filename filename for the file pasted in this gist [default: "ghcopy.txt"]-p, --public boolean defining if this gist should be public or not [boolean] [default: false]-o, --open boolean defining if we should open it in a browser [boolean] [default: true]-t, --token define a github token [required] [default: "84c90072d47a61c0d0e51c11c42896e0bf7f8be6"]-h, --help this message
everyone is welcome to contribute. patches, bug-fixes, reporters, new features.
git checkout -b feature_name
git push origin feature_name
git clone git://github.com/dscape/ghcopy.git
(oO)--',- in caos
copyright 2012 nuno job <nunojob.com>
licensed under the apache license, version 2.0 (the "license"); you may not use this file except in compliance with the license. you may obtain a copy of the license at
unless required by applicable law or agreed to in writing, software distributed under the license is distributed on an "as is" basis, without warranties or conditions of any kind, either express or implied. see the license for the specific language governing permissions and limitations under the license