question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cascading cheat sheets

See original GitHub issue

With our “cascading cheat sheets” mode (it will be described in README.md soon), you can create a hierarchy of cheat sheets servers, where each server delivers local cheat sheets + if a requested cheat sheet is not found, the query is forwarded to the upstream server (and so on).

cheat.sh
    ^
    |
cheat.my
    ^
    |
clients

For the user it looks fully transparent, it uses the same clients as always. The only difference is that the clients should be configured the correct server (is some clients are used; of course, if you use nothing but curl, you change nothing but the name of the server in the query):

curl cheat.my/secret

In this query, you ask the cheat.my server for the secret cheat sheet.

The main advantage of this mode is that you can have your own (private or maybe public but relevant only to you and to your team) cheat sheets, and at the same time, you can use the global cheat sheets to, without changing anything.

This issue is related to #5, #14, #97

To do:

  • server side implementation
  • cheat.sh docker container (almost implemented by @bglopez)
  • documentation (README.md)
  • cht.sh client custom server support
  • cheat.sh-vim custom server support (@dbeniamine)
  • vscode-snippet custom server support (@mre)
  • cheat-sh.el custom server support (@davep)
  • cheat.sh-sublime-plugin custom server support (@gauravk-in)
  • windows client custom server support (@tpanj )

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:2
  • Comments:33 (19 by maintainers)

github_iconTop GitHub Comments

2reactions
chubincommented, Feb 21, 2019

but keep in mind that in the first version with offline cheat sheets support, it will be not possible to make arbitrary programming languages queries (not yet); only cheat sheet queries:

this will work:

cht.sh tar
cht.sh btrfs
cht.sh python/Functions

And this wont:

cht.sh python/read+yaml+file
1reaction
Kidman1670commented, Jul 21, 2020

Sorry, I don’t find any document explain how to create a private repo.

I try to change lib/config.py etc/config.yaml (this file even don’t put any helpful comment, i don’t know how to use it) Things seem more complicate than I think.

In theory anyone can do that. But in reality if we don’t have document just a very small people spent time to understand how the source code work Please put in Readme.md or comment directly in etc/config.yaml a “tldr” solution

Read more comments on GitHub >

github_iconTop Results From Across the Web

CSS Cheat Sheet: Your Quick Reference for Cascading ...
Are you looking for a CSS cheat sheet? Devmountain has you covered. Use our online version or download the designed PDF as a...
Read more >
Securing Cascading Style Sheets - OWASP Cheat Sheet Series
The goal of this CSS (Not XSS, but Cascading Style Sheet) Cheat Sheet is to inform Programmers, Testers, Security Analysts, Front-End Developers and...
Read more >
CSS Cheat Sheet | Cascading Style Sheets | Graphic Design
Exact commands you need. All the important stuff. Go from zero to productive FAST. Remember everything with one Docker cheat sheet. loworbitflux.
Read more >
Cascading Style Sheets Cheatsheet &66
Cascading Style Sheets Cheatsheet &66 page 1 of 2. Font Properties. Font-Family. Changes the font family of certain words, sentences, paragraphs, etc.
Read more >
CSS Cheat Sheet: Cascading Style System by Gurpej Singh
CSS Cheat Sheet will be useful for all of your web development projects. What is more, you'll find 13 pages of CSS and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found