GithubHelp home page GithubHelp logo

gister's People

Contributors

jkoelker avatar kenjoe41 avatar tr3buchet avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

gister's Issues

when .ipynb files are gisted, display a nbviewer link

Should only happen on public github

I think should work for secret and anonymous gists as well since nbviewer.ipython.org does not store the data (asides from a 10 minute cache), it only parses the data in the gist for viewing when you visit the link. I can't find that it indexes or makes them available to the public in any way. But most importantly, unless you visit the nbviewer.org link, nbviewer.ipython.org will never know your gist exists. gister will only craft the nbviewer.ipython.org link for display.

So gister should output both the gist.github.com link and the nbviewer.ipython.org link

support file names as positional arguments

cat foo | gister is helpful, but it would be nice to be able to specify a filename, like gister foo as well, for other situations. For one thing, that would allow for preserving the file's name, which would preserve its syntax highlighting type. For another, it would allow you to create a multi-file gist, if you had a bunch of files in a directory you wanted to group together, gister *.txt would be handy.

Why no PyPi

Hello sir,

I install gister from pypi but is not found. The remediation is requested.

Thanks before,

7-11

Cannot post to GHE

Hi,

i have the following problem when trying to post with the -p option to our internal Github Enterprise instance

Traceback (most recent call last):
  File "C:\Homeware\Python27\Scripts\gister-script.py", line 9, in <module>
    load_entry_point('gister==1.0.15', 'console_scripts', 'gister')()
  File "C:\Homeware\Python27\lib\site-packages\gister\gister.py", line 180, in create_gist
    headers=headers)
  File "C:\Homeware\Python27\lib\site-packages\requests\api.py", line 99, in post
    return request('post', url, data=data, json=json, **kwargs)
  File "C:\Homeware\Python27\lib\site-packages\requests\api.py", line 49, in request
    response = session.request(method=method, url=url, **kwargs)
  File "C:\Homeware\Python27\lib\site-packages\requests\sessions.py", line 461, in request
    resp = self.send(prep, **send_kwargs)
  File "C:\Homeware\Python27\lib\site-packages\requests\sessions.py", line 573, in send
    r = adapter.send(request, **kwargs)
  File "C:\Homeware\Python27\lib\site-packages\requests\adapters.py", line 431, in send
    raise SSLError(e, request=request)
requests.exceptions.SSLError: [Errno 1] _ssl.c:507: error:14090086:SSL routines:SSL3_GET_SERVER_CERTIFICATE:certificate verify failed

Any idea what could be the problem ?

anonymous gists no longer work without oauth

$ echo hi | gister -a
 โ†ฉ Sun Feb  6 22:48:17 PST 2022
Traceback (most recent call last):
  File "/Users/glyph/.local/bin/gister", line 8, in <module>
    sys.exit(print_gist_url())
  File "/Users/glyph/.local/pipx/venvs/gister/lib/python3.10/site-packages/gister/gister.py", line 182, in print_gist_url
    print(create_gist(args.anonymous, args.command, args.description,
  File "/Users/glyph/.local/pipx/venvs/gister/lib/python3.10/site-packages/gister/gister.py", line 174, in create_gist
    r.raise_for_status()
  File "/Users/glyph/.local/pipx/venvs/gister/lib/python3.10/site-packages/requests/models.py", line 960, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.github.com/gists

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.