{"id":500853,"date":"2026-10-29T13:30:12","date_gmt":"2026-10-29T10:30:12","guid":{"rendered":"https:\/\/savepearlharbor.com\/?p=500853"},"modified":"2026-10-29T13:30:12","modified_gmt":"2026-10-29T10:30:12","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=500853","title":{"rendered":"\u0421\u0442\u0430\u0442\u0438\u0441\u0442\u0438\u043a\u0430 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u0439 \u0440\u0435\u043b\u0438\u0437\u043e\u0432 GitHub \u043e\u0434\u043d\u0438\u043c \u043e\u043a\u043d\u043e\u043c: WinForms-\u0443\u0442\u0438\u043b\u0438\u0442\u0430 \u0432 \u043e\u0434\u043d\u043e\u043c .cs-\u0444\u0430\u0439\u043b\u0435 \u0431\u0435\u0437 Visual Studio"},"content":{"rendered":"<div xmlns=\"http:\/\/www.w3.org\/1999\/xhtml\">\n<p>GitHub \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0437\u0432\u0451\u0437\u0434\u044b \u0438 \u0444\u043e\u0440\u043a\u0438, \u043d\u043e \u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 \u0441\u043a\u0430\u0447\u0430\u043b\u0438 \u0444\u0430\u0439\u043b\u044b \u0438\u0437 \u0440\u0435\u043b\u0438\u0437\u043e\u0432. \u0426\u0438\u0444\u0440\u0430 \u0435\u0441\u0442\u044c \u0432 API, \u043f\u043e\u043b\u0435 <code>download_count<\/code> \u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0430\u0441\u0441\u0435\u0442\u0430. \u042f \u0437\u0430\u0445\u043e\u0442\u0435\u043b \u0432\u0438\u0434\u0435\u0442\u044c \u0435\u0451 \u0441\u0440\u0430\u0437\u0443 \u043f\u043e \u0432\u0441\u0435\u043c \u0441\u0432\u043e\u0438\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u043c, \u0434\u0430 \u0435\u0449\u0451 \u0441 \u0438\u0441\u0442\u043e\u0440\u0438\u0435\u0439, \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0443\u0442\u0438\u043b\u0438\u0442\u0443. \u041d\u0438\u0436\u0435 \u2014 \u043a\u0430\u043a \u043e\u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u0430 \u0438 \u043d\u0430 \u0447\u0442\u043e \u044f \u043d\u0430\u043b\u0435\u0442\u0435\u043b.<\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/extt\/03\/4c\/95\/034c9570f5f314fb9f1de8c1f3d8d1d7.png\" width=\"1164\" height=\"772\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/extt\/03\/4c\/95\/034c9570f5f314fb9f1de8c1f3d8d1d7.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/extt\/03\/4c\/95\/034c9570f5f314fb9f1de8c1f3d8d1d7.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<h3>\u041e\u0442\u043a\u0443\u0434\u0430 \u0431\u0435\u0440\u0443\u0442\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u0435<\/h3>\n<p>\u0412\u0441\u0451 \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0442\u0440\u0435\u043c\u044f \u0432\u0438\u0434\u0430\u043c\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043a REST API:<\/p>\n<ul>\n<li>\n<p><code>users\/{user}<\/code> \u2014 \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u0438;<\/p>\n<\/li>\n<li>\n<p><code>users\/{user}\/repos?type=owner&amp;per_page=100<\/code> \u2014 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438: \u0437\u0432\u0451\u0437\u0434\u044b, \u0444\u043e\u0440\u043a\u0438, \u044f\u0437\u044b\u043a, \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435;<\/p>\n<\/li>\n<li>\n<p><code>repos\/{user}\/{repo}\/releases?per_page=100<\/code> \u2014 \u0440\u0435\u043b\u0438\u0437\u044b, \u0430 \u0432 \u043d\u0438\u0445 <code>assets[].download_count<\/code>.<\/p>\n<\/li>\n<\/ul>\n<p>\u0424\u043e\u0440\u043a\u0438 \u0438 \u0447\u0435\u0440\u043d\u043e\u0432\u0438\u043a\u0438 \u0440\u0435\u043b\u0438\u0437\u043e\u0432 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u044e\u0442\u0441\u044f. \u0415\u0441\u043b\u0438 \u0437\u0430\u0434\u0430\u043d \u0442\u043e\u043a\u0435\u043d, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f <code>traffic\/views<\/code>, <code>traffic\/clones<\/code> \u0438 <code>traffic\/popular\/referrers<\/code>; \u0438\u0437 \u043f\u0435\u0440\u0432\u044b\u0445 \u0434\u0432\u0443\u0445 \u0431\u0435\u0440\u0443\u0442\u0441\u044f \u0438 \u043f\u043e\u0441\u0443\u0442\u043e\u0447\u043d\u044b\u0435 \u0441\u0447\u0451\u0442\u0447\u0438\u043a\u0438.<\/p>\n<p><strong>\u0427\u0442\u043e \u0441\u0442\u043e\u0438\u0442 \u043f\u043e\u043c\u043d\u0438\u0442\u044c.<\/strong> <code>download_count<\/code> \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0430\u0441\u0441\u0435\u0442\u044b \u0440\u0435\u043b\u0438\u0437\u0430. \u00abDownload ZIP\u00bb \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f, <code>git clone<\/code> \u0438 \u0430\u0432\u0442\u043e\u0430\u0440\u0445\u0438\u0432\u044b <code>Source code<\/code> \u0432 \u043d\u0435\u0433\u043e \u043d\u0435 \u0432\u0445\u043e\u0434\u044f\u0442, \u0442\u0430\u043a \u0447\u0442\u043e \u044d\u0442\u043e \u043d\u0438\u0436\u043d\u044f\u044f \u043e\u0446\u0435\u043d\u043a\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0438\u0438.<\/p>\n<h3>\u041b\u0438\u043c\u0438\u0442 60 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0432 \u0447\u0430\u0441<\/h3>\n<p>\u0411\u0435\u0437 \u0442\u043e\u043a\u0435\u043d\u0430 GitHub \u0434\u0430\u0451\u0442 60 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0432 \u0447\u0430\u0441 \u043d\u0430 IP. \u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u043e\u0438\u0442 2 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043f\u043b\u044e\u0441 \u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 (\u0440\u0435\u043b\u0438\u0437\u044b). \u0421 \u0442\u043e\u043a\u0435\u043d\u043e\u043c \u043b\u0438\u043c\u0438\u0442 5000, \u043d\u043e \u0442\u0440\u0430\u0444\u0438\u043a \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0435\u0449\u0451 \u043f\u043e 3 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0447\u0438\u0442\u0430\u0435\u0442 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 <code>X-RateLimit-Remaining<\/code>, <code>X-RateLimit-Limit<\/code> \u0438, \u043f\u0440\u0438 \u043e\u0442\u043a\u0430\u0437\u0435, <code>X-RateLimit-Reset<\/code>: \u0432 \u0441\u0442\u0440\u043e\u043a\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0432\u0438\u0434\u043d\u043e, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c, \u0430 \u043f\u0440\u0438 \u0438\u0441\u0447\u0435\u0440\u043f\u0430\u043d\u0438\u0438 \u043b\u0438\u043c\u0438\u0442\u0430 \u2014 \u0432\u043e \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0441\u043d\u043e\u0432\u0430. \u041d\u0430\u0434 \u0432\u0441\u0435\u043c\u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u0430\u043c\u0438 \u0432\u0438\u0441\u0438\u0442 \u0436\u0451\u043b\u0442\u0430\u044f \u043f\u043e\u043b\u043e\u0441\u0430 \u0441 \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u0435\u043c \u043f\u0440\u043e 60 \u0432 \u0447\u0430\u0441, \u0447\u0442\u043e\u0431\u044b \u043b\u0438\u043c\u0438\u0442 \u043d\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u0441\u044e\u0440\u043f\u0440\u0438\u0437\u043e\u043c.<\/p>\n<p>\u0422\u0440\u0430\u0444\u0438\u043a \u0442\u0440\u0435\u0431\u0443\u0435\u0442 fine-grained \u0442\u043e\u043a\u0435\u043d \u0441 \u043f\u0440\u0430\u0432\u043e\u043c Administration: Read-only. \u0415\u0441\u043b\u0438 GitHub \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 403\/404, \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0431\u0435\u0437 \u0442\u0440\u0430\u0444\u0438\u043a\u0430, \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0435 \u0441\u0442\u0440\u0430\u0434\u0430\u044e\u0442.<\/p>\n<h3>\u0418\u0441\u0442\u043e\u0440\u0438\u044f, \u0431\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0446\u0438\u0444\u0440\u044b \u0431\u0435\u0441\u043f\u043e\u043b\u0435\u0437\u043d\u044b<\/h3>\n<p>GitHub \u043e\u0442\u0434\u0430\u0451\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0447\u0451\u0442\u0447\u0438\u043a\u0430, \u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e \u0443 \u043d\u0435\u0433\u043e \u043d\u0435 \u0441\u043f\u0440\u043e\u0441\u0438\u0442\u044c. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0441\u043b\u0435 \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0441\u043d\u0438\u043c\u043e\u043a \u0432 <code>%APPDATA%\\GitHubDownloads\\history-&lt;user&gt;.json<\/code>: \u043e\u0431\u0449\u0438\u0435 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f, \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u043f\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u043c, \u0437\u0432\u0451\u0437\u0434\u044b, \u0444\u043e\u0440\u043a\u0438, \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u0438. \u0421\u043d\u0438\u043c\u043e\u043a \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f, \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c; \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f 400 \u0434\u043d\u0435\u0439. \u0418\u0437 \u044d\u0442\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0441\u0447\u0438\u0442\u0430\u044e\u0442\u0441\u044f \u00ab\u041d\u043e\u0432\u044b\u0445\u00bb (\u0441 \u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e \u0441\u043d\u0438\u043c\u043a\u0430), \u00ab\u0417\u0430 \u043d\u0435\u0434\u0435\u043b\u044e\u00bb, \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u0438 \u0442\u0440\u0435\u043d\u0434-\u0441\u043f\u0430\u0440\u043a\u043b\u0430\u0439\u043d\u044b \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432. \u041f\u043e\u043b\u044f \u0441\u043e \u0437\u0432\u0451\u0437\u0434\u0430\u043c\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u043b\u0438\u0441\u044c \u043f\u043e\u0437\u0436\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u0441\u0442\u0430\u0440\u044b\u0445 \u0444\u0430\u0439\u043b\u0430\u0445 \u0438\u0445 \u043d\u0435\u0442; \u0434\u043b\u044f \u0442\u0430\u043a\u0438\u0445 \u0441\u043d\u0438\u043c\u043a\u043e\u0432 \u0441\u0442\u043e\u0438\u0442 \u043c\u0430\u0440\u043a\u0435\u0440 <code>-1<\/code>, \u0438 \u0440\u0430\u0441\u0447\u0451\u0442\u044b \u043f\u043e \u0437\u0432\u0451\u0437\u0434\u0430\u043c \u0438\u0434\u0443\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0440\u0435\u0434\u0438 \u0441\u043d\u0438\u043c\u043a\u043e\u0432, \u0433\u0434\u0435 \u043e\u043d\u0438 \u0435\u0441\u0442\u044c.<\/p>\n<h3>\u041f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430: C# 5 \u0438 csc.exe \u0438\u0437 Windows<\/h3>\n<p>\u0417\u0430\u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0431\u044b\u043b\u0430 \u043e\u0434\u043d\u0438\u043c exe \u0431\u0435\u0437 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438 \u0431\u0435\u0437 Visual Studio \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438. \u041f\u043e\u0434\u043e\u0448\u0451\u043b .NET Framework 4, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0435\u0441\u0442\u044c \u0432 \u043b\u044e\u0431\u043e\u0439 Windows 10\/11: \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 <code>csc.exe<\/code> \u043b\u0435\u0436\u0438\u0442 \u0432 <code>%WINDIR%\\<\/code><a href=\"http:\/\/Microsoft.NET\" rel=\"noopener nofollow\"><code>Microsoft.NET<\/code><\/a><code>\\Framework64\\v4.0.30319<\/code>. \u0412\u0435\u0441\u044c \u043a\u043e\u0434 \u0436\u0438\u0432\u0451\u0442 \u0432 \u043e\u0434\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435, \u0430 \u0441\u0431\u043e\u0440\u043a\u0430 \u2014 \u043e\u0434\u043d\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430:<\/p>\n<pre><code class=\"powershell\">csc.exe \/nologo \/target:winexe \/optimize+ \/codepage:65001 \/out:GhDownloads.exe \/win32icon:src\\app.ico \/resource:src\\app.ico,app.ico \/r:System.Windows.Forms.dll \/r:System.Drawing.dll \/r:System.Web.Extensions.dll \/r:System.Security.dll \/r:System.Core.dll src\\GhDownloads.cs<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper\"><\/span><\/a><\/div><\/pre>\n<p>\u0426\u0435\u043d\u0430 \u2014 \u044f\u0437\u044b\u043a C# 5: \u043d\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u044f\u0446\u0438\u0438 \u0441\u0442\u0440\u043e\u043a <code>$\"\"<\/code>, \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 <code>?.<\/code>, <code>nameof<\/code> \u0438 <code>=&gt;<\/code> \u0443 \u0447\u043b\u0435\u043d\u043e\u0432 \u043a\u043b\u0430\u0441\u0441\u0430. JSON \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 <code>JavaScriptSerializer<\/code> \u0438\u0437 <code>System.Web.Extensions<\/code>, \u043b\u0438\u0448\u043d\u0438\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u043d\u0435\u0442.<\/p>\n<h3>\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u043e\u0432\u0443\u0448\u0435\u043a<\/h3>\n<p><strong>TLS 1.2.<\/strong> .NET 4.x \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043d\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043a <a href=\"http:\/\/api.github.com\" rel=\"noopener nofollow\">api.github.com<\/a>. \u041d\u0443\u0436\u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0430 \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435:<\/p>\n<pre><code class=\"cs\">ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072; \/\/ TLS 1.2<\/code><div class=\"code-explainer\"><a href=\"https:\/\/sourcecraft.dev\/\" class=\"tm-button code-explainer__link\" style=\"visibility: hidden;\"><span class=\"sc-logo-wrapper icon-only\"><\/span><\/a><\/div><\/pre>\n<p>\u0427\u0438\u0441\u043b\u043e 3072 \u2014 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 <code>SecurityProtocolType.Tls12<\/code>: \u0432 .NET 4.0 \u0441\u0430\u043c\u043e\u0433\u043e enum-\u0447\u043b\u0435\u043d\u0430 \u0435\u0449\u0451 \u043d\u0435\u0442, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0447\u0438\u0441\u043b\u043e\u043c.<\/p>\n<p><strong>\u0422\u043e\u043a\u0435\u043d.<\/strong> \u0425\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432 \u0440\u0435\u0435\u0441\u0442\u0440\u0435 <code>HKCU\\Software\\GitHubDownloads<\/code>, \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0447\u0435\u0440\u0435\u0437 <code>ProtectedData.Protect(..., DataProtectionScope.CurrentUser)<\/code>: \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043c\u043e\u0436\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0430 \u0436\u0435 \u0443\u0447\u0451\u0442\u043d\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c Windows. \u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 <a href=\"http:\/\/api.github.com\" rel=\"noopener nofollow\"><code>api.github.com<\/code><\/a> \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435 <code>Authorization: Bearer<\/code>. \u0415\u0441\u043b\u0438 \u0442\u043e\u043a\u0435\u043d \u0432 \u0440\u0435\u0435\u0441\u0442\u0440\u0435 \u043d\u0435 \u0437\u0430\u0434\u0430\u043d, \u0431\u0435\u0440\u0451\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f <code>GITHUB_TOKEN<\/code>.<\/p>\n<p><strong>\u0421\u0432\u043e\u044f \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0430.<\/strong> \u0421\u0442\u0440\u0430\u043d\u0438\u0446\u044b-\u0434\u0430\u0448\u0431\u043e\u0440\u0434\u044b \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u043d\u044b \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043d\u0430 \u043e\u0434\u043d\u043e\u043c <code>Canvas<\/code> \u0447\u0435\u0440\u0435\u0437 <code>TextRenderer<\/code> \u0438 <code>Graphics<\/code>, \u0430 \u043d\u0435 \u043d\u0430\u0431\u0440\u0430\u043d\u044b \u0438\u0437 \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043e\u0432. \u0424\u0443\u043d\u043a\u0446\u0438\u044f <code>Render<\/code> \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0432\u044b\u0441\u043e\u0442\u0443 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e, \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0430 \u0438\u0434\u0451\u0442 \u0447\u0435\u0440\u0435\u0437 <code>AutoScrollMinSize<\/code>. \u041a\u043b\u0438\u043a\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u0435 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0438 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u044f\u043c\u043e \u043f\u0440\u0438 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0435. \u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u2014 <code>ListView<\/code> \u0441 <code>OwnerDraw<\/code> \u0438 <code>DoubleBuffered<\/code> \u0434\u043b\u044f \u043f\u043b\u0430\u0432\u043d\u043e\u0441\u0442\u0438; \u043c\u0438\u043d\u0438-\u0433\u0440\u0430\u0444\u0438\u043a \u00ab\u0422\u0440\u0435\u043d\u0434\u00bb \u0440\u0438\u0441\u0443\u0435\u0442\u0441\u044f \u0432 \u044f\u0447\u0435\u0439\u043a\u0435. \u0414\u0432\u0430 \u043f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u0445 \u043a\u0430\u043c\u043d\u044f: <code>TextRenderer<\/code> \u043d\u0443\u0436\u0435\u043d \u0441 \u0444\u043b\u0430\u0433\u043e\u043c <code>PreserveGraphicsTranslateTransform<\/code>, \u0438\u043d\u0430\u0447\u0435 \u0442\u0435\u043a\u0441\u0442 \u043d\u0435 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0443, \u0430 \u043c\u0435\u0442\u043a\u0438 (<code>Label<\/code>) \u0441\u044a\u0435\u0434\u0430\u044e\u0442 <code>&amp;<\/code> \u043a\u0430\u043a \u043a\u043b\u044e\u0447 \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0430 (\u0432 \u00abReleases &amp; files\u00bb \u0430\u043c\u043f\u0435\u0440\u0441\u0430\u043d\u0434 \u043f\u0440\u043e\u043f\u0430\u0434\u0430\u0435\u0442, \u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0431\u0443\u043a\u0432\u0430 \u043f\u043e\u0434\u0447\u0451\u0440\u043a\u0438\u0432\u0430\u0435\u0442\u0441\u044f), \u0434\u043b\u044f \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 \u043d\u0443\u0436\u043d\u043e <code>UseMnemonic = false<\/code>.<\/p>\n<p><strong>\u0414\u0432\u0430 \u044f\u0437\u044b\u043a\u0430.<\/strong> \u041a\u0430\u0436\u0434\u0430\u044f \u043d\u0430\u0434\u043f\u0438\u0441\u044c \u0432 \u043a\u043e\u0434\u0435 \u2014 \u043f\u0430\u0440\u0430 \u00abru, en\u00bb. \u0421\u0442\u0440\u043e\u043a\u0438 \u043d\u0435\u043b\u044c\u0437\u044f \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0432 <code>const<\/code> \u0438 <code>static readonly<\/code>: \u043e\u043d\u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u044e\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u0438 \u044f\u0437\u044b\u043a \u043d\u0435 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442. \u0422\u043e\u043b\u044c\u043a\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u043c\u0435\u0442\u043e\u0434\u044b. \u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u0435\u043b\u044c \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442 \u043e\u043a\u043d\u043e, \u0441\u0442\u043e\u043b\u0431\u0446\u044b, \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0438 \u0441\u0442\u0430\u0442\u0443\u0441 \u043d\u0430 \u043b\u0435\u0442\u0443; \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u044f\u0437\u044b\u043a\u043e\u043c \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0438 \u043a\u0443\u043b\u044c\u0442\u0443\u0440\u0430 \u043f\u043e\u0442\u043e\u043a\u0430, \u0447\u0442\u043e\u0431\u044b \u0447\u0438\u0441\u043b\u0430 \u0448\u043b\u0438 \u043a\u0430\u043a <code>1 234,5<\/code> \u0438\u043b\u0438 <code>1,234.5<\/code>.<\/p>\n<h3>\u0427\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c<\/h3>\n<p>\u041f\u044f\u0442\u044c \u0440\u0430\u0437\u0434\u0435\u043b\u043e\u0432: \u043e\u0431\u0437\u043e\u0440 \u0441 \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u043c \u0440\u043e\u0441\u0442\u0430 \u0437\u0430 \u0442\u0440\u0438 \u043c\u0435\u0441\u044f\u0446\u0430, \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0441 \u0442\u0440\u0435\u043d\u0434\u0430\u043c\u0438, \u0440\u0435\u043b\u0438\u0437\u044b \u0438 \u0444\u0430\u0439\u043b\u044b (\u0434\u043e\u043b\u0438 \u043f\u043e \u0442\u0438\u043f\u0430\u043c \u0438 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u043c, \u043e\u0446\u0435\u043d\u043a\u0430 \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u043a\u0430\u043a \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u00d7 \u0440\u0430\u0437\u043c\u0435\u0440), \u0442\u0440\u0430\u0444\u0438\u043a, \u0438\u0441\u0442\u043e\u0440\u0438\u044f. \u041b\u0438\u043c\u0438\u0442 GitHub, \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u043b\u0438\u043c\u0438\u0442\u043e\u043c: \u0447\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432, \u0442\u0435\u043c \u0440\u0435\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c.<\/p>\n<figure class=\"full-width \"><img decoding=\"async\" src=\"https:\/\/habrastorage.org\/r\/w1560\/extt\/c2\/c9\/1c\/c2c91c49540d9b849a480ec627bc388e.png\" width=\"1164\" height=\"772\" sizes=\"auto, (max-width: 780px) 100vw, 50vw\" srcset=\"https:\/\/habrastorage.org\/r\/w780\/extt\/c2\/c9\/1c\/c2c91c49540d9b849a480ec627bc388e.png 780w,&#10;       https:\/\/habrastorage.org\/r\/w1560\/extt\/c2\/c9\/1c\/c2c91c49540d9b849a480ec627bc388e.png 781w\" loading=\"lazy\" decode=\"async\"\/><\/figure>\n<h3>\u0421\u0441\u044b\u043b\u043a\u0438<\/h3>\n<ul>\n<li>\n<p>\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 (\u043e\u0434\u0438\u043d \u0444\u0430\u0439\u043b <code>src\/GhDownloads.cs<\/code>): <a href=\"https:\/\/github.com\/OlegChe77\/github-downloads\" rel=\"noopener nofollow\">https:\/\/github.com\/OlegChe77\/github-downloads<\/a><\/p>\n<\/li>\n<li>\n<p>\u0413\u043e\u0442\u043e\u0432\u044b\u0439 exe (zip, 72 \u041a\u0411, Windows 10\/11): <a href=\"https:\/\/github.com\/OlegChe77\/github-downloads\/releases\/latest\/download\/GitHubDownloads.zip\" rel=\"noopener nofollow\">https:\/\/github.com\/OlegChe77\/github-downloads\/releases\/latest\/download\/GitHubDownloads.zip<\/a><\/p>\n<\/li>\n<\/ul>\n<p>\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0430 \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0439 \u043f\u043e\u0434\u043f\u0438\u0441\u044c\u044e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 SmartScreen \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435. \u041f\u0440\u043e\u0435\u043a\u0442 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439. \u041f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043a\u0430\u043a\u0438\u0435 \u0435\u0449\u0451 \u0446\u0438\u0444\u0440\u044b \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c, \u2014 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u0438\u043b\u0438 \u0432 Issues \u043d\u0430 GitHub.<\/p>\n<\/div>\n<p>\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/articles\/1101148\/\">https:\/\/habr.com\/ru\/articles\/1101148\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>GitHub \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u0437\u0432\u0451\u0437\u0434\u044b \u0438 \u0444\u043e\u0440\u043a\u0438, \u043d\u043e \u043d\u0435 \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0440\u0430\u0437 \u0441\u043a\u0430\u0447\u0430\u043b\u0438 \u0444\u0430\u0439\u043b\u044b \u0438\u0437 \u0440\u0435\u043b\u0438\u0437\u043e\u0432. \u0426\u0438\u0444\u0440\u0430 \u0435\u0441\u0442\u044c \u0432 API, \u043f\u043e\u043b\u0435 download_count \u0443 \u043a\u0430\u0436\u0434\u043e\u0433\u043e \u0430\u0441\u0441\u0435\u0442\u0430. \u042f \u0437\u0430\u0445\u043e\u0442\u0435\u043b \u0432\u0438\u0434\u0435\u0442\u044c \u0435\u0451 \u0441\u0440\u0430\u0437\u0443 \u043f\u043e \u0432\u0441\u0435\u043c \u0441\u0432\u043e\u0438\u043c \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u043c, \u0434\u0430 \u0435\u0449\u0451 \u0441 \u0438\u0441\u0442\u043e\u0440\u0438\u0435\u0439, \u0438 \u043d\u0430\u043f\u0438\u0441\u0430\u043b \u0443\u0442\u0438\u043b\u0438\u0442\u0443. \u041d\u0438\u0436\u0435 \u2014 \u043a\u0430\u043a \u043e\u043d\u0430 \u0443\u0441\u0442\u0440\u043e\u0435\u043d\u0430 \u0438 \u043d\u0430 \u0447\u0442\u043e \u044f \u043d\u0430\u043b\u0435\u0442\u0435\u043b.\u041e\u0442\u043a\u0443\u0434\u0430 \u0431\u0435\u0440\u0443\u0442\u0441\u044f \u0434\u0430\u043d\u043d\u044b\u0435\u0412\u0441\u0451 \u0434\u0435\u043b\u0430\u0435\u0442\u0441\u044f \u0442\u0440\u0435\u043c\u044f \u0432\u0438\u0434\u0430\u043c\u0438 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043a REST API:users\/{user} \u2014 \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u0438;users\/{user}\/repos?type=owner&amp;per_page=100 \u2014 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u0438: \u0437\u0432\u0451\u0437\u0434\u044b, \u0444\u043e\u0440\u043a\u0438, \u044f\u0437\u044b\u043a, \u043e\u043f\u0438\u0441\u0430\u043d\u0438\u0435;repos\/{user}\/{repo}\/releases?per_page=100 \u2014 \u0440\u0435\u043b\u0438\u0437\u044b, \u0430 \u0432 \u043d\u0438\u0445 assets[].download_count.\u0424\u043e\u0440\u043a\u0438 \u0438 \u0447\u0435\u0440\u043d\u043e\u0432\u0438\u043a\u0438 \u0440\u0435\u043b\u0438\u0437\u043e\u0432 \u043f\u0440\u043e\u043f\u0443\u0441\u043a\u0430\u044e\u0442\u0441\u044f. \u0415\u0441\u043b\u0438 \u0437\u0430\u0434\u0430\u043d \u0442\u043e\u043a\u0435\u043d, \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u044e\u0442\u0441\u044f traffic\/views, traffic\/clones \u0438 traffic\/popular\/referrers; \u0438\u0437 \u043f\u0435\u0440\u0432\u044b\u0445 \u0434\u0432\u0443\u0445 \u0431\u0435\u0440\u0443\u0442\u0441\u044f \u0438 \u043f\u043e\u0441\u0443\u0442\u043e\u0447\u043d\u044b\u0435 \u0441\u0447\u0451\u0442\u0447\u0438\u043a\u0438.\u0427\u0442\u043e \u0441\u0442\u043e\u0438\u0442 \u043f\u043e\u043c\u043d\u0438\u0442\u044c. download_count \u0441\u0447\u0438\u0442\u0430\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0430\u0441\u0441\u0435\u0442\u044b \u0440\u0435\u043b\u0438\u0437\u0430. \u00abDownload ZIP\u00bb \u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0435 \u0440\u0435\u043f\u043e\u0437\u0438\u0442\u043e\u0440\u0438\u044f, git clone \u0438 \u0430\u0432\u0442\u043e\u0430\u0440\u0445\u0438\u0432\u044b Source code \u0432 \u043d\u0435\u0433\u043e \u043d\u0435 \u0432\u0445\u043e\u0434\u044f\u0442, \u0442\u0430\u043a \u0447\u0442\u043e \u044d\u0442\u043e \u043d\u0438\u0436\u043d\u044f\u044f \u043e\u0446\u0435\u043d\u043a\u0430 \u0440\u0435\u0430\u043b\u044c\u043d\u043e\u0439 \u0430\u0443\u0434\u0438\u0442\u043e\u0440\u0438\u0438.\u041b\u0438\u043c\u0438\u0442 60 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0432 \u0447\u0430\u0441\u0411\u0435\u0437 \u0442\u043e\u043a\u0435\u043d\u0430 GitHub \u0434\u0430\u0451\u0442 60 \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u0432 \u0447\u0430\u0441 \u043d\u0430 IP. \u041e\u0431\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0442\u043e\u0438\u0442 2 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043f\u043b\u044e\u0441 \u043f\u043e \u043e\u0434\u043d\u043e\u043c\u0443 \u043d\u0430 \u043a\u0430\u0436\u0434\u044b\u0439 \u043f\u0440\u043e\u0435\u043a\u0442 (\u0440\u0435\u043b\u0438\u0437\u044b). \u0421 \u0442\u043e\u043a\u0435\u043d\u043e\u043c \u043b\u0438\u043c\u0438\u0442 5000, \u043d\u043e \u0442\u0440\u0430\u0444\u0438\u043a \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442 \u0435\u0449\u0451 \u043f\u043e 3 \u0437\u0430\u043f\u0440\u043e\u0441\u0430 \u043d\u0430 \u043f\u0440\u043e\u0435\u043a\u0442. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0447\u0438\u0442\u0430\u0435\u0442 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0438 X-RateLimit-Remaining, X-RateLimit-Limit \u0438, \u043f\u0440\u0438 \u043e\u0442\u043a\u0430\u0437\u0435, X-RateLimit-Reset: \u0432 \u0441\u0442\u0440\u043e\u043a\u0435 \u0441\u043e\u0441\u0442\u043e\u044f\u043d\u0438\u044f \u0432\u0438\u0434\u043d\u043e, \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u0437\u0430\u043f\u0440\u043e\u0441\u043e\u0432 \u043e\u0441\u0442\u0430\u043b\u043e\u0441\u044c, \u0430 \u043f\u0440\u0438 \u0438\u0441\u0447\u0435\u0440\u043f\u0430\u043d\u0438\u0438 \u043b\u0438\u043c\u0438\u0442\u0430 \u2014 \u0432\u043e \u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u043f\u0440\u043e\u0431\u043e\u0432\u0430\u0442\u044c \u0441\u043d\u043e\u0432\u0430. \u041d\u0430\u0434 \u0432\u0441\u0435\u043c\u0438 \u0440\u0430\u0437\u0434\u0435\u043b\u0430\u043c\u0438 \u0432\u0438\u0441\u0438\u0442 \u0436\u0451\u043b\u0442\u0430\u044f \u043f\u043e\u043b\u043e\u0441\u0430 \u0441 \u043d\u0430\u043f\u043e\u043c\u0438\u043d\u0430\u043d\u0438\u0435\u043c \u043f\u0440\u043e 60 \u0432 \u0447\u0430\u0441, \u0447\u0442\u043e\u0431\u044b \u043b\u0438\u043c\u0438\u0442 \u043d\u0435 \u043e\u043a\u0430\u0437\u0430\u043b\u0441\u044f \u0441\u044e\u0440\u043f\u0440\u0438\u0437\u043e\u043c.\u0422\u0440\u0430\u0444\u0438\u043a \u0442\u0440\u0435\u0431\u0443\u0435\u0442 fine-grained \u0442\u043e\u043a\u0435\u043d \u0441 \u043f\u0440\u0430\u0432\u043e\u043c Administration: Read-only. \u0415\u0441\u043b\u0438 GitHub \u043e\u0442\u0432\u0435\u0447\u0430\u0435\u0442 403\/404, \u043f\u0440\u043e\u0435\u043a\u0442 \u043f\u0440\u043e\u0441\u0442\u043e \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0431\u0435\u0437 \u0442\u0440\u0430\u0444\u0438\u043a\u0430, \u043e\u0441\u0442\u0430\u043b\u044c\u043d\u044b\u0435 \u0434\u0430\u043d\u043d\u044b\u0435 \u043d\u0435 \u0441\u0442\u0440\u0430\u0434\u0430\u044e\u0442.\u0418\u0441\u0442\u043e\u0440\u0438\u044f, \u0431\u0435\u0437 \u043a\u043e\u0442\u043e\u0440\u043e\u0439 \u0446\u0438\u0444\u0440\u044b \u0431\u0435\u0441\u043f\u043e\u043b\u0435\u0437\u043d\u044bGitHub \u043e\u0442\u0434\u0430\u0451\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u043a\u0443\u0449\u0435\u0435 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 \u0441\u0447\u0451\u0442\u0447\u0438\u043a\u0430, \u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e \u0443 \u043d\u0435\u0433\u043e \u043d\u0435 \u0441\u043f\u0440\u043e\u0441\u0438\u0442\u044c. \u041f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u043e\u0441\u043b\u0435 \u043a\u0430\u0436\u0434\u043e\u0439 \u043f\u0440\u043e\u0432\u0435\u0440\u043a\u0438 \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0434\u043e\u043f\u0438\u0441\u044b\u0432\u0430\u0435\u0442 \u0441\u043d\u0438\u043c\u043e\u043a \u0432 %APPDATA%\\GitHubDownloads\\history-&lt;user&gt;.json: \u043e\u0431\u0449\u0438\u0435 \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f, \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u043f\u043e \u043f\u0440\u043e\u0435\u043a\u0442\u0430\u043c, \u0437\u0432\u0451\u0437\u0434\u044b, \u0444\u043e\u0440\u043a\u0438, \u043f\u043e\u0434\u043f\u0438\u0441\u0447\u0438\u043a\u0438. \u0421\u043d\u0438\u043c\u043e\u043a \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f, \u0442\u043e\u043b\u044c\u043a\u043e \u0435\u0441\u043b\u0438 \u0447\u0442\u043e-\u0442\u043e \u0438\u0437\u043c\u0435\u043d\u0438\u043b\u043e\u0441\u044c; \u0445\u0440\u0430\u043d\u044f\u0442\u0441\u044f 400 \u0434\u043d\u0435\u0439. \u0418\u0437 \u044d\u0442\u043e\u0433\u043e \u0444\u0430\u0439\u043b\u0430 \u0441\u0447\u0438\u0442\u0430\u044e\u0442\u0441\u044f \u00ab\u041d\u043e\u0432\u044b\u0445\u00bb (\u0441 \u043f\u0440\u043e\u0448\u043b\u043e\u0433\u043e \u0441\u043d\u0438\u043c\u043a\u0430), \u00ab\u0417\u0430 \u043d\u0435\u0434\u0435\u043b\u044e\u00bb, \u0433\u0440\u0430\u0444\u0438\u043a\u0438 \u0438 \u0442\u0440\u0435\u043d\u0434-\u0441\u043f\u0430\u0440\u043a\u043b\u0430\u0439\u043d\u044b \u0432 \u0442\u0430\u0431\u043b\u0438\u0446\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432. \u041f\u043e\u043b\u044f \u0441\u043e \u0437\u0432\u0451\u0437\u0434\u0430\u043c\u0438 \u0434\u043e\u0431\u0430\u0432\u043b\u044f\u043b\u0438\u0441\u044c \u043f\u043e\u0437\u0436\u0435, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0432 \u0441\u0442\u0430\u0440\u044b\u0445 \u0444\u0430\u0439\u043b\u0430\u0445 \u0438\u0445 \u043d\u0435\u0442; \u0434\u043b\u044f \u0442\u0430\u043a\u0438\u0445 \u0441\u043d\u0438\u043c\u043a\u043e\u0432 \u0441\u0442\u043e\u0438\u0442 \u043c\u0430\u0440\u043a\u0435\u0440 -1, \u0438 \u0440\u0430\u0441\u0447\u0451\u0442\u044b \u043f\u043e \u0437\u0432\u0451\u0437\u0434\u0430\u043c \u0438\u0434\u0443\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0441\u0440\u0435\u0434\u0438 \u0441\u043d\u0438\u043c\u043a\u043e\u0432, \u0433\u0434\u0435 \u043e\u043d\u0438 \u0435\u0441\u0442\u044c.\u041f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430: C# 5 \u0438 csc.exe \u0438\u0437 Windows\u0417\u0430\u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c, \u0447\u0442\u043e\u0431\u044b \u043f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u0431\u044b\u043b\u0430 \u043e\u0434\u043d\u0438\u043c exe \u0431\u0435\u0437 \u0443\u0441\u0442\u0430\u043d\u043e\u0432\u043a\u0438 \u0438 \u0431\u0435\u0437 Visual Studio \u0434\u043b\u044f \u0441\u0431\u043e\u0440\u043a\u0438. \u041f\u043e\u0434\u043e\u0448\u0451\u043b .NET Framework 4, \u043a\u043e\u0442\u043e\u0440\u044b\u0439 \u0435\u0441\u0442\u044c \u0432 \u043b\u044e\u0431\u043e\u0439 Windows 10\/11: \u043a\u043e\u043c\u043f\u0438\u043b\u044f\u0442\u043e\u0440 csc.exe \u043b\u0435\u0436\u0438\u0442 \u0432 %WINDIR%\\Microsoft.NET\\Framework64\\v4.0.30319. \u0412\u0435\u0441\u044c \u043a\u043e\u0434 \u0436\u0438\u0432\u0451\u0442 \u0432 \u043e\u0434\u043d\u043e\u043c \u0444\u0430\u0439\u043b\u0435, \u0430 \u0441\u0431\u043e\u0440\u043a\u0430 \u2014 \u043e\u0434\u043d\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430:csc.exe \/nologo \/target:winexe \/optimize+ \/codepage:65001 \/out:GhDownloads.exe \/win32icon:src\\app.ico \/resource:src\\app.ico,app.ico \/r:System.Windows.Forms.dll \/r:System.Drawing.dll \/r:System.Web.Extensions.dll \/r:System.Security.dll \/r:System.Core.dll src\\GhDownloads.cs\u0426\u0435\u043d\u0430 \u2014 \u044f\u0437\u044b\u043a C# 5: \u043d\u0435\u0442 \u0438\u043d\u0442\u0435\u0440\u043f\u043e\u043b\u044f\u0446\u0438\u0438 \u0441\u0442\u0440\u043e\u043a $&#187;&#187;, \u043e\u043f\u0435\u0440\u0430\u0442\u043e\u0440\u0430 ?., nameof \u0438 =&gt; \u0443 \u0447\u043b\u0435\u043d\u043e\u0432 \u043a\u043b\u0430\u0441\u0441\u0430. JSON \u0440\u0430\u0437\u0431\u0438\u0440\u0430\u0435\u0442\u0441\u044f \u0447\u0435\u0440\u0435\u0437 JavaScriptSerializer \u0438\u0437 System.Web.Extensions, \u043b\u0438\u0448\u043d\u0438\u0445 \u043f\u0430\u043a\u0435\u0442\u043e\u0432 \u043d\u0435\u0442.\u041d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043b\u043e\u0432\u0443\u0448\u0435\u043aTLS 1.2. .NET 4.x \u043f\u043e \u0443\u043c\u043e\u043b\u0447\u0430\u043d\u0438\u044e \u043d\u0435 \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0430\u0435\u0442\u0441\u044f \u043a api.github.com. \u041d\u0443\u0436\u043d\u0430 \u0441\u0442\u0440\u043e\u043a\u0430 \u043f\u0440\u0438 \u0441\u0442\u0430\u0440\u0442\u0435:ServicePointManager.SecurityProtocol = (SecurityProtocolType)3072; \/\/ TLS 1.2\u0427\u0438\u0441\u043b\u043e 3072 \u2014 \u0437\u043d\u0430\u0447\u0435\u043d\u0438\u0435 SecurityProtocolType.Tls12: \u0432 .NET 4.0 \u0441\u0430\u043c\u043e\u0433\u043e enum-\u0447\u043b\u0435\u043d\u0430 \u0435\u0449\u0451 \u043d\u0435\u0442, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u043f\u0440\u0438\u0432\u0435\u0434\u0435\u043d\u0438\u0435 \u0447\u0438\u0441\u043b\u043e\u043c.\u0422\u043e\u043a\u0435\u043d. \u0425\u0440\u0430\u043d\u0438\u0442\u0441\u044f \u0432 \u0440\u0435\u0435\u0441\u0442\u0440\u0435 HKCU\\Software\\GitHubDownloads, \u0437\u0430\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0439 \u0447\u0435\u0440\u0435\u0437 ProtectedData.Protect(&#8230;, DataProtectionScope.CurrentUser): \u0440\u0430\u0441\u0448\u0438\u0444\u0440\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u043c\u043e\u0436\u0435\u0442 \u0442\u043e\u043b\u044c\u043a\u043e \u0442\u0430 \u0436\u0435 \u0443\u0447\u0451\u0442\u043d\u0430\u044f \u0437\u0430\u043f\u0438\u0441\u044c Windows. \u041e\u0442\u043f\u0440\u0430\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u0442\u043e\u043b\u044c\u043a\u043e \u043d\u0430 api.github.com \u0432 \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u0435 Authorization: Bearer. \u0415\u0441\u043b\u0438 \u0442\u043e\u043a\u0435\u043d \u0432 \u0440\u0435\u0435\u0441\u0442\u0440\u0435 \u043d\u0435 \u0437\u0430\u0434\u0430\u043d, \u0431\u0435\u0440\u0451\u0442\u0441\u044f \u043f\u0435\u0440\u0435\u043c\u0435\u043d\u043d\u0430\u044f \u043e\u043a\u0440\u0443\u0436\u0435\u043d\u0438\u044f GITHUB_TOKEN.\u0421\u0432\u043e\u044f \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0430. \u0421\u0442\u0440\u0430\u043d\u0438\u0446\u044b-\u0434\u0430\u0448\u0431\u043e\u0440\u0434\u044b \u043d\u0430\u0440\u0438\u0441\u043e\u0432\u0430\u043d\u044b \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u043d\u0430 \u043e\u0434\u043d\u043e\u043c Canvas \u0447\u0435\u0440\u0435\u0437 TextRenderer \u0438 Graphics, \u0430 \u043d\u0435 \u043d\u0430\u0431\u0440\u0430\u043d\u044b \u0438\u0437 \u0433\u043e\u0442\u043e\u0432\u044b\u0445 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u043e\u0432. \u0424\u0443\u043d\u043a\u0446\u0438\u044f Render \u0432\u043e\u0437\u0432\u0440\u0430\u0449\u0430\u0435\u0442 \u0432\u044b\u0441\u043e\u0442\u0443 \u0441\u043e\u0434\u0435\u0440\u0436\u0438\u043c\u043e\u0433\u043e, \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0430 \u0438\u0434\u0451\u0442 \u0447\u0435\u0440\u0435\u0437 AutoScrollMinSize. \u041a\u043b\u0438\u043a\u0430\u0431\u0435\u043b\u044c\u043d\u044b\u0435 \u043e\u0431\u043b\u0430\u0441\u0442\u0438 \u0438 \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u043a\u0438 \u0441\u043e\u0431\u0438\u0440\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u044f\u043c\u043e \u043f\u0440\u0438 \u043e\u0442\u0440\u0438\u0441\u043e\u0432\u043a\u0435. \u0422\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u2014 ListView \u0441 OwnerDraw \u0438 DoubleBuffered \u0434\u043b\u044f \u043f\u043b\u0430\u0432\u043d\u043e\u0441\u0442\u0438; \u043c\u0438\u043d\u0438-\u0433\u0440\u0430\u0444\u0438\u043a \u00ab\u0422\u0440\u0435\u043d\u0434\u00bb \u0440\u0438\u0441\u0443\u0435\u0442\u0441\u044f \u0432 \u044f\u0447\u0435\u0439\u043a\u0435. \u0414\u0432\u0430 \u043f\u043e\u0434\u0432\u043e\u0434\u043d\u044b\u0445 \u043a\u0430\u043c\u043d\u044f: TextRenderer \u043d\u0443\u0436\u0435\u043d \u0441 \u0444\u043b\u0430\u0433\u043e\u043c PreserveGraphicsTranslateTransform, \u0438\u043d\u0430\u0447\u0435 \u0442\u0435\u043a\u0441\u0442 \u043d\u0435 \u0443\u0447\u0438\u0442\u044b\u0432\u0430\u0435\u0442 \u043f\u0440\u043e\u043a\u0440\u0443\u0442\u043a\u0443, \u0430 \u043c\u0435\u0442\u043a\u0438 (Label) \u0441\u044a\u0435\u0434\u0430\u044e\u0442 &amp; \u043a\u0430\u043a \u043a\u043b\u044e\u0447 \u0431\u044b\u0441\u0442\u0440\u043e\u0433\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0430 (\u0432 \u00abReleases &amp; files\u00bb \u0430\u043c\u043f\u0435\u0440\u0441\u0430\u043d\u0434 \u043f\u0440\u043e\u043f\u0430\u0434\u0430\u0435\u0442, \u0430 \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f \u0431\u0443\u043a\u0432\u0430 \u043f\u043e\u0434\u0447\u0451\u0440\u043a\u0438\u0432\u0430\u0435\u0442\u0441\u044f), \u0434\u043b\u044f \u0437\u0430\u0433\u043e\u043b\u043e\u0432\u043a\u043e\u0432 \u043d\u0443\u0436\u043d\u043e UseMnemonic = false.\u0414\u0432\u0430 \u044f\u0437\u044b\u043a\u0430. \u041a\u0430\u0436\u0434\u0430\u044f \u043d\u0430\u0434\u043f\u0438\u0441\u044c \u0432 \u043a\u043e\u0434\u0435 \u2014 \u043f\u0430\u0440\u0430 \u00abru, en\u00bb. \u0421\u0442\u0440\u043e\u043a\u0438 \u043d\u0435\u043b\u044c\u0437\u044f \u0434\u0435\u0440\u0436\u0430\u0442\u044c \u0432 const \u0438 static readonly: \u043e\u043d\u0438 \u0432\u044b\u0447\u0438\u0441\u043b\u044f\u044e\u0442\u0441\u044f \u043e\u0434\u0438\u043d \u0440\u0430\u0437 \u0438 \u044f\u0437\u044b\u043a \u043d\u0435 \u043f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442. \u0422\u043e\u043b\u044c\u043a\u043e \u0441\u0432\u043e\u0439\u0441\u0442\u0432\u0430 \u0438 \u043c\u0435\u0442\u043e\u0434\u044b. \u041f\u0435\u0440\u0435\u043a\u043b\u044e\u0447\u0430\u0442\u0435\u043b\u044c \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0435\u0442 \u043e\u043a\u043d\u043e, \u0441\u0442\u043e\u043b\u0431\u0446\u044b, \u043f\u043e\u0434\u0440\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u0438 \u0441\u0442\u0430\u0442\u0443\u0441 \u043d\u0430 \u043b\u0435\u0442\u0443; \u0432\u043c\u0435\u0441\u0442\u0435 \u0441 \u044f\u0437\u044b\u043a\u043e\u043c \u043c\u0435\u043d\u044f\u0435\u0442\u0441\u044f \u0438 \u043a\u0443\u043b\u044c\u0442\u0443\u0440\u0430 \u043f\u043e\u0442\u043e\u043a\u0430, \u0447\u0442\u043e\u0431\u044b \u0447\u0438\u0441\u043b\u0430 \u0448\u043b\u0438 \u043a\u0430\u043a 1 234,5 \u0438\u043b\u0438 1,234.5.\u0427\u0442\u043e \u043f\u043e\u043b\u0443\u0447\u0438\u043b\u043e\u0441\u044c\u041f\u044f\u0442\u044c \u0440\u0430\u0437\u0434\u0435\u043b\u043e\u0432: \u043e\u0431\u0437\u043e\u0440 \u0441 \u0433\u0440\u0430\u0444\u0438\u043a\u043e\u043c \u0440\u043e\u0441\u0442\u0430 \u0437\u0430 \u0442\u0440\u0438 \u043c\u0435\u0441\u044f\u0446\u0430, \u0442\u0430\u0431\u043b\u0438\u0446\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432 \u0441 \u0442\u0440\u0435\u043d\u0434\u0430\u043c\u0438, \u0440\u0435\u043b\u0438\u0437\u044b \u0438 \u0444\u0430\u0439\u043b\u044b (\u0434\u043e\u043b\u0438 \u043f\u043e \u0442\u0438\u043f\u0430\u043c \u0438 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u0430\u043c, \u043e\u0446\u0435\u043d\u043a\u0430 \u0442\u0440\u0430\u0444\u0438\u043a\u0430 \u043a\u0430\u043a \u0441\u043a\u0430\u0447\u0438\u0432\u0430\u043d\u0438\u044f \u00d7 \u0440\u0430\u0437\u043c\u0435\u0440), \u0442\u0440\u0430\u0444\u0438\u043a, \u0438\u0441\u0442\u043e\u0440\u0438\u044f. \u041b\u0438\u043c\u0438\u0442 GitHub, \u043a \u0441\u043e\u0436\u0430\u043b\u0435\u043d\u0438\u044e, \u043e\u0441\u0442\u0430\u043b\u0441\u044f \u043b\u0438\u043c\u0438\u0442\u043e\u043c: \u0447\u0435\u043c \u0431\u043e\u043b\u044c\u0448\u0435 \u043f\u0440\u043e\u0435\u043a\u0442\u043e\u0432, \u0442\u0435\u043c \u0440\u0435\u0436\u0435 \u043c\u043e\u0436\u043d\u043e \u043e\u0431\u043d\u043e\u0432\u043b\u044f\u0442\u044c.\u0421\u0441\u044b\u043b\u043a\u0438\u0421\u0442\u0440\u0430\u043d\u0438\u0446\u0430 \u043f\u0440\u043e\u0435\u043a\u0442\u0430 \u0438 \u0438\u0441\u0445\u043e\u0434\u043d\u044b\u0439 \u043a\u043e\u0434 (\u043e\u0434\u0438\u043d \u0444\u0430\u0439\u043b src\/GhDownloads.cs): https:\/\/github.com\/OlegChe77\/github-downloads\u0413\u043e\u0442\u043e\u0432\u044b\u0439 exe (zip, 72 \u041a\u0411, Windows 10\/11): https:\/\/github.com\/OlegChe77\/github-downloads\/releases\/latest\/download\/GitHubDownloads.zip\u041f\u0440\u043e\u0433\u0440\u0430\u043c\u043c\u0430 \u043d\u0435 \u043f\u043e\u0434\u043f\u0438\u0441\u0430\u043d\u0430 \u0446\u0438\u0444\u0440\u043e\u0432\u043e\u0439 \u043f\u043e\u0434\u043f\u0438\u0441\u044c\u044e, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 SmartScreen \u043c\u043e\u0436\u0435\u0442 \u0437\u0430\u043f\u0440\u043e\u0441\u0438\u0442\u044c \u043f\u043e\u0434\u0442\u0432\u0435\u0440\u0436\u0434\u0435\u043d\u0438\u0435. \u041f\u0440\u043e\u0435\u043a\u0442 \u0431\u0435\u0441\u043f\u043b\u0430\u0442\u043d\u044b\u0439. \u041f\u0440\u0435\u0434\u043b\u043e\u0436\u0435\u043d\u0438\u044f, \u043a\u0430\u043a\u0438\u0435 \u0435\u0449\u0451 \u0446\u0438\u0444\u0440\u044b \u043f\u043e\u043a\u0430\u0437\u044b\u0432\u0430\u0442\u044c, \u2014 \u0432 \u043a\u043e\u043c\u043c\u0435\u043d\u0442\u0430\u0440\u0438\u044f\u0445 \u0438\u043b\u0438 \u0432 Issues \u043d\u0430 GitHub.\u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 https:\/\/habr.com\/ru\/articles\/1101148\/<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-500853","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/500853","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=500853"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/500853\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=500853"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=500853"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=500853"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}