OpenLongr is an extremely simple open source alternative to TwitLonger or pastebin, It supports GitHub-flavored markdown. The installation process is pretty simple as it was made with LAMP in mind.