Host snippets with a git backend. Like Gists but OpenSource. https://gist.sigpipe.me/

Valérianne Dashie 7e8b9fb6dc
Add vendoring
3 weeks ago
bindata Fix ExpiryHours; Merge two loops. 2 months ago
cmd Revert not using gopkg... 2 months ago
conf Add missing pagination; Fix i18n 2 months ago
context Revert not using gopkg... 2 months ago
models Add Password reset routine from Gogs 2 months ago
routers Revert not using gopkg... 2 months ago
setting Add Password reset routine from Gogs 2 months ago
static Cosmetic fixes; Fix line wrap code 2 months ago
stuff Revert not using gopkg... 2 months ago
templates Fix I guess 3 weeks ago
vendor Add vendoring 3 weeks ago
.bra.toml Can register, login, logout 3 months ago
.drone.yml Maybe I should add this file too 3 weeks ago
.gitignore Revert not using gopkg... 2 months ago
Jenkinsfile Wow such Jenkinsfile, very working, much pipelines 2 months ago
Jenkinsfile.gdsl Wow such Jenkinsfile, very working, much pipelines 2 months ago
LICENSE Add a README and LICENSE 3 months ago
LICENSE.gogs Add License of Gogs; For reused gogs parts 2 months ago
Makefile Fix test target 3 weeks ago
README.md Can handle binary files in the Web UI for Edit part 2 months ago
git.txt.go this one ? 2 months ago
glide.lock Use more master versions 2 months ago
glide.yaml Use more master versions 2 months ago

README.md

git.txt

What

It's a Pastebin where all pastes are backed in is own Git repository.

Current Features list

  • First registered user is automatically admin
  • User or Anonymous Gitxts
  • Archive download in Zip or TarGz of Gitxts repositories
  • Git pull over HTTP/S for all Gitxts
  • Git push over HTTP/S for user Gitxts (Using Basic Auth)
  • Text Highlighting with Highlight.JS
  • Size limit per individual file
  • Size limit for the whole page (only text files not over-size are counted)
  • Viewing RAW content of a file or download if binary type, a RAW Size Limit apply to whatever blob is wanted
  • Rendering of special types: Markdown, Images, PDF (via PDF.js)
  • Line Numbers for text files
  • Expiration time with internal cron for deletion
  • Binary or over-size files are excluded from Edit form in Web-UI, preserving them in the commit (they still can be deleted)

Planned Feature List

  • Pull or Push over SSH for user Gitxts
  • Display other rich texts
  • API for third party tools
  • More tests coverage

Use or build

Install or build libgit2 0.25.x ONLY. NO Version less than 0.25 (hello Debian Stable)
go get -u github.com/jteeuwen/go-bindata/...
go get -v -insecure -u dev.sigpipe.me/dashie/git.txt

Contact, issues

  • Main contact: Dashie: dashie (at) sigpipe (dot) me
  • Main repository: https://dev.sigpipe.me/dashie/git.txt
  • Main issue tracker: https://dev.sigpipe.me/dashie/git.txt/issues

Sources used

I learned playing with Macaron/Xorm etc. from Gogs sources so lot of logic have been reused from Gogs.

License

MIT, Dashie for git.txt and Gogs contributors for reused Gogs parts.