{"id":24203474,"url":"https://github.com/yanggujun/cookbook","last_synced_at":"2026-03-04T22:32:13.168Z","repository":{"id":79247537,"uuid":"107202866","full_name":"yanggujun/cookbook","owner":"yanggujun","description":"manuals, helps, cheet sheets","archived":false,"fork":false,"pushed_at":"2018-09-07T03:49:18.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-02T08:42:03.013Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Vim script","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/yanggujun.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}},"created_at":"2017-10-17T01:35:08.000Z","updated_at":"2018-09-07T03:49:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"ffa7266f-19e7-4a1a-8086-12e9ae8f0001","html_url":"https://github.com/yanggujun/cookbook","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/yanggujun/cookbook","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanggujun%2Fcookbook","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanggujun%2Fcookbook/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanggujun%2Fcookbook/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanggujun%2Fcookbook/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/yanggujun","download_url":"https://codeload.github.com/yanggujun/cookbook/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/yanggujun%2Fcookbook/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30096779,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T21:59:23.547Z","status":"ssl_error","status_checked_at":"2026-03-04T21:57:50.415Z","response_time":59,"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-01-13T22:35:27.477Z","updated_at":"2026-03-04T22:32:13.140Z","avatar_url":"https://github.com/yanggujun.png","language":"Vim script","funding_links":[],"categories":[],"sub_categories":[],"readme":"### bash color\n\n    Black        0;30     Dark Gray     1;30\n\n    Red          0;31     Light Red     1;31\n\n    Green        0;32     Light Green   1;32\n\n    Brown/Orange 0;33     Yellow        1;33\n\n    Blue         0;34     Light Blue    1;34\n\n    Purple       0;35     Light Purple  1;35\n\n    Cyan         0;36     Light Cyan    1;36\n\n    Light Gray   0;37     White         1;37\n    \n    no color     \n\nAnd then use them like this in your script:\n\n```bash\n  echo -e \"I \\033[0;31mlove\\033[0m github\"\n```\n\n\n### vim\n```\n    # run commands on each line\n    :\u003cstartline\u003e,\u003cendline\u003enorm \u003cvim commands\u003e\n    \n    # change case of the whole word\n    g~iw\n    \n    # split horizontally\n    :split\n    \n    # split vertically\n    :vsplit\n    \n    # replace a with b in the file\n    :%s/a/b/g\n    \n    # replace a with b in a range\n    :\u003cstartline\u003e,\u003cendline\u003es/a/b/g\n    \n    #delete every line that contains pattern\n    :\u003crange\u003eg/\u003cpattern\u003e/d\n    \n    #delete every line that does not contain pattern\n    :\u003crange\u003ev/\u003cpattern\u003e/d\n    \n    #run command every line\n    :\u003crange\u003enorm \u003cvim_command\u003e\n```\n\n### git\n\n```\n    git checkout -b \u003cnew_branch\u003e\n    \n    git remote show origin\n    \n    git branch -r\n    \n    #push a local branch to remote, -u is the short-cut for --set-upstream\n    git push -u origin \u003cnew_branch\u003e \n    \n    #delete a local branch. -d is the short-cut for --delete\n    git branch -d \u003cbranch_name\u003e\n    \n    #delete a remote branch\n    git push origin -d \u003cbranch_name\u003e\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanggujun%2Fcookbook","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyanggujun%2Fcookbook","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyanggujun%2Fcookbook/lists"}