defunkt / cheat Goto Github PK
View Code? Open in Web Editor NEWCheating is fun!
Home Page: http://cheat.errtheblog.com
License: MIT License
Cheating is fun!
Home Page: http://cheat.errtheblog.com
License: MIT License
cheat.rb is still using PLATFORM vs RUBY_PLATFORM.
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
Like Windows, JRuby doesn't support fork
:
org/jruby/RubyKernel.java:1750:in `fork': fork is unsafe and disabled by default on JRuby (NotImplementedError)
So thus cheat doesn't 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.
31 files inspected, 716 offenses detected
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
/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>'
When creating a new sheet (in the browser), I got this Camping error: http://gist.github.com/190029
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>'
While installing cheat with rip, I noticed that most of cheat's helpers and site.rb were spilling out in lib/. I figured it'd be cleaner to keep them under lib/cheat/. Also removed require 'rubygems' for rip's sake.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.