茶白博客 - github
type: channel
link: https://blog.11dz.cn/tag/github
items: 一批GitHub未注册的纯数字用户名和用户名未注册检测脚本(python)
items: github的.gitignore忽略文件不生效
items: 生成Github上的小图标/小徽章且转换成png图片
items: windows代理服务器脚本设置仅访问指定github或指定站点
items: [github]新建仓库并上传项目

一批GitHub未注册的纯数字用户名和用户名未注册检测脚本(python)
type: item
date: 2025-09-14T02:32:00+08:00
description: id列表 ( 2025/9/14全部有效可注册 )10156,10183,10185,10194,10250,10252,10280,10296,10332,10338,10342,10354,10366,10377,10378,10380,10387,10421,10431,10437,10448,10458,10460,10461,10462,10469,10479,10485,10487,10490,10491,10494,10496,10520,10531,10534,10535,10539,10548,10552,10554,10556,10570,10572,10583,10589,10590,10592,10598,10613,10638,10649,10657,10660,10662,10667,10668,10674,10675,10677,10671,10679,10681,10684,10683,10685,10691,10714,10731,10737,10738,10740,10743,10745,10746,10748,10755,10756,10758,10769,10773,10774,10779,10781,10790,10793,10795,10800,10857,10863,10867,10860,10872,10875,10884,10898,10947,10961,10991,11008,11043,11061,11064,11067,11076,11079,11083,11084,11089,11094,11097,11262,11316,11352,11367,11397,11460,11472,11473,11560,11561,11603,11604,11608,11638,11659,11660,11664,11668,11697,11715,11764,11795,11804,11831,11837,11854,11853,11859,11863,11865,11939,11943,11955,11957,11978,12075,12088,12096,12160,12494,12594,12609,12641,12675,12684,12706,12731,12797,12867,13006,13046,13047,13057,13058,13064,13067,13068,13074,13075,13078,13080,13085,13086,13088,13093,13094,13099,13108,13158,13183,13191,13192,13195,13228,13239,13305,13303,13318,13359,13362,13382,13393,13395,13396,13399,13404,13474,13525,13540,13541,13614,13618,13635,13676,13722,13734,13743,13744,13745,13778,13787,13807,13842,13845,13865,13907,13916,13917,13919,13925,13933,13935,13943,13959,13982,13983,13984,13993,14003,14011,14019,14023,14049,14051,14054,14057,14061,14066,14075,14076,14079,14084,14085,14086,14093,14096,14102,14116,14133,14139,14148,14164,14167,14170,14168,14175,14185,14192,14195,14196,14204,14209,14216,14247,14249,14276,14278,14284,14286,14287,14292,14293,14301,14302,14329,14330,14331,14339,14340,14368,14381,14382,14391,14392,14393,14395,14396,14398,14403,14408,14431,14439,14442,14469,14473,14479,14480,14484,14486,14487,14492,14494,14495,14499,14504,14508,14510,14517,14518,14519,14547,14573,14584,14585,14602,14617,14618,14620,14630,14631,14640,14643,14647,14668,14670,14671,14674,14683,1…

github的.gitignore忽略文件不生效
type: item
date: 2022-09-11T03:00:37+08:00
description: 最近有个项目因为涉及到秘钥配置，所以添加到了gitignore内，但是添加后，每次提交仍然会出现排除的问题，导致一不小心把秘钥也给提交到公共库里了，所以研究了一下解决方案。原因.gitignore只能忽略那些原来没有被track的文件，如果某些文件已经被纳入了版本管理中，则修改.gitignore是无效的。解决办法删除本地缓存，改变成未track状态，后重新提交git rm -r --cached . git add . git commit -m 'update .gitignore'

生成Github上的小图标/小徽章且转换成png图片
type: item
date: 2022-07-10T20:15:00+08:00
description: 生成Github上的小图标/小徽章且转换成png图片首先打开 https://shields.io/然后生成后https://img.shields.io/badge/%E6%B5%8B%E8%AF%95-123-brightgreen打开https://www.aconvert.com/cn/image/svg-to-png/选择链接,填入刚才生成的图标链接即可然后即可转换成png图片格式

windows代理服务器脚本设置仅访问指定github或指定站点
type: item
date: 2020-02-08T14:47:00+08:00
description: 有些时候github上不去,使用ip代理访问的时候就可能会出现能访问github的同时国内一些网站无法访问解决办法打开系统设置->网络和Internet->代理->脚本地址使用你搭建代理ip的服务器在弄一个静态网站出来然后新建一个文件 例如 叫 github.pacfunction FindProxyForURL(url, host) { if (isPlainHostName(host) // including localhost || shExpMatch(host, "*.local")) { return "DIRECT"; } // only checks plain IP addresses to avoid leaking domain name if (/^[0-9.]+$/.test(host)) { if (isInNet(host, "10.0.0.0", "255.0.0.0") || isInNet(host, "172.16.0.0", "255.240.0.0") || isInNet(host, "192.168.0.0", "255.255.0.0") || isInNet(host, "127.0.0.0", "255.255.255.0")) { return "DIRECT"; } } if (/github|facebook|githubassets|bornsecret|githubusercontent|videoram|youtube|fbcdn|branch/.test(host)) { return "PROXY 代理服务器地址:端口"; } return "DIRECT"; }然后脚本地址填这个静态网站映射的地址就行了tips 有些同学图方便用的工具科学上网每次连接的时候都会导致这个脚本地址重置那么就可以写个脚本软件出来 每次连的时候快捷操作一下注册表Software\Microsoft\Windows\CurrentVersion\Internet Settings\AutoConfigURL值为脚本地址

[github]新建仓库并上传项目
type: item
date: 2016-06-02T17:45:00+08:00
description: git init #初始化本地仓库 git add * #添加要push到远程仓库的文件或文件夹 git commit -m "first commit" git remote add origin https://github.com/githubID/test.git #建立远程仓库 git push -u origin master #将本地仓库push到远程仓库