Host snippets with a git backend. Like Gists but OpenSource. https://gist.sigpipe.me/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
 
 
 
 
 
 
squeaky otter 3d2a65bb55
Update libgit to 0.27
3 years ago
cmd Fmt; Disappeared % format; % format updates; Unkeyed things 3 years ago
conf Fix segfault with non existant file 4 years ago
context Fmt; Disappeared % format; % format updates; Unkeyed things 3 years ago
models Grmbl 3 years ago
routers Update libgit to 0.27 3 years ago
setting Fmt; Disappeared % format; % format updates; Unkeyed things 3 years ago
static Add jquery bootstrap growl for ajax failure notifications 4 years ago
stuff Update libgit to 0.27 3 years ago
templates oops lol 4 years ago
vendor Update vendoring 3 years ago
.bra.toml Can register, login, logout 5 years ago
.drone.yml Update libgit to 0.27 3 years ago
.gitignore Update gitignore 4 years ago
Gopkg.lock Update vendoring 3 years ago
Gopkg.toml Update vendoring 3 years ago
LICENSE Add a README and LICENSE 5 years ago
LICENSE.gogs Add License of Gogs; For reused gogs parts 5 years ago
Makefile Fmt; Disappeared % format; % format updates; Unkeyed things 3 years ago
README.md Sorry, no SSH planned 3 years ago
TODO.org Update libgit to 0.27 3 years ago
git.txt.go Bump version ...... 4 years ago
i18n.py Add the script I use for debugging i18n 4 years ago

README.md

git.txt

Build Status

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

  • Display other rich texts
  • API for third party tools
  • More tests coverage

Build

Install or build libgit2 0.25.x ONLY. NO Version less than 0.25 (hello Debian Stable) or higher.
You also needs libmagic
go get -v -insecure -u dev.sigpipe.me/dashie/git.txt

Release build

Contact, 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.