Skip to content

Instantly share code, notes, and snippets.

View ccsalvesen's full-sized avatar

Carl-Christian Salvesen ccsalvesen

View GitHub Profile
@ccsalvesen
ccsalvesen / ccc
Created March 12, 2015 08:58
copy files and directories to clipboard. paste in a terminal window.
#!/bin/bash
if [[ $# -lt 1 ]]; then
echo "${0} - copy selfextracting archive of files to clipboard."
echo ""
echo "Syntax: $0 <file(s)>"
exit 1
fi
TEMPFILE=$(mktemp)
### Keybase proof
I hereby claim:
* I am ccsalvesen on github.
* I am ccsalvesen (https://keybase.io/ccsalvesen) on keybase.
* I have a public key whose fingerprint is 272F 3064 3439 C0B4 70C0 C6DA AA76 BA56 50CB 18A6
To claim this, I am signing this object: