2019-04-13 19:41:58 +00:00
|
|
|
{ curl, gnused, writeDashBin }:
|
2017-04-11 19:41:06 +00:00
|
|
|
|
|
|
|
writeDashBin "kpaste" ''
|
2023-05-03 10:28:46 +00:00
|
|
|
${curl}/bin/curl -sS http://p.r --data-binary @"''${1:--}" \
|
2023-05-04 23:32:18 +00:00
|
|
|
-H "Content-Type-Override: ''${KPASTE_CONTENT_TYPE-}" |
|
2020-06-05 08:39:43 +00:00
|
|
|
${gnused}/bin/sed '$ {p;s|http://p.r|https://p.krebsco.de|}'
|
2017-04-11 19:41:06 +00:00
|
|
|
''
|