PasteScripts

From C

Jump to: navigation, search

ptpb.sh

This script seems to work well enough if you have curl on your (modern UN*X-like) system.


#!/bin/sh
#
# Paste a file to http://ptpb.ptw
if ((!$#)); then
  echo "usage: ptpb.sh file" >&2
  exit 1
fi
while (($#)); do
  curl -sF "c=@$1" https://ptpb.pw/?u=1
  shift
done


If you plan on pasting mostly source code, you can append a language lexer to the url, such as https://ptpb.pw/JbNH.c/c. The list of lexers can be found at https://ptpb.pw/.


mIRC

You can use Smart Paste autopaste v1.0

Personal tools