summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2015-07-27Automatically create multipastev1.5.0Florian Pritz2-2/+9
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-06-17Use bash regex instead of sed -rv1.4.3Florian Pritz1-2/+3
sed -r is not supported on OS X and using bash actually makes the code easier. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2015-03-03fb-helper: Enable response compressionv1.4.2Florian Pritz1-0/+2
This especially improves speed when displaying long histories. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2014-11-19Remove tempfile in do_uploadv1.4.1Florian Pritz1-0/+1
This would upload the data.* files if one runs `fb -m $url1 $url2` Signed-off-by: Florian Pritz <bluewind@xinu.at>
2014-08-29Support multipastesv1.4Florian Pritz3-12/+79
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2014-08-29Remove one more mention of netrcFlorian Pritz1-1/+0
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2014-07-20Update manpage: deprecate netrc; misc cleanupv1.3.3Florian Pritz1-16/+20
- https instead of http - MiB instead of MB - Tell users to use api keys rathern than netrc Signed-off-by: Florian Pritz <bluewind@xinu.at>
2014-02-19Support combining -n and -t to set the tarball namev1.3.2Florian Pritz2-4/+4
This does change the default from upload to stdin, but I don't care. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-09-08Create all required directories for apikeyv1.3.1Florian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-09-02Fix conflict between --data-urlencode and -Fv1.3.0Florian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-09-02Use bash arrays to allow spaces in apikey file pathFlorian Pritz1-18/+18
This also fixes a bug in the shell uploader which used single quotes around the argument to --data-urlencode which sadly doesn't work at all. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-09-02Document -a and -H in manpageFlorian Pritz1-0/+4
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-08-28Create config dir if neededv1.2.1Florian Pritz1-0/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-08-15fb-helper: Fix improper handling of failing realloc() in load_file()Florian Pritz1-2/+4
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-08-15Makefile: use CC from env if setFlorian Pritz1-1/+1
Allows us to run scan-build Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-08-11Merge branch 'working-split/api-keys' into workingv1.2Florian Pritz3-9/+90
2013-08-11Add -a option to generate a new api keyFlorian Pritz1-2/+50
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-08-11make curlopts and useragent global variablesFlorian Pritz1-2/+5
Needed for apikey patch. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-08-11Add API key supportFlorian Pritz3-6/+36
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-07-28Added file name option for stdin pastes (-n <file name>)v1.1.4Joakim Reinert2-3/+10
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-06-16Fix syntax errors in manpageFlorian Pritz1-1/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-05-11fb-helper: Remove forms array; use curl_formadd directlyv1.1.3Florian Pritz1-19/+16
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-05-11fb-helper: Add help outputFlorian Pritz1-1/+22
It is still meant to be only used as a backend for fb-client, but this makes testing easier. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-05-11Default to httpsFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-02-14Don't save timestamp when gzippingFlorian Pritz1-3/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-01-09fb-helper: exit on unknown option errorv1.1.2Florian Pritz1-0/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-01-09Add debugging supportFlorian Pritz3-2/+22
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2013-01-09fb-helper: Use getoptFlorian Pritz2-21/+37
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-11-27Add timeouts to shell clientv1.1.1Florian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-11-12fb-helper.c: Fix descriptionFlorian Pritz1-1/+1
This is not a script so don't call it one. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-11-09fb.1: Remove reference to fb_username/fb_passwordFlorian Pritz1-1/+1
These options don't exist and shouldn't have been documented. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-10-27Add support for config filev1.1Florian Pritz2-0/+25
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-10-09Lowercase most variable namesFlorian Pritz1-99/+99
I don't like the look of everything being upper case and it certainly complicates writing the variable names. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-10-09Move internal variables further downFlorian Pritz1-10/+10
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-10-07Makefile: Honor LDFLAGSFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-09-22fb-helper: only display progress bar is stderr is a ttyFlorian Pritz1-4/+9
If fb is used in a cronjob we don't care about the progress bar. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-09-22fb-helper: initialise *curl and check before cleaning upFlorian Pritz1-2/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-08-15fix netrc line in help messagev1.0.5Florian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-06-12Fix bug with 0-byte files on Darwinv1.0.4n0nsense/masterFlorian Pritz1-1/+1
Seems like wc -c $file doesn't return "0 $file" on Darwin. wc -c < $file is simpler because it doesn't need cut and works fine, so we just use that. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-05-12Fix date in manpageFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-05-11fb.1: move netrc information into the descriptionFlorian Pritz1-8/+8
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-05-07Replace echo with printfFlorian Pritz1-24/+28
echo is inconsistent across different platforms and this also removes an unneeded fork. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-05-07Replace -n option to echo with | tr -d "\n"Florian Pritz1-1/+1
The echo builtin on darwin doesn't support any options and will output them. References: https://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man1/echo.1.html Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-04-14Makefile: install requires allFlorian Pritz1-1/+1
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-04-11fb.1: upstream now requires accounts, adapt the manpagev1.0.3Florian Pritz1-2/+2
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-04-06Print "better" message when $file can't be readFlorian Pritz1-2/+3
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-04-04Makefile: add PREFIX supportFlorian Pritz1-3/+4
This allows users to easily install to /usr/local, instead of forcing them to change 3 variables. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-04-04Error on 0-byte filesFlorian Pritz2-0/+10
No point in uploading a really empty file and it might even cause confusion to see an empty page when clicking the link. Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-04-04fb-helper: properly clean up upon errorFlorian Pritz1-5/+10
Signed-off-by: Florian Pritz <bluewind@xinu.at>
2012-03-15Makefile: get rid of MY_CFLAGS; allow users to override CFLAGSFlorian Pritz1-3/+2
CFLAGS=-O0 make; will still work as expected make CFLAGS=-O0; allows to completely override the flags, ignoring what is set in the makefile. Signed-off-by: Florian Pritz <bluewind@xinu.at>