Skip to content
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

Posix sh #237

Open
wants to merge 116 commits into
base: master
Choose a base branch
from
Open

Posix sh #237

wants to merge 116 commits into from

Commits on Oct 3, 2020

  1. Configuration menu
    Copy the full SHA
    4ee91e6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    de8bea6 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    e840c39 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    23c7e84 View commit details
    Browse the repository at this point in the history
  5. Make "local" more portable

    grayed committed Oct 3, 2020
    Configuration menu
    Copy the full SHA
    fbe85fe View commit details
    Browse the repository at this point in the history
  6. more shell compatibility goo

    grayed committed Oct 3, 2020
    Configuration menu
    Copy the full SHA
    202d031 View commit details
    Browse the repository at this point in the history

Commits on Nov 17, 2021

  1. Configuration menu
    Copy the full SHA
    c14e8d7 View commit details
    Browse the repository at this point in the history
  2. Initial version of CI

    grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    2b3dc33 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    4c68eaf View commit details
    Browse the repository at this point in the history
  4. fix: replaced hardcoded paths '$HOME/.cht.sh' on $CHTSH_HOME, to prop…

    …erly handle CHTSH environment variable, which override default CHTSH_HOME path
    WANDEX authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    c601c61 View commit details
    Browse the repository at this point in the history
  5. Fix typo

    alexfertel authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    9283d17 View commit details
    Browse the repository at this point in the history
  6. .travis.yml Use curl with connection timeout

    This should fix current build failure with timeout
    https://travis-ci.org/github/chubin/cheat.sh/builds/741308362#L402
    abitrolly authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    5714240 View commit details
    Browse the repository at this point in the history
  7. Use curl retry flags for waiting for service

    `--connect-timeout` didn't work, because Docker allows it, but breaks,
    because nothing is listening on the other side, giving this error.
    
        $ curl --connect-timeout 10 http://localhost:8002
        curl: (56) Recv failure: Connection reset by peer
        The command "curl --connect-timeout 10 http://localhost:8002" exited with 56.
    
    https://travis-ci.org/github/chubin/cheat.sh/builds/741348053#L401
    
    `--retry-all` makes `curl` retry on all errors, including connection resets.
    abitrolly authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    fa8ad4d View commit details
    Browse the repository at this point in the history
  8. Try newer Ubuntu with newer curl

    abitrolly authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    77b4369 View commit details
    Browse the repository at this point in the history
  9. Use wget instead of curl to wait for container

    Because even Ubuntu 20.04 version of `curl` is outdated
    abitrolly authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    14d6ef0 View commit details
    Browse the repository at this point in the history
  10. Use flask run server for debugging

    Because at least live reloading doesn't seem to work with `gevent`
    abitrolly authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    4bc39db View commit details
    Browse the repository at this point in the history
  11. Test "production" container on Travis

    abitrolly authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    6b8aeaf View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    4401bc3 View commit details
    Browse the repository at this point in the history
  13. Run GitHub tests on Ubuntu 20.04

    abitrolly authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    803b8e1 View commit details
    Browse the repository at this point in the history
  14. Create logdir for fetch

    chubin authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    cd6e386 View commit details
    Browse the repository at this point in the history
  15. Update lib/fetch.py

    Co-authored-by: Anatoli Babenia <[email protected]>
    2 people authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    286ae8e View commit details
    Browse the repository at this point in the history
  16. Update tests/results/15 (python/:learn)

    chubin authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    6309536 View commit details
    Browse the repository at this point in the history
  17. Add python-Levenshtein to requirements.txt

    chubin authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    45e7ce0 View commit details
    Browse the repository at this point in the history
  18. Fetch cheat sheets in GitHub actions

    abitrolly authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    260b672 View commit details
    Browse the repository at this point in the history
  19. Python 3 is default on 20.04+

    abitrolly authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    6a8896f View commit details
    Browse the repository at this point in the history
  20. Configuration menu
    Copy the full SHA
    38f3b69 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    4639d68 View commit details
    Browse the repository at this point in the history
  22. Configuration menu
    Copy the full SHA
    e01333b View commit details
    Browse the repository at this point in the history
  23. Configuration menu
    Copy the full SHA
    cba1884 View commit details
    Browse the repository at this point in the history
  24. Fixed comments regarding :random

    fedebuonco authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    5a4d5b6 View commit details
    Browse the repository at this point in the history
  25. Fixed typo

    fedebuonco authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    2040c57 View commit details
    Browse the repository at this point in the history
  26. Configuration menu
    Copy the full SHA
    0e65fc4 View commit details
    Browse the repository at this point in the history
  27. Added a line on the readme

    fedebuonco authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    f20a71f View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    fbe956c View commit details
    Browse the repository at this point in the history
  29. Configuration menu
    Copy the full SHA
    6e1c3d8 View commit details
    Browse the repository at this point in the history
  30. Further removing of special cases

    fedebuonco authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    8942d41 View commit details
    Browse the repository at this point in the history
  31. Show package versions

    chubin authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    3c88b52 View commit details
    Browse the repository at this point in the history
  32. Configuration menu
    Copy the full SHA
    1056ac9 View commit details
    Browse the repository at this point in the history
  33. Remove pip freeze from ci

    chubin authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    cf892b4 View commit details
    Browse the repository at this point in the history
  34. Configuration menu
    Copy the full SHA
    1f0ce07 View commit details
    Browse the repository at this point in the history
  35. Configuration menu
    Copy the full SHA
    1ce75de View commit details
    Browse the repository at this point in the history
  36. Port .travis.yml to GitHub Actions

    abitrolly authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    485614f View commit details
    Browse the repository at this point in the history
  37. Fix invalid .yml for Actions

    abitrolly authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    e8e26bc View commit details
    Browse the repository at this point in the history
  38. Move pip3 to right place

    chubin authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    e59502b View commit details
    Browse the repository at this point in the history
  39. Move pip3 to right place

    chubin authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    a924774 View commit details
    Browse the repository at this point in the history
  40. Copy requirements.txt

    chubin authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    c097a43 View commit details
    Browse the repository at this point in the history
  41. Upgrade pygments

    chubin authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    89f04f7 View commit details
    Browse the repository at this point in the history
  42. Disable caching for UpstreamAdapter

    chubin authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    2e61d2b View commit details
    Browse the repository at this point in the history
  43. Reorder commands in Dockerfile

    chubin authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    ae25b7e View commit details
    Browse the repository at this point in the history
  44. Return 'cache' property in answer_dict

    chubin authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    3da4aea View commit details
    Browse the repository at this point in the history
  45. Configuration menu
    Copy the full SHA
    5f425f7 View commit details
    Browse the repository at this point in the history
  46. Clean up Travis files

    abitrolly authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    27d3720 View commit details
    Browse the repository at this point in the history
  47. Added :random to the help page.

    fedebuonco authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    e2e24f8 View commit details
    Browse the repository at this point in the history
  48. Configuration menu
    Copy the full SHA
    7eee26a View commit details
    Browse the repository at this point in the history
  49. Update tests/results/7 (:random)

    chubin authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    0593f32 View commit details
    Browse the repository at this point in the history
  50. Remove explicit gevent imports

    It is enough to monkey patch one time at the top level,
    which is done in `bin/srv.py` web server script.
    abitrolly authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    9970ee3 View commit details
    Browse the repository at this point in the history
  51. Properly setup Flask logging to stderr

    Sometimes there is nothing, sometimes lines are duplicated.
    
    Duplicated lines problem appears, because Python root logger
    handler and Flask's `werkzeug` logger handler both write the
    same message. `cheat.sh` is hit, because it sets this root
    logging handler.
    
    Normally `werkzeug` doesn't setup its own handler if it sees
    that there are some handlers that process its messages. This
    in case of `cheat.sh` resulted in no stderr logging at all.
    No Exceptions either. Because `werkzeug` catches the
    exceptions and logs them.
    
    Hovewer, sometimes `werkzeug` starts too early, befora app
    is imported (pallets/werkzeug#1969)
    and sets its logger anyway, before the app itself, resulting
    in duplicating lines. In that case app root handler needs to
    skip lines from `werkzeug`.
    
    Kudos to @brandon-rhodes for `logging_tree` awesomeness
    abitrolly authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    6f7c87b View commit details
    Browse the repository at this point in the history
  52. Show all cheat sheets when several found

    chubin authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    9e4a5fe View commit details
    Browse the repository at this point in the history
  53. Update tests

    chubin authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    667edab View commit details
    Browse the repository at this point in the history
  54. Continue if response found in cache

    chubin authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    efc8308 View commit details
    Browse the repository at this point in the history
  55. Update results/17 (az)

    chubin authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    880ef6f View commit details
    Browse the repository at this point in the history
  56. Update lib/routing.py

    Co-authored-by: Anatoli Babenia <[email protected]>
    2 people authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    382f0ee View commit details
    Browse the repository at this point in the history
  57. Hotfix unicode processing for Python 3 (fixes chubin#265)

    This fix is temprorary, and must be implemented properly,
    after Python 2 support will be fully dropped.
    chubin authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    3313b06 View commit details
    Browse the repository at this point in the history
  58. Remove broken fonts stylesheet

    madsmtm authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    d5ae133 View commit details
    Browse the repository at this point in the history
  59. Configuration menu
    Copy the full SHA
    322ce4c View commit details
    Browse the repository at this point in the history
  60. Configuration menu
    Copy the full SHA
    2de4672 View commit details
    Browse the repository at this point in the history
  61. Show non-printable chars in failed tests

    abitrolly authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    a8871b2 View commit details
    Browse the repository at this point in the history
  62. Add doc/standalone.md

    chubin authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    3407b6b View commit details
    Browse the repository at this point in the history
  63. Configuration menu
    Copy the full SHA
    8ffb7c1 View commit details
    Browse the repository at this point in the history
  64. Configuration menu
    Copy the full SHA
    f3ede89 View commit details
    Browse the repository at this point in the history
  65. Use sql comments for psql (chubin#276)

    chubin authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    6bc8c62 View commit details
    Browse the repository at this point in the history
  66. Configuration menu
    Copy the full SHA
    d2190d2 View commit details
    Browse the repository at this point in the history
  67. Add aiohttp as a plain text agent

    ChrisLovering authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    7168f98 View commit details
    Browse the repository at this point in the history
  68. Help text: remove outdated info, fix spelling

    Many more languages are supported than listed in the help file.
    thezeroalpha authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    d014f0e View commit details
    Browse the repository at this point in the history
  69. Fix test

    thezeroalpha authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    810947b View commit details
    Browse the repository at this point in the history
  70. README - small changes

    - Add link to jump to installation section
    - Add link to jump to installing tab completion. Named this link "auto-complete" so that "auto" and "complete" (ending with an -e rather than -ion) would both show up when grepped/ ⌘+F
    
    Why:
    
    - Less intimidating to newcomers — I've just observed that friends/colleagues adopt tldr rather than cheat.sh soley because they didn't see the "get started" stuff up top. So they missed it.
    - Faster to "just install it" when you know you're going to do that anyways. i.e. from a friend recommending. or on a new machine.
    floer32 authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    8a650a7 View commit details
    Browse the repository at this point in the history
  71. README - small changes - add some horizontal-rules

    Helps with visual scannability when scrolling down the page
    floer32 authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    7a8d5e9 View commit details
    Browse the repository at this point in the history
  72. README - small changes - for those newer to sh

    This is something we take for granted but newcomers to sh, Linux, and so on.
    floer32 authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    404fe65 View commit details
    Browse the repository at this point in the history
  73. Use live badge for source repos' users/stars

    Also updates Stackoverflow user count from 9m to 14m. 
    See https://stackexchange.com/leagues/1/alltime/stackoverflow
    bl-ue authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    c3676f4 View commit details
    Browse the repository at this point in the history
  74. Remove unused links

    bl-ue authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    979b2ad View commit details
    Browse the repository at this point in the history
  75. Configuration menu
    Copy the full SHA
    96464a2 View commit details
    Browse the repository at this point in the history
  76. Fix syntax highlight in README

    - Specific bash in some code blocks
    - Specific zsh in zshrc config
    - Fix unclosed `code` markup
    Sea-n authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    deb508c View commit details
    Browse the repository at this point in the history
  77. Fix typo in README

    Co-authored-by: Anatoli Babenia <[email protected]>
    2 people authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    f3b77b0 View commit details
    Browse the repository at this point in the history
  78. Configuration menu
    Copy the full SHA
    3973cc8 View commit details
    Browse the repository at this point in the history
  79. Update README.md

    bl-ue authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    c2892a8 View commit details
    Browse the repository at this point in the history
  80. Users/Contributors

    chubin authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    7f7a6e8 View commit details
    Browse the repository at this point in the history
  81. Ran doctoc to generate a table of contents (toc) https://github.com/t…

    …hlorenz/doctoc  The documentation was so nice, I couldn't help but adding a toc.
    julien-tremblay-mclellan authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    04744cf View commit details
    Browse the repository at this point in the history
  82. Update TOC

    chubin authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    250b115 View commit details
    Browse the repository at this point in the history
  83. Fix some unescaped shell colors.

    aokellermann authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    219f372 View commit details
    Browse the repository at this point in the history
  84. Bump cht.sh (client) version

    chubin authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    3042e4b View commit details
    Browse the repository at this point in the history
  85. Configuration menu
    Copy the full SHA
    9c7b60c View commit details
    Browse the repository at this point in the history
  86. Configuration menu
    Copy the full SHA
    55046c7 View commit details
    Browse the repository at this point in the history
  87. Fix typographical error

    CodeLongAndProsper90 authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    4f4bcfe View commit details
    Browse the repository at this point in the history
  88. Bump cht.sh version

    chubin authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    77caf7e View commit details
    Browse the repository at this point in the history
  89. Call virtualenv directly (cht.sh)

    chubin authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    5f17d6e View commit details
    Browse the repository at this point in the history
  90. Configuration menu
    Copy the full SHA
    358dd5f View commit details
    Browse the repository at this point in the history
  91. Configuration menu
    Copy the full SHA
    92dc89e View commit details
    Browse the repository at this point in the history
  92. Update tests

        CHEATSH_UPDATE_TESTS_RESULTS=YES bash run-tests.sh
    abitrolly authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    4f8e4da View commit details
    Browse the repository at this point in the history
  93. move nested function outside scope

    Jan200101 authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    03078d6 View commit details
    Browse the repository at this point in the history
  94. Configuration menu
    Copy the full SHA
    14b4930 View commit details
    Browse the repository at this point in the history
  95. Downgrade colored to fix tests

    `colored` became smarter in patch version to avoid
    coloring if running without TTY
    
    https://gitlab.com/dslackw/colored/-/issues/21
    abitrolly authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    a1c2958 View commit details
    Browse the repository at this point in the history
  96. Configuration menu
    Copy the full SHA
    5a274f2 View commit details
    Browse the repository at this point in the history
  97. add generic test cases

    Jan200101 authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    88007ee View commit details
    Browse the repository at this point in the history
  98. Simplify handling of query with multiple spaces

    A followup to chubin#312
    abitrolly authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    bb0af51 View commit details
    Browse the repository at this point in the history
  99. g++ workaround could still strip ++ if more ++ were encountered

    This replaces cycle logic in chubin#312 with regex.
    abitrolly authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    69c95ca View commit details
    Browse the repository at this point in the history
  100. Configuration menu
    Copy the full SHA
    f8e27bc View commit details
    Browse the repository at this point in the history
  101. Configuration menu
    Copy the full SHA
    f7f5d6f View commit details
    Browse the repository at this point in the history
  102. Configuration menu
    Copy the full SHA
    549389d View commit details
    Browse the repository at this point in the history
  103. Configuration menu
    Copy the full SHA
    6ad8818 View commit details
    Browse the repository at this point in the history
  104. Configuration menu
    Copy the full SHA
    cb4cf74 View commit details
    Browse the repository at this point in the history
  105. Configuration menu
    Copy the full SHA
    57604e5 View commit details
    Browse the repository at this point in the history
  106. Better fix for chubin#307 is to return text stream from Popen

    `universal_newlines` make this in compatible way with older Python.
    abitrolly authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    8ae2a25 View commit details
    Browse the repository at this point in the history
  107. Configuration menu
    Copy the full SHA
    8182550 View commit details
    Browse the repository at this point in the history
  108. .dockerignore: no Travis anymore

    abitrolly authored and grayed committed Nov 17, 2021
    Configuration menu
    Copy the full SHA
    6de51bc View commit details
    Browse the repository at this point in the history
  109. Configuration menu
    Copy the full SHA
    43da9fc View commit details
    Browse the repository at this point in the history
  110. Configuration menu
    Copy the full SHA
    cb0439b View commit details
    Browse the repository at this point in the history