{"id":16137645,"url":"https://github.com/cathaysia/tools","last_synced_at":"2025-04-06T17:16:55.148Z","repository":{"id":51892207,"uuid":"288469669","full_name":"cathaysia/Tools","owner":"cathaysia","description":"重写了一部分常用的小工具","archived":false,"fork":false,"pushed_at":"2021-06-04T14:58:13.000Z","size":8091,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-27T07:46:40.537Z","etag":null,"topics":["cpp","tools"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cathaysia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-08-18T13:53:15.000Z","updated_at":"2022-04-14T14:59:09.000Z","dependencies_parsed_at":"2022-08-23T07:10:28.972Z","dependency_job_id":null,"html_url":"https://github.com/cathaysia/Tools","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cathaysia%2FTools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cathaysia%2FTools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cathaysia%2FTools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cathaysia%2FTools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cathaysia","download_url":"https://codeload.github.com/cathaysia/Tools/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247517917,"owners_count":20951719,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["cpp","tools"],"created_at":"2024-10-09T23:28:49.695Z","updated_at":"2025-04-06T17:16:55.129Z","avatar_url":"https://github.com/cathaysia.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Tools\n重写了一部分常用的小工具\n\n# 构建\n\n```bash\ncmake -B build -DCMAKE_BUILD_TYPE=Release\ncmake --build build\n```\n\n现在，编译完成的软件在 `./build/bin` 目录下\n\n# 文档\n\n文档现在先暂时放到 README 下\n\n## xsel\npowershell 实际上是有类似 xsel 的命令：\n\n```powershell\nSet-Alias -name xsel -value Set-ClipBoard\n```\n\n当然，既然有 Set-ClipBoard，自然也有 Get-ClipBoard。\n这个命令主要是给 cmd 用的。\n\n相比 linux 下的 xsel 而言，这个只实现了两个功能：\n\n```shell\ncat 1.txt | xsel # powershell\ntype 1.txt | xsel # cmd\nxsel -o\n```\n只有用来读写剪贴板的功能\n\n## xxd\n\n用来显示一个文件的二进制形式及其对应字符串\n整个文件会以 ASCII 的形式解析，所有不可见字符均被 FALLBACK 字符替换，这意味着你没办法用这个程序来看 utf-8 文件的 BOM 是多少\n而且这个程序的效率比较低，在于其他程序通过管道符使用时延迟比较明显\n\n### 使用\n\n```shell\ncat 1.txt | xxd\nxxd 1.txt\nxxd 1.txt | head -n 20\n```\n\n## cppname\n\n类似c++filt的软件\n\nc++filt 已经很好了，可以只能看函数的名字，没法看类型名，对 [getFullName](./include/Utils.h) 包装一下\n\n# 规范\n\n项目遵循\n\n- [Google 设计规范](https://zh-google-styleguide.readthedocs.io/en/latest/google-cpp-styleguide/contents/)\n- [Modern CMake#\n  How to structure your project](https://gitlab.com/CLIUtils/modern-cmake/-/blob/master/chapters/basics/structure.md)\n- [Modern CMake 最佳实践#交叉编译](https://www.jianshu.com/p/8abf754654c4)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcathaysia%2Ftools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcathaysia%2Ftools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcathaysia%2Ftools/lists"}