{"id":15443372,"url":"https://github.com/0xff-dev/scripts","last_synced_at":"2025-10-06T03:46:35.600Z","repository":{"id":104627218,"uuid":"137902037","full_name":"0xff-dev/scripts","owner":"0xff-dev","description":null,"archived":false,"fork":false,"pushed_at":"2019-09-12T09:29:27.000Z","size":376,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-08-15T22:34:10.696Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/0xff-dev.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":"2018-06-19T14:22:24.000Z","updated_at":"2019-09-12T09:29:29.000Z","dependencies_parsed_at":null,"dependency_job_id":"d96ed175-c1a0-4ff0-9f41-12f63d6d1eeb","html_url":"https://github.com/0xff-dev/scripts","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/0xff-dev/scripts","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xff-dev%2Fscripts","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xff-dev%2Fscripts/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xff-dev%2Fscripts/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xff-dev%2Fscripts/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xff-dev","download_url":"https://codeload.github.com/0xff-dev/scripts/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xff-dev%2Fscripts/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278556187,"owners_count":26006079,"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","status":"online","status_checked_at":"2025-10-06T02:00:05.630Z","response_time":65,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":"2024-10-01T19:34:43.601Z","updated_at":"2025-10-06T03:46:35.556Z","avatar_url":"https://github.com/0xff-dev.png","language":"Go","readme":"# Scripts\n\n\u003e 一些自己用的脚本\n\n# 头像生成算法\n![avatar](images/150405230.png)\n\n\n# excel\\_to\\_json 说明\n### xlsx文件格式如下\n\u003ctable\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e1列\u003c/td\u003e\n        \u003ctd\u003e2列\u003c/td\u003e\n        \u003ctd\u003e3列\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e1\u003c/td\u003e\n        \u003ctd\u003e2\u003c/td\u003e\n        \u003ctd\u003e3\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e1\u003c/td\u003e\n        \u003ctd\u003e2\u003c/td\u003e\n        \u003ctd\u003e4\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e1\u003c/td\u003e\n        \u003ctd\u003e5\u003c/td\u003e\n        \u003ctd\u003e6\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e1\u003c/td\u003e\n        \u003ctd\u003e5\u003c/td\u003e\n        \u003ctd\u003e7\u003c/td\u003e\n    \u003c/tr\u003e\n    \u003ctr\u003e\n        \u003ctd\u003e8\u003c/td\u003e\n        \u003ctd\u003e9\u003c/td\u003e\n        \u003ctd\u003e10\u003c/td\u003e\n    \u003c/tr\u003e\n\u003c/table\u003e\n\n### 目标格式\n![excelToJson](./images/data_json.png)\n\n\n# runner.go 说明\n\u003e 通过通道监控程序的执行时间. 应用哎corn, 或者定时任务的云环境.\n\n# pool.go说明\n\u003e 模拟连接池, 使用mutex(互斥锁进行数据同步), resources是实现了Close接口的类型, 列入dbConnnect, PoolNew作为开放的工厂函数,   \n\u003e Acquire在资源中获取一个资源去使用, 如果不存在资源, 那么就用工厂函数factory进行创建. Release是放资源, 把资源放回到resources,  \n\u003e Close关闭池子, Release, Close使用额互斥锁, 保证数据closed的同步, 不能某个goroutine关闭池, \n\u003e 而其他的goroutine还在向resources写入数据\n\n# golang实现验证码\n![captcha](./captcha/res.jpg)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xff-dev%2Fscripts","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xff-dev%2Fscripts","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xff-dev%2Fscripts/lists"}