{"id":22796117,"url":"https://github.com/tatsuyafujisaki/script-cheat-sheet","last_synced_at":"2026-04-09T01:31:06.145Z","repository":{"id":78635861,"uuid":"115833612","full_name":"tatsuyafujisaki/script-cheat-sheet","owner":"tatsuyafujisaki","description":"Cheat sheets for various commands and scripts","archived":false,"fork":false,"pushed_at":"2026-04-02T04:11:36.000Z","size":419,"stargazers_count":17,"open_issues_count":0,"forks_count":2,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-04-02T17:09:13.554Z","etag":null,"topics":["apt","awk","base64","bash","batch","binary","curl","cut","ffmpeg","gradle","imagemagick","npm","pip","powershell","protoc","sed","sips","xcodeproj","zsh"],"latest_commit_sha":null,"homepage":"","language":"Batchfile","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/tatsuyafujisaki.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,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2017-12-31T00:39:01.000Z","updated_at":"2026-04-02T04:11:40.000Z","dependencies_parsed_at":"2023-04-10T22:38:16.918Z","dependency_job_id":"30f5e607-ca98-4cc1-a3d4-5789d46896e2","html_url":"https://github.com/tatsuyafujisaki/script-cheat-sheet","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tatsuyafujisaki/script-cheat-sheet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tatsuyafujisaki%2Fscript-cheat-sheet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tatsuyafujisaki%2Fscript-cheat-sheet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tatsuyafujisaki%2Fscript-cheat-sheet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tatsuyafujisaki%2Fscript-cheat-sheet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tatsuyafujisaki","download_url":"https://codeload.github.com/tatsuyafujisaki/script-cheat-sheet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tatsuyafujisaki%2Fscript-cheat-sheet/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31581864,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-08T14:31:17.711Z","status":"ssl_error","status_checked_at":"2026-04-08T14:31:17.202Z","response_time":54,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: 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":["apt","awk","base64","bash","batch","binary","curl","cut","ffmpeg","gradle","imagemagick","npm","pip","powershell","protoc","sed","sips","xcodeproj","zsh"],"created_at":"2024-12-12T05:10:31.588Z","updated_at":"2026-04-09T01:31:06.109Z","avatar_url":"https://github.com/tatsuyafujisaki.png","language":"Batchfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"# How to denote required and optional arguments on the command line\n* `\u003crequired_argument\u003e`\n* `[optional_argument]`\n\n\u003e Option-arguments are shown separated from their options by \u003cblank\u003e characters, except when the option-argument is enclosed in the '[' and ']' notation to indicate that it is optional.\n\nhttps://pubs.opengroup.org/onlinepubs/9799919799/basedefs/V1_chap12.html\n\n# Note\nZsh does not expand the tilde (~) in single or double quotes.\n\n\u003e initial tildes and equals signs are not expanded\n\nhttp://zsh.sourceforge.net/Guide/zshguide05.html\n\n# Best practices\n## What is the recommended way to temporarily switch to a different directory?\n- Using a parenthesized command aka subshell\n  - e.g. `(cd \u003cdirectory\u003e \u0026\u0026 ls)`\n- Using `cd \u003cdirectory\u003e` and `cd -`\n- Using `pushd \u003cdirectory\u003e` and `popd`\n\nDecision tree\n1. If your command can be written as a one-liner, use a subshell..\n1. If you switch to several different directories in a row, use `pushd \u003cdirectory\u003e` and `popd`.\n1. Otherwise, use `cd \u003cdirectory\u003e` and `cd -`.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftatsuyafujisaki%2Fscript-cheat-sheet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftatsuyafujisaki%2Fscript-cheat-sheet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftatsuyafujisaki%2Fscript-cheat-sheet/lists"}