Coder Social home page Coder Social logo

cheat's People

Contributors

auron61 avatar chris123457 avatar cldwalker avatar dahpgjgamgan avatar defunkt avatar lilyball avatar lonnon avatar monde avatar nex3 avatar scudco avatar sferik avatar solebared avatar zdennis avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

cheat's Issues

Website returning 404's

Thanks...


Request URL:http://cheat.errtheblog.com/e/cheat
Request Method:GET
Status Code:404 Not Found

Request Headers
GET /e/cheat HTTP/1.1
Host: cheat.errtheblog.com
Connection: keep-alive
Cache-Control: max-age=0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.22 (KHTML, like Gecko) Chrome/25.0.1364.172 Safari/537.22
DNT: 1
Accept-Encoding: gzip,deflate,sdch
Accept-Language: en-US,en;q=0.8
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.3

Response Headers
HTTP/1.1 404 Not Found
Server: nginx
Date: Mon, 01 Apr 2013 22:51:47 GMT
Content-Type: text/html;charset=utf-8
Content-Length: 18
Connection: keep-alive
X-Cascade: pass
X-Xss-Protection: 1; mode=block
X-Content-Type-Options: nosniff
X-Frame-Options: SAMEORIGIN

Use of fork is incompatible with JRuby

Like Windows, JRuby doesn't support fork:

org/jruby/RubyKernel.java:1750:in `fork': fork is unsafe and disabled by default on JRuby (NotImplementedError)

`cheat sheets` fails while other things work

I can run cheat xargs or cheat cheat but cheat sheets fails:

➲ cheat sheets
/Users/brandon/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/open-uri.rb:358:in `open_http': 404 Not Found (OpenURI::HTTPError)
    from /Users/brandon/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/open-uri.rb:736:in `buffer_open'
    from /Users/brandon/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/open-uri.rb:211:in `block in open_loop'
    from /Users/brandon/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/open-uri.rb:209:in `catch'
    from /Users/brandon/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/open-uri.rb:209:in `open_loop'
    from /Users/brandon/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/open-uri.rb:150:in `open_uri'
    from /Users/brandon/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/open-uri.rb:716:in `open'
    from /Users/brandon/.rvm/rubies/ruby-2.2.0/lib/ruby/2.2.0/open-uri.rb:34:in `open'
    from /Users/brandon/.rvm/gems/ruby-2.2.0/gems/cheat-1.3.3/lib/cheat.rb:31:in `sheets'
    from /Users/brandon/.rvm/gems/ruby-2.2.0/gems/cheat-1.3.3/bin/cheat:10:in `<top (required)>'
    from /Users/brandon/.rvm/gems/ruby-2.2.0/bin/cheat:23:in `load'
    from /Users/brandon/.rvm/gems/ruby-2.2.0/bin/cheat:23:in `<main>'
➲    

just in case everything I tested was already locally available, I checked to make sure I could test something I'd never used before...

➲ ls .cheat
ack.yml         ditto.yml       irc.yml         rvm.yml         xargs.yml
bash.yml        git.yml         permissions.yml tar.yml
cheat.yml       haml.yml        ruby.yml        vim.yml
➲ cheat python 
python:
  basics

  $ sudo apt-get install python-setuptools python-dev build-essential
  $ sudo easy_install -U pip
  $ sudo pip install -U virtualenv
  $ virtualenv --no-site-packages --distribute MY_VIRTUALENV
  $ source MY_VIRTUALENV/bin/activate
  $ pip install yolk
  $ yolk -l

This clearly demonstrates that the problem is not one of the site simply being down.

Error running cheat

I get the following error running cheat on RVM-based Ruby 1.9.3p286. Any ideas?

Thanks!

/Users/rammos/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/psych.rb:203:in `parse': (<unknown>): mapping values are not allowed in this context at line 1 column 161 (Psych::SyntaxError)
        from /Users/rammos/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/psych.rb:203:in `parse_stream'
        from /Users/rammos/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/psych.rb:151:in `parse'
        from /Users/rammos/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/psych.rb:127:in `load'
        from /Users/rammos/.rvm/gems/ruby-1.9.3-p286@global/gems/cheat-1.3.2/lib/cheat.rb:133:in `show'
        from /Users/rammos/.rvm/gems/ruby-1.9.3-p286@global/gems/cheat-1.3.2/lib/cheat.rb:128:in `process'
        from /Users/rammos/.rvm/gems/ruby-1.9.3-p286@global/gems/cheat-1.3.2/lib/cheat.rb:28:in `block in sheets'
        from /Users/rammos/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/open-uri.rb:150:in `open_uri'
        from /Users/rammos/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/open-uri.rb:677:in `open'
        from /Users/rammos/.rvm/rubies/ruby-1.9.3-p286/lib/ruby/1.9.1/open-uri.rb:33:in `open'
        from /Users/rammos/.rvm/gems/ruby-1.9.3-p286@global/gems/cheat-1.3.2/lib/cheat.rb:28:in `sheets'
        from /Users/rammos/.rvm/gems/ruby-1.9.3-p286@global/gems/cheat-1.3.2/bin/cheat:10:in `<top (required)>'
        from /Users/rammos/.rvm/gems/ruby-1.9.3-p286@global/bin/cheat:19:in `load'
        from /Users/rammos/.rvm/gems/ruby-1.9.3-p286@global/bin/cheat:19:in `<main>'
        from /Users/rammos/.rvm/gems/ruby-1.9.3-p286@global/bin/ruby_noexec_wrapper:14:in `eval'
        from /Users/rammos/.rvm/gems/ruby-1.9.3-p286@global/bin/ruby_noexec_wrapper:14:in `<main>'

cheat rdebug throws exception

✗ cheat rdebug
/Users/sheerun/.rbenv/versions/1.9.3-p194-perf/lib/ruby/1.9.1/psych.rb:203:in `parse': (<unknown>): mapping values are not allowed in this context at line 1 column 161 (Psych::SyntaxError)
    from /Users/sheerun/.rbenv/versions/1.9.3-p194-perf/lib/ruby/1.9.1/psych.rb:203:in `parse_stream'
    from /Users/sheerun/.rbenv/versions/1.9.3-p194-perf/lib/ruby/1.9.1/psych.rb:151:in `parse'
    from /Users/sheerun/.rbenv/versions/1.9.3-p194-perf/lib/ruby/1.9.1/psych.rb:127:in `load'
    from /Users/sheerun/.rbenv/versions/1.9.3-p194-perf/lib/ruby/gems/1.9.1/gems/cheat-1.3.1/lib/cheat.rb:129:in `show'
    from /Users/sheerun/.rbenv/versions/1.9.3-p194-perf/lib/ruby/gems/1.9.1/gems/cheat-1.3.1/lib/cheat.rb:37:in `block in fetch_sheet'
    from /Users/sheerun/.rbenv/versions/1.9.3-p194-perf/lib/ruby/1.9.1/open-uri.rb:150:in `open_uri'
    from /Users/sheerun/.rbenv/versions/1.9.3-p194-perf/lib/ruby/1.9.1/open-uri.rb:677:in `open'
    from /Users/sheerun/.rbenv/versions/1.9.3-p194-perf/lib/ruby/1.9.1/open-uri.rb:33:in `open'
    from /Users/sheerun/.rbenv/versions/1.9.3-p194-perf/lib/ruby/gems/1.9.1/gems/cheat-1.3.1/lib/cheat.rb:33:in `fetch_sheet'
    from /Users/sheerun/.rbenv/versions/1.9.3-p194-perf/lib/ruby/gems/1.9.1/gems/cheat-1.3.1/lib/cheat.rb:29:in `sheets'
    from /Users/sheerun/.rbenv/versions/1.9.3-p194-perf/lib/ruby/gems/1.9.1/gems/cheat-1.3.1/bin/cheat:10:in `<top (required)>'
    from /Users/sheerun/.rbenv/versions/1.9.3-p194-perf/bin/cheat:23:in `load'
    from /Users/sheerun/.rbenv/versions/1.9.3-p194-perf/bin/cheat:23:in `<main>'

cheat command does not work on Windows 7

When running the command cheat rdebug I get the following issue:

C:/Ruby192/lib/ruby/gems/1.9.1/gems/cheat-1.3.0/lib/cheat.rb:215:in `fork': fork() function is unimplemented on this machine (NotImplementedError)
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/cheat-1.3.0/lib/cheat.rb:215:in  `run_pager'
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/cheat-1.3.0/lib/cheat.rb:129:in  `show'
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/cheat-1.3.0/lib/cheat.rb:35:in `block in fetch_sheet'
        from C:/Ruby192/lib/ruby/1.9.1/open-uri.rb:150:in `open_uri'
        from C:/Ruby192/lib/ruby/1.9.1/open-uri.rb:671:in `open'
        from C:/Ruby192/lib/ruby/1.9.1/open-uri.rb:33:in `open'
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/cheat-1.3.0/lib/cheat.rb:31:in `fetch_sheet'
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/cheat-1.3.0/lib/cheat.rb:27:in `sheets'
        from C:/Ruby192/lib/ruby/gems/1.9.1/gems/cheat-1.3.0/bin/cheat:10:in `<top (required)>'
        from C:/Ruby192/bin/cheat:19:in `load'
        from C:/Ruby192/bin/cheat:19:in `<main>'

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.