{"id":28789484,"url":"https://github.com/ryuheechul/cheatsheets","last_synced_at":"2026-02-02T10:44:53.583Z","repository":{"id":150190165,"uuid":"349689056","full_name":"ryuheechul/cheatsheets","owner":"ryuheechul","description":"My bite-sized snippets/cheatsheets","archived":false,"fork":false,"pushed_at":"2021-03-20T10:57:26.000Z","size":3,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-06-17T22:11:25.794Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Dockerfile","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ryuheechul.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2021-03-20T10:07:03.000Z","updated_at":"2021-03-20T10:57:28.000Z","dependencies_parsed_at":null,"dependency_job_id":"fdd9a6c5-7e62-4f26-b590-dd4caa168b2c","html_url":"https://github.com/ryuheechul/cheatsheets","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ryuheechul/cheatsheets","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryuheechul%2Fcheatsheets","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryuheechul%2Fcheatsheets/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryuheechul%2Fcheatsheets/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryuheechul%2Fcheatsheets/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ryuheechul","download_url":"https://codeload.github.com/ryuheechul/cheatsheets/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ryuheechul%2Fcheatsheets/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29010602,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-02T10:37:29.253Z","status":"ssl_error","status_checked_at":"2026-02-02T10:37:28.644Z","response_time":58,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-17T22:10:46.537Z","updated_at":"2026-02-02T10:44:53.577Z","avatar_url":"https://github.com/ryuheechul.png","language":"Dockerfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# (My) Cheatsheets\n\n## Rationales\n- I know it's good to remember commands with your muscles when you use faily often\n- but it's also easy to \"give up\" when useful things are not quickly \"searchable\"\n- and It feels great to keep a minimal clean snippets in a standalone form, right?\n\n## An Example\n\n### Enabling sudo in Docker container\n\nI'm not a linux expert, meaning I don't keep crystal clear image of how all sudo things work.\n\nI do however want to use container as a isolated dev environment and I just started to use non-root users in containers. Some of my attempts can be found here:\n- https://github.com/ryuheechul/dotfiles-launchpad/blob/3557c371d45445acac41134bd86154561a8e1fc9/Dockerfile\n- https://github.com/ryuheechul/gcloud/blob/8bf931ecede51b25aabdc144ea182894cde8a52b/Dockerfile\n\nWhich doesn't look great.\n\nHowever, I just found a nice clean looking way of a setting up password-less sudo for non-root users via here, https://gitlab.com/gitlab-org/gitlab-development-kit/-/blob/main/Dockerfile\n\nAnd I immediately knew that I would need to search for this file again in the future to look at it again to quickly understand what I need to implant into my other `Dockerfile`s and, etc. And I would also want to keep that same example for Alpine images as well not only for ubuntu. I would also want to be able to verify the examples right away.\n\nSo I just created these:\n- [ubuntu/sudo](./linux/docker/ubuntu/sudo/Dockerfile)\n- [alpine/sudo](./linux/docker/alpine/sudo/Dockerfile)\n\n## How to use this repo\n\nI recommend myself (any any others) to use this repo in terminal since the depth of subdirectories can be annoying with gihtub web UI.\nI intentionally use depth-y subdirectories to keep smaller size individual examples.\n\n### Overview\n`$ tree`\n\n### Search\n`$ rg [keyword] # for example: rg sudo`\n\u003e if you don't have ripgrep, you can use grep alternatively\n\n### Verify\nEach example should have either `Makefile` that contains things to run (to verify its code) or `README.md` that explains how-tos.\n\nFor example, you can `$ cd docker/ubuntu/sudo \u0026\u0026 make test`\n\n## Caveats\nI will try to make examples as minimal and clean as possible but I know it wouldn't be perfect. So all examples are subject to be improved when I discover any issues with them.\nYou may also let me know if you have a suggestions on that preferably via Github issues.\n\n## Complements\n\nI also tend to keep some random gists like [this](https://gist.github.com/ryuheechul/72aa19933d52b5d1085519dafa4ecb20) to help my poor brain :)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryuheechul%2Fcheatsheets","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fryuheechul%2Fcheatsheets","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fryuheechul%2Fcheatsheets/lists"}