Skip to content

fengFlyPro/paste

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

paste

Make a website with PHP to share codes.

Notice

  • sudo chmod -R 777 code to enable apache to create new code files.
  • Languages now supported:
    Bash, C, C++, CSS, Go, HTML, PHP
  • Material Design: Material Design Lite
  • Code HighLight: google-code-prettify

Guide

  • Paste:
    • Visit http://paste.whoisnian.com to paste.
    • <command> | curl <data> "http://paste.whoisnian.com/new.php" and get the link. Such as:
      • screenfetch -N | curl --data-urlencode content@- "http://paste.whoisnian.com/new.php" (anonymous and auto type)
      • cat nian.css | curl -d "poster=nian" --data-urlencode content@- "http://paste.whoisnian.com/new.php" (only auto type)
      • cat try.cpp | curl -d "type=cpp" --data-urlencode content@- "http://paste.whoisnian.com/new.php" (only anonymous)
      • cat ipgw.sh | curl -d "poster=nian&type=bash" --data-urlencode content@- "http://paste.whoisnian.com/new.php"
      • It's so long that a pastecode.sh will be much better.(an example pastecode)
  • Delete:
    • Code files are automatically deleted after 7 days;

Todo

  • pastecode.sh example.
  • Automatically delete code files.
  • Paste code in the console without Explorer.
  • Beautify the website.

Address

http://paste.whoisnian.com

About

Paste your code freely.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

  • PHP 99.8%
  • HTML 0.2%