<commit_before>Gist: The Script
================

Works great with Gist: The Website.

Installation
------------

RubyGem:

    gem install gist

Old school:

    curl -s http://github.com/defunkt/gist/raw/master/gist > gist &&
    chmod 755 gist &&
    mv gist /usr/local/bin/gist

Use
---

    gist < file.txt
    echo secret | gist --private # or -p
    echo "puts :hi" | gist -t rb
    gist script.py

Authentication
--------------

Just have your git config set up with your GitHub username and token.

    git config --global github.user "your-github-username"
    git config --global github.token "your-github-token"

You can find your token under [your account](https://github.com/account).


Proxies
-------

Set the HTTP_PROXY env variable to use a proxy.

    $ HTTP_PROXY=host:port gist file.rb

Manual
------


Visit <http://defunkt.github.com/gist/> or use:

    $ gist -m

Ninja vs Shark
--------------

![Ninja vs Shark](http://github.com/defunkt/gist/tree/master%2Fbattle.png?raw=true)<commit_msg>document the new git-config options<commit_after>Gist: The Script
================

Works great with Gist: The Website.

Installation
------------

RubyGem:

    gem install gist

Old school:

    curl -s http://github.com/defunkt/gist/raw/master/gist > gist &&
    chmod 755 gist &&
    mv gist /usr/local/bin/gist


Use
---

    gist < file.txt
    echo secret | gist --private # or -p
    echo "puts :hi" | gist -t rb
    gist script.py


Authentication
--------------

Just have your git config set up with your GitHub username and token.

    git config --global github.user "your-github-username"
    git config --global github.token "your-github-token"

You can find your token under [your account](https://github.com/account).


Defaults
--------

You can set a few options in your git config (using git-config(1)) to
control the default behavior of gist(1).

* gist.private - boolean (yes or no) - Determines whether to make a gist
  private by default

* gist.extension - string - Default extension for gists you create.


Proxies
-------

Set the HTTP_PROXY env variable to use a proxy.

    $ HTTP_PROXY=host:port gist file.rb


Manual
------

Visit <http://defunkt.github.com/gist/> or use:

    $ gist -m


Ninja vs Shark
--------------

![Ninja vs Shark](http://github.com/defunkt/gist/tree/master%2Fbattle.png?raw=true)
{'fraction_non_alphanumeric': 0.15751383567475521, 'fraction_numerical': 0.004257130693912303, 'mean_word_length': 2.4970238095238093, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3775600', 'n_tokens_mistral': 806, 'n_tokens_neox': 768, 'n_words': 247}