PasteScripts
From C
rafb.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://www.rafb.net/paste/ test -f "$1" || { echo "usage: rafb file [lang [nick [desc]]]" >&2 && exit 1; } site="http:""//www.rafb.net." curl -v "$site/paste/paste.php" \ -F "lang=${2:-Plain Text}" \ -F "nick=${3:-${IRCNICK:-anonymous}}" \ -F "desc=${4:-$(basename "$1")}" \ -F "cvt_tabs=No" \ -F "text=<$1" \ 2>&1 >/dev/null | awk -vsite="$site" '/^< Location: /{if ($3~"^/")url=site$3;else url=$3}{print}END{print url}'
If you plan on pasting mostly C source code, you may want to change ${2:-Plain Text} to ${2:-C89} or ${2:-C99} instead.
rafb.pl
- Helper script for uploading to rafb.net: http://code.google.com/p/rafb-pl/
- For xchat, you can define /rafb as [ exec -o /<path>/rafb.pl -n %n -d "For %2" &3 ]
mIRC
You can use Smart Paste autopaste v1.0
