summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
10 daysadd support for zen.jturnerusa.dev/pasteadd-host/zen.jturnerusa.devJohn Turner
2024-03-11Remove another superfluous colonHeiko Becker
2024-03-11fix typo and formattingJonas Stein
Changed Url to URL Adjusted spacing Dropped superflous colons Old style: wgetpaste -S Services supported: (case sensitive): Name: | Url: ==========|================= 0x0 | http://0x0.st New style: wgetpaste -S Services supported: (case sensitive): Name | URL ==========|================= 0x0 | http://0x0.st
2024-03-11fix gists raw urlkannar
Previous pattern: https://gist.github.com/raw/<organization_label>/<gist_id> is now http 404 New pattern looks to be: https://gist.github.com/<organization_label>/<gist_id>/raw which is http 200
2023-11-10Added --quiet flagRichard-Rogalski
Signed-off-by: Richard Rogalski <rrogalski@firemail.cc> Closes: #19
2023-11-10test_ansi: add -A to the testsOskari Pirhonen
2023-11-10Add -A/--ansiOskari Pirhonen
Don't strip ANSI codes.
2023-11-10Change arg parsing priorityOskari Pirhonen
Read config files before parsing CLI args. Allows all options to be set via config and overridden on the CLI.
2023-10-18Add new service - paste.gentoo.zipChristopher Fore
Specified in the code with `pgz` and in the cli for usage and brevity.
2023-07-30Disable sprungeOskari Pirhonen
Sprunge seems to have recently died. Disable it by removing it from the service list, but keep the core bits in case it decides to come back. RIP ;(
2023-05-25Update to actions/checkout@v3Heiko Becker
Avoids a warning about Node.js 12 actions being deprecated.
2023-01-19Update actions rulesOskari Pirhonen
- Run actions on PR's as well as pushes - Bump run-test-ansi to `ubuntu-latest` (which is 22.04 at the time of writing)
2022-11-25wgetpaste: respect TMPDIRSam James
Signed-off-by: Sam James <sam@gentoo.org>
2022-11-25test: normalise copyright headerSam James
Signed-off-by: Sam James <sam@gentoo.org>
2022-11-25test: use portable bash shebangSam James
Signed-off-by: Sam James <sam@gentoo.org>
2022-11-25test: respect TMPDIR in mktemp (pass --tmpdir)Sam James
Signed-off-by: Sam James <sam@gentoo.org>
2022-11-21Increase version to 2.33 for upcoming releaseHeiko Becker
2022-11-21Fix small typoHeiko Becker
Found by codespell.
2022-11-21Create test runner for ANSI strippingOskari Pirhonen
2022-11-21Add -N/--no-ansiOskari Pirhonen
Strip ANSI codes using app-text/ansifilter Closes: #34
2022-11-21change default service to bpaste from dpasteJohn Turner
dpaste intermittently fails DNSSEC authentication which causes it to be inaccessible for people who have DNSSEC enabled. Other services do not seem to have this issue, and bpaste seems to be a reasonable default.
2021-06-02Increase version to 2.32Heiko Becker
Also for wgetpaste.spec this time ;-).
2021-06-02Increase version to 2.31 for upcoming releaseHeiko Becker
Closes #27.
2021-06-01Improve hard skip formatxxc3nsoredxx
Convert from array to map, service -> reason. Printing the reason as part of the hard skip message makes the output self-documenting.
2021-06-01Add Vim swap file to .gitignorexxc3nsoredxx
2021-06-01Test for expected vs unexpected 401xxc3nsoredxx
AUTH_SKIPS is a list of services for which an HTTP 401 is an expected response if an auth token isn't given. 401 for a service outside of the list means a changed/broken API. Invert the `if ! diff then fail else success` for readability.
2021-06-01Explicitly test DL_DIR/*.txtxxc3nsoredxx
DL_DIR/* tries to diff error logs with the test data if they exist.
2021-06-01Fix typo in test dataxxc3nsoredxx
2021-06-01Create GitHub Actionxxc3nsoredxx
Automatically runs test/test.sh when code is pushed to the repo.
2021-06-01Differentiate between skipsxxc3nsoredxx
Slightly different behavior based on if it's a hard skip, auth skip, or post/download failure skip. HARD_SKIPS array to control which services are always skipped. Add total skips and fail logs to summary.
2021-06-01Quote directory variablesxxc3nsoredxx
2021-06-01Create test scriptxxc3nsoredxx
Posts test/test.txt onto any pastebins it can. Downloads the resulting pate into a temp dir as /tmp/wgetpaste_test.XXXXX/<service>.txt. Runs diff(1) (ignoring trailing whitespace) to compare the download with the test data.
2021-04-22Do not interpret content when posting to dpasteNicholas Vinson
'echo -e' is used to prepare data for dpaste. However if `echo -e "${content}"` is used, the content gets interpreted as well. This results in constructs such as '\0' getting misinterpreted as the byte 0x00. As a result, the interperted context can result in output not compatible with dpaste. fixes bug #25
2021-03-31remove invalid EXPIRATIONS_pinnwand entriesNicholas Vinson
2021-03-31Add missing expiration to pinnwand JSONbcattaneo
2021-03-31Add missing language to pinnwand JSONbcattaneo
2021-03-31Implement bpaste v1 APIbcattaneo
2021-02-26Add missing dpaste escape functionsNicholas Vinson
escape_description_dpaste() and escape_input_dpaste() are missing which causes the default escape function to be used. This results in mangled pastes. Fixes: #22
2021-02-19Add srpunge paste binNicholas Vinson
Service owner states in https://github.com/rupa/sprunge/issues/46 that the size limit for both ix.io and sprunge.us is "roughly a meg". As "meg" appears to mean 1 MiB, the size is set at 1 million bytes (1 MB).
2021-02-19Sort pastebins in alphabetical orderNicholas Vinson
2021-02-19Add 0x0 pastebinNicholas Vinson
2021-02-19Use new dpaste APINicholas Vinson
Updates the code to use the new dpaste API and corrects the max dpaste size limit value.
2021-02-19Add size limit for ix_io.Nicholas Vinson
Service owner states in https://github.com/rupa/sprunge/issues/46 that the size limit for both ix.io and sprunge.us is "roughly a meg". As "meg" appears to mean 1 MiB, the size is set at 1 million bytes (1 MB).
2021-02-19Fix REGEX_RAW_ix_ioNicholas Vinson
As previously implemented REGEX_RAW_ix_io would cause the URL to be printed twice. This change corrects that error.
2020-10-19Add ix.io pastebinNicholas Vinson
2020-10-19Update post handling logicNicholas Vinson
The current post handling logic assumes that either POST_${engine} is defined and is a string, or json_${engine} is defined and is a function. This logic does not work for paste bins such as ix.io. To make the logic more flexible, the string-function hybrid approach has been replaced with a function call chain. The entry-point to this chain is always POST_${engine} NICK DESCRIPTION LANGUAGE EXPIRATION CVT_TABS INPUT and for most services POST_${engine} is defined as: POST_generic <post format string> $1 $2 $3 $4 $5 $6 where POST_generic is the original logic for handling post requests. For JSON post submissions, the coresponding json_${engine} function is renamed to POST_${engine} and the arguments adjusted to match the calling convention mentioned above.
2020-07-31Version 2.30.Rasmus Thomsen
2020-07-31Hardcode 'v4' on the help message's gitlab URLbcattaneo
2020-07-31Fix snippets raw regexbcattaneo
2020-07-31Use a new array for all additional headersbcattaneo