Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/shugo/gwist
A client to post to Gist and Twitter
https://github.com/shugo/gwist
Last synced: about 1 month ago
JSON representation
A client to post to Gist and Twitter
- Host: GitHub
- URL: https://github.com/shugo/gwist
- Owner: shugo
- License: bsd-2-clause
- Created: 2012-01-04T10:46:01.000Z (almost 13 years ago)
- Default Branch: master
- Last Pushed: 2012-01-15T02:13:41.000Z (almost 13 years ago)
- Last Synced: 2023-04-12T11:04:39.458Z (over 1 year ago)
- Language: Haskell
- Homepage:
- Size: 102 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.markdown
- License: LICENSE
Awesome Lists containing this project
README
gwist
=====gwist is a client to post your code to gist.github.com and tweet with the URL.
Installation
------------For Ubuntu:
Copy http://shugo.net/tmp/gwist to your PATH.
For other platforms:
Build from the source on github.
$ git clone git://github.com/shugo/gwist.git
$ cd gwist
$ vi Gwist/Twitter.hs
# Remove the line importing Gwist.Secret, and replace
# Secret.twitterConsumer{Key,Secret} with your values
$ ghc --make -O gwist.hsUsage
-----First, you have to get PIN from Twitter:
$ gwist 'hello world in haskell' hello.hs
visit http://twitter.com/oauth/authorize?oauth_token=...
enter PIN:
created a gist at https://gist.github.com/...
posted a tweetThe Twitter credential is saved in ~/.gwistrc.
Use the -u option to authenticate as a Github user:
$ gwist -u shugo 'hello and bye in haskell' hello.hs bye.hs
Github password:
...The Github credential is also saved in ~/.gwistrc.
You can post multiple files:
$ gwist 'hello and bye in haskell' hello.hs bye.hs
Ask gwist --help for other options.