-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Personal Cheatsheets #97
Comments
The first and main question is can you install the cheat.sh server somewhere in your local environment or not? If yes, then it is not a problem at all. 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).
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):
In this query, you ask the |
Um, I can install whatever I want on my personal machine. But not too sure about the work machine I use. It has all sorts of weird permission restrictions. Is there any other alternative? I used to use my own cheat tool before, and it just needed a list of paths where cheats were kept. So I would give it the path to cheatsheets from chrisallenlane/cheat and my own secret cheats. Could something like this directory list be added to the cht.sh CLI?
|
@dufferzafar It is an interesting idea, but this solution would be inconsistent, because the cheat sheets would be available only on the local machine and only for this client. Is it ok for you? |
I could use other tools I know to sync my sheets.
Like I would use a private git repository?
Or Even Dropbox.
I think you should leave this to the people, and not worry about it.
…On Wed 15 Aug, 2018, 10:14 PM Igor Chubin, ***@***.***> wrote:
@dufferzafar <https://github.com/dufferzafar> It is an interesting idea,
but this solution would be inconsistent, because the cheat sheets would be
available only on the local machine and only for this client. Is it ok for
you?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#97 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABYeKD1whbVBq0dtDZIpGO9WBhEAwSq_ks5uRE_0gaJpZM4V5Q4o>
.
|
Yes, you are absolutely right, but for that we have to fully implement the cascading cheat sheets feature. |
Any news regarding this? |
@miloskroulik Please take a look at this, starting here: You can install cheat.sh in the standalone mode, and configure it to use your own |
@chubin I'm trying to understand how to configure my own cheat sheets source but unfortunately I haven't found how to do it. I installed the
The
I can't find any information about this configuration file and what can be configured. I'm trying to do this for my own dev machine. The best I would like not to start a "server", but just define a directory where the text resides - ie. #97 (comment). I found if I add a file under some directory of The other option could probably be (?) to add a Would you be so kind and help me what is the best practice? Is there some doc about these topics? |
Oh, I probably found it. Is it the feature which is under development, right? |
@ochaloup actually, you did it right. https://github.com/chubin/cheat.sh/blob/master/lib/adapter/cheat_sheets.py#L47 What structure has your internal cheat sheets repository? |
@chubin thanks a lot for answering On testing this I ended with trying to create an adapter working with the file system and now I have several more questions :-) On playing with the code I stuck with not understanding of the config setup. The code was placed at the Line 76 in ee0f4c4
Is there some way to update the config.yaml to get those list updated (ie. appended) with one more adapter?
Btw. what is the place where the |
hi @chubin , I don't want to bother you with long questions. Just if you find time to explain details how to work correctly with adapters (ie. my doubts above) or/and what is the plan about easy ways to add personal cheatsheets it would be great. Thank you. |
@ochaloup Hi! Please excuse me for the long response time, I hope it will be better in future. You are doing everything absolutely right! I don't know though why you don't want to use an existing, Git-based adapter, Location of the config file is Have you added your adapter to |
@chubin thanks for the response and I do apologize for my late response as well. On the I agree that git-based adapter could be working fine just I'm not used to work with git as a storage for my notes. Thus I decided to adjust your great tool for my purposes. I understand that it's not your use case but for me it's fine to not be forced to use the github. If you don't mind my asking - or I can post to some other place if this is not appropriate for such kind of question - how does work the command |
So, I needed a personal cheatsheet again and came back to this. @chubin you'd mentioned:
was this done? |
If you see that the new cheat sheets are available when you curl your server directly, but you don't see them with the
Yes, absolutely. What type of the adapter do you need?
It updates the cht.sh client itself, if it needs to be updated. @dufferzafar Yes this was implemented. It is not yet fully documented, but it is implemented |
@chubin thanks for the answers ad ad ad |
Yes, absolutely
I believe the branch was merged more than two months ago; https://github.com/chubin/cheat.sh/blob/master/doc/standalone.md |
@chubin oh, I see the offlne branch is merged, right? I was confused as the image at [https://github.com/chubin/cheat.sh/blob/master/doc/standalone.md]standalone.md) (ie. https://user-images.githubusercontent.com/3875145/57986904-ef3f1b80-7a7a-11e9-9531-ef37ec74b03a.png) mentions the tracking branch |
Is there a way to create personal / private cheatsheets? for tools that are internal to our team etc.
With other tools like Chris' cheat we could do this by simply adding a file in one of the config directories.
How can this be done using the cht.sh bash CLI tool?
The text was updated successfully, but these errors were encountered: