/u/spazzpp2 already mentioned howdoi
, https://github.com/gleitz/howdoi
There’s also “StackOverflow Importer” for Python, https://github.com/drathier/stack-overflow-import
This last one takes it a step further by getting an answer then checking if it’s valid. If it is, it imports it, if not, it tries the next highest voted.
Have you heard of howdoi?
It allows you to query stackoverflow from the command line.
To use it with vim: :!r howdoi sort array in python
and voilà. Transform the snippet to your needs.
Try making your own wiki, forking howdoi, and making it work with your wiki to give automatic answers from the command line?
That would be a ton of work, but seriously you guys should check out howdoi, I find it very useful. Especially when I'm working on VMs and only have the command line to build a system.
It's based on the howdoi Python script (https://github.com/gleitz/howdoi). It basically googles your text with "site:stackoverflow.com" appended to your query. Then it takes the first result and scrapes the answer off the stackoverflow page. So it supports any language Stackoverflow does - so all of them :)
That's extremely useful, and very aptly named. And we are not the only two people to think that: https://github.com/gleitz/howdoi
You might still be the only person to think it should be implemented in PHP :)
https://www.howtogeek.com/248780/how-to-compress-and-extract-files-using-the-tar-command-on-linux/
850 words on how to compress and extract files using tar
. How could someone be happy doing this job? Especially with software like how-do-I.
okay. by the way, you can view other good open source projects, this really helps in refactoring. some projects that helped : - howdoi - spotify downloader - SoundScrape
all the best!
If someone needs an extreme tl;dr alternative to manpages then check out howdoi. Example:
$ howdoi extract gzip archive tar xvzf /dir/to/file.tar.gz -C /dir/to/output/ It can be easily installed using pip:
$ pip install howdoi