diff --git a/public/404.html b/public/404.html deleted file mode 100644 index 217a43f..0000000 --- a/public/404.html +++ /dev/null @@ -1,5 +0,0 @@ -404 Page not found | ahmza's ramblings -
404
\ No newline at end of file diff --git a/public/admin/.gitignore b/public/admin/.gitignore deleted file mode 100644 index c6a8f8f..0000000 --- a/public/admin/.gitignore +++ /dev/null @@ -1,2 +0,0 @@ -index.html -assets/ \ No newline at end of file diff --git a/public/archives/index.html b/public/archives/index.html deleted file mode 100644 index ac7721b..0000000 --- a/public/archives/index.html +++ /dev/null @@ -1,5 +0,0 @@ -Archive | ahmza's ramblings -

2023  1

March  1

Twitch Layoffs

<span title='2023-03-29 12:39:05 +0100 BST'>March 29, 2023</span>&nbsp;·&nbsp;2 min&nbsp;·&nbsp;366 words&nbsp;·&nbsp;ahmza

2022  3

December  1

Setup a HUGO Site

<span title='2022-12-31 22:03:52 +0000 UTC'>December 31, 2022</span>&nbsp;·&nbsp;5 min&nbsp;·&nbsp;993 words&nbsp;·&nbsp;ahmza

May  1

Minecraft Server on Docker ⛏ 🐳

<span title='2022-05-24 09:33:35 +0100 BST'>May 24, 2022</span>&nbsp;·&nbsp;5 min&nbsp;·&nbsp;965 words&nbsp;·&nbsp;ahmza

February  1

Setup WSL 🪟 ❤️ 🐧

<span title='2022-02-23 11:57:08 +0000 UTC'>February 23, 2022</span>&nbsp;·&nbsp;2 min&nbsp;·&nbsp;262 words&nbsp;·&nbsp;ahmza

2021  6

December  6

HUGO Static Site Generator

<span title='2021-12-26 00:23:22 +0000 UTC'>December 26, 2021</span>&nbsp;·&nbsp;4 min&nbsp;·&nbsp;687 words&nbsp;·&nbsp;ahmza

You Need to Learn Linux 🐧

<span title='2021-12-17 19:16:50 +0000 UTC'>December 17, 2021</span>&nbsp;·&nbsp;3 min&nbsp;·&nbsp;598 words&nbsp;·&nbsp;ahmza

Building a Docker Swarm With Pi’s 👾 👾 👾 👾

<span title='2021-12-12 17:23:32 +0000 UTC'>December 12, 2021</span>&nbsp;·&nbsp;11 min&nbsp;·&nbsp;2290 words&nbsp;·&nbsp;ahmza

Securing SSH 🤖

<span title='2021-12-07 22:41:02 +0000 UTC'>December 7, 2021</span>&nbsp;·&nbsp;8 min&nbsp;·&nbsp;1702 words&nbsp;·&nbsp;ahmza

Setup an NGINX Reverse Proxy 🥸

<span title='2021-12-01 22:59:00 +0000 UTC'>December 1, 2021</span>&nbsp;·&nbsp;4 min&nbsp;·&nbsp;850 words&nbsp;·&nbsp;ahmza

Welcome 👋

<span title='2021-12-01 13:36:08 +0000 UTC'>December 1, 2021</span>&nbsp;·&nbsp;2 min&nbsp;·&nbsp;241 words&nbsp;·&nbsp;ahmza
\ No newline at end of file diff --git a/public/assets/css/stylesheet.49e35863ac4b53ab71c7e3249dd5e722c701ee07f8d0cb006a4f4e954364b6fe.css b/public/assets/css/stylesheet.49e35863ac4b53ab71c7e3249dd5e722c701ee07f8d0cb006a4f4e954364b6fe.css deleted file mode 100644 index a376d0f..0000000 --- a/public/assets/css/stylesheet.49e35863ac4b53ab71c7e3249dd5e722c701ee07f8d0cb006a4f4e954364b6fe.css +++ /dev/null @@ -1,7 +0,0 @@ -/* - PaperMod v7 - License: MIT https://github.com/adityatelange/hugo-PaperMod/blob/master/LICENSE - Copyright (c) 2020 nanxiaobei and adityatelange - Copyright (c) 2021-2023 adityatelange -*/ -:root{--gap:24px;--content-gap:20px;--nav-width:1024px;--main-width:720px;--header-height:60px;--footer-height:60px;--radius:8px;--theme:rgb(255, 255, 255);--entry:rgb(255, 255, 255);--primary:rgb(30, 30, 30);--secondary:rgb(108, 108, 108);--tertiary:rgb(214, 214, 214);--content:rgb(31, 31, 31);--hljs-bg:rgb(28, 29, 33);--code-bg:rgb(245, 245, 245);--border:rgb(238, 238, 238)}.dark{--theme:rgb(29, 30, 32);--entry:rgb(46, 46, 51);--primary:rgb(218, 218, 219);--secondary:rgb(155, 156, 157);--tertiary:rgb(65, 66, 68);--content:rgb(196, 196, 197);--hljs-bg:rgb(46, 46, 51);--code-bg:rgb(55, 56, 62);--border:rgb(51, 51, 51)}.list{background:var(--code-bg)}.dark.list{background:var(--theme)}*,::after,::before{box-sizing:border-box}html{-webkit-tap-highlight-color:transparent;overflow-y:scroll}a,button,body,h1,h2,h3,h4,h5,h6{color:var(--primary)}body{font-family:-apple-system,BlinkMacSystemFont,segoe ui,Roboto,Oxygen,Ubuntu,Cantarell,open sans,helvetica neue,sans-serif;font-size:18px;line-height:1.6;word-break:break-word;background:var(--theme)}article,aside,figcaption,figure,footer,header,hgroup,main,nav,section,table{display:block}h1,h2,h3,h4,h5,h6{line-height:1.2}h1,h2,h3,h4,h5,h6,p{margin-top:0;margin-bottom:0}ul{padding:0}a{text-decoration:none}body,figure,ul{margin:0}table{width:100%;border-collapse:collapse;border-spacing:0;overflow-x:auto;word-break:keep-all}button,input,textarea{padding:0;font:inherit;background:0 0;border:0}input,textarea{outline:0}button,input[type=button],input[type=submit]{cursor:pointer}input:-webkit-autofill,textarea:-webkit-autofill{box-shadow:0 0 0 50px var(--theme)inset}img{display:block;max-width:100%}.not-found{position:absolute;left:0;right:0;display:flex;align-items:center;justify-content:center;height:80%;font-size:160px;font-weight:700}.archive-posts{width:100%;font-size:16px}.archive-year{margin-top:40px}.archive-year:not(:last-of-type){border-bottom:2px solid var(--border)}.archive-month{display:flex;align-items:flex-start;padding:10px 0}.archive-month-header{margin:25px 0;width:200px}.archive-month:not(:last-of-type){border-bottom:1px solid var(--border)}.archive-entry{position:relative;padding:5px;margin:10px 0}.archive-entry-title{margin:5px 0;font-weight:400}.archive-count,.archive-meta{color:var(--secondary);font-size:14px}.footer,.top-link{font-size:12px;color:var(--secondary)}.footer{max-width:calc(var(--main-width) + var(--gap) * 2);margin:auto;padding:calc((var(--footer-height) - var(--gap))/2)var(--gap);text-align:center;line-height:24px}.footer span{margin-inline-start:1px;margin-inline-end:1px}.footer span:last-child{white-space:nowrap}.footer a{color:inherit;border-bottom:1px solid var(--secondary)}.footer a:hover{border-bottom:1px solid var(--primary)}.top-link{visibility:hidden;position:fixed;bottom:60px;right:30px;z-index:99;background:var(--tertiary);width:42px;height:42px;padding:12px;border-radius:64px;transition:visibility .5s,opacity .8s linear}.top-link,.top-link svg{filter:drop-shadow(0 0 0 var(--theme))}.footer a:hover,.top-link:hover{color:var(--primary)}.top-link:focus,#theme-toggle:focus{outline:0}.nav{display:flex;flex-wrap:wrap;justify-content:space-between;max-width:calc(var(--nav-width) + var(--gap) * 2);margin-inline-start:auto;margin-inline-end:auto;line-height:var(--header-height)}.nav a{display:block}.logo,#menu{display:flex;margin:auto var(--gap)}.logo{flex-wrap:inherit}.logo a{font-size:24px;font-weight:700}.logo a img,.logo a svg{display:inline;vertical-align:middle;pointer-events:none;transform:translate(0,-10%);border-radius:6px;margin-inline-end:8px}button#theme-toggle{font-size:26px;margin:auto 4px}body.dark #moon{vertical-align:middle;display:none}body:not(.dark) #sun{display:none}#menu{list-style:none;word-break:keep-all;overflow-x:auto;white-space:nowrap}#menu li+li{margin-inline-start:var(--gap)}#menu a{font-size:16px}#menu .active{font-weight:500;border-bottom:2px solid}.lang-switch li,.lang-switch ul,.logo-switches{display:inline-flex;margin:auto 4px}.lang-switch{display:flex;flex-wrap:inherit}.lang-switch a{margin:auto 3px;font-size:16px;font-weight:500}.logo-switches{flex-wrap:inherit}.main{position:relative;min-height:calc(100vh - var(--header-height) - var(--footer-height));max-width:calc(var(--main-width) + var(--gap) * 2);margin:auto;padding:var(--gap)}.page-header h1{font-size:40px}.pagination{display:flex}.pagination a{color:var(--theme);font-size:13px;line-height:36px;background:var(--primary);border-radius:calc(36px/2);padding:0 16px}.pagination .next{margin-inline-start:auto}.social-icons{padding:12px 0}.social-icons a:not(:last-of-type){margin-inline-end:12px}.social-icons a svg{height:26px;width:26px}code{direction:ltr}div.highlight,pre{position:relative}.copy-code{display:none;position:absolute;top:4px;right:4px;color:rgba(255,255,255,.8);background:rgba(78,78,78,.8);border-radius:var(--radius);padding:0 5px;font-size:14px;user-select:none}div.highlight:hover .copy-code,pre:hover .copy-code{display:block}.first-entry{position:relative;display:flex;flex-direction:column;justify-content:center;min-height:320px;margin:var(--gap)0 calc(var(--gap) * 2)}.first-entry .entry-header{overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3}.first-entry .entry-header h1{font-size:34px;line-height:1.3}.first-entry .entry-content{margin:14px 0;font-size:16px;-webkit-line-clamp:3}.first-entry .entry-footer{font-size:14px}.home-info .entry-content{-webkit-line-clamp:unset}.post-entry{position:relative;margin-bottom:var(--gap);padding:var(--gap);background:var(--entry);border-radius:var(--radius);transition:transform .1s;border:1px solid var(--border)}.post-entry:active{transform:scale(.96)}.tag-entry .entry-cover{display:none}.entry-header h2{font-size:24px;line-height:1.3}.entry-content{margin:8px 0;color:var(--secondary);font-size:14px;line-height:1.6;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2}.entry-footer{color:var(--secondary);font-size:13px}.entry-link{position:absolute;left:0;right:0;top:0;bottom:0}.entry-cover,.entry-isdraft{font-size:14px;color:var(--secondary)}.entry-cover{margin-bottom:var(--gap);text-align:center}.entry-cover img{border-radius:var(--radius);pointer-events:none;width:100%;height:auto}.entry-cover a{color:var(--secondary);box-shadow:0 1px 0 var(--primary)}.page-header,.post-header{margin:24px auto var(--content-gap)}.post-title{margin-bottom:2px;font-size:40px}.post-description{margin-top:10px;margin-bottom:5px}.post-meta,.breadcrumbs{color:var(--secondary);font-size:14px;display:flex;flex-wrap:wrap}.post-meta .i18n_list li{display:inline-flex;list-style:none;margin:auto 3px;box-shadow:0 1px 0 var(--secondary)}.breadcrumbs a{font-size:16px}.post-content{color:var(--content)}.post-content h3,.post-content h4,.post-content h5,.post-content h6{margin:24px 0 16px}.post-content h1{margin:40px auto 32px;font-size:40px}.post-content h2{margin:32px auto 24px;font-size:32px}.post-content h3{font-size:24px}.post-content h4{font-size:16px}.post-content h5{font-size:14px}.post-content h6{font-size:12px}.post-content a,.toc a:hover{box-shadow:0 1px;box-decoration-break:clone;-webkit-box-decoration-break:clone}.post-content a code{margin:auto 0;border-radius:0;box-shadow:0 -1px 0 var(--primary)inset}.post-content del{text-decoration:none;background:linear-gradient(to right,var(--primary) 100%,transparent 0)0/1px 1px repeat-x}.post-content dl,.post-content ol,.post-content p,.post-content figure,.post-content ul{margin-bottom:var(--content-gap)}.post-content ol,.post-content ul{padding-inline-start:20px}.post-content li{margin-top:5px}.post-content li p{margin-bottom:0}.post-content dl{display:flex;flex-wrap:wrap;margin:0}.post-content dt{width:25%;font-weight:700}.post-content dd{width:75%;margin-inline-start:0;padding-inline-start:10px}.post-content dd~dd,.post-content dt~dt{margin-top:10px}.post-content table{margin-bottom:32px}.post-content table th,.post-content table:not(.highlighttable,.highlight table,.gist .highlight) td{min-width:80px;padding:12px 8px;line-height:1.5;border-bottom:1px solid var(--border)}.post-content table th{font-size:14px;text-align:start}.post-content table:not(.highlighttable) td code:only-child{margin:auto 0}.post-content .highlight table{border-radius:var(--radius)}.post-content .highlight:not(table){margin:10px auto;background:var(--hljs-bg)!important;border-radius:var(--radius);direction:ltr}.post-content li>.highlight{margin-inline-end:0}.post-content ul pre{margin-inline-start:calc(var(--gap) * -2)}.post-content .highlight pre{margin:0}.post-content .highlighttable{table-layout:fixed}.post-content .highlighttable td:first-child{width:40px}.post-content .highlighttable td .linenodiv{padding-inline-end:0!important}.post-content .highlighttable td .highlight,.post-content .highlighttable td .linenodiv pre{margin-bottom:0}.post-content code{margin:auto 4px;padding:4px 6px;font-size:.78em;line-height:1.5;background:var(--code-bg);border-radius:2px}.post-content pre code{display:block;margin:auto 0;padding:10px;color:#d5d5d6;background:var(--hljs-bg)!important;border-radius:var(--radius);overflow-x:auto;word-break:break-all}.post-content blockquote{margin:20px 0;padding:0 14px;border-inline-start:3px solid var(--primary)}.post-content hr{margin:30px 0;height:2px;background:var(--tertiary);border:0}.post-content iframe{max-width:100%}.post-content img{border-radius:4px;margin:1rem 0}.post-content img[src*="#center"]{margin:1rem auto}.post-content figure.align-center{text-align:center}.post-content figure>figcaption{color:var(--primary);font-size:16px;font-weight:700;margin:8px 0 16px}.post-content figure>figcaption>p{color:var(--secondary);font-size:14px;font-weight:400}.toc{margin:0 2px 40px;border:1px solid var(--border);background:var(--code-bg);border-radius:var(--radius);padding:.4em}.dark .toc{background:var(--entry)}.toc details summary{cursor:zoom-in;margin-inline-start:20px}.toc details[open] summary{cursor:zoom-out}.toc .details{display:inline;font-weight:500}.toc .inner{margin:0 20px;padding:10px 20px}.toc li ul{margin-inline-start:var(--gap)}.toc summary:focus{outline:0}.post-footer{margin-top:56px}.post-tags li{display:inline-block;margin-inline-end:3px;margin-bottom:5px}.post-tags a,.share-buttons,.paginav{border-radius:var(--radius);background:var(--code-bg);border:1px solid var(--border)}.post-tags a{display:block;padding-inline-start:14px;padding-inline-end:14px;color:var(--secondary);font-size:14px;line-height:34px;background:var(--code-bg)}.post-tags a:hover,.paginav a:hover{background:var(--border)}.share-buttons{margin:14px 0;padding-inline-start:var(--radius);display:flex;justify-content:center;overflow-x:auto}.share-buttons a{margin-top:10px}.share-buttons a:not(:last-of-type){margin-inline-end:12px}h1:hover .anchor,h2:hover .anchor,h3:hover .anchor,h4:hover .anchor,h5:hover .anchor,h6:hover .anchor{display:inline-flex;color:var(--secondary);margin-inline-start:8px;font-weight:500;user-select:none}.paginav{margin:10px 0;display:flex;line-height:30px;border-radius:var(--radius)}.paginav a{padding-inline-start:14px;padding-inline-end:14px;border-radius:var(--radius)}.paginav .title{letter-spacing:1px;text-transform:uppercase;font-size:small;color:var(--secondary)}.paginav .prev,.paginav .next{width:50%}.paginav span:hover:not(.title){box-shadow:0 1px}.paginav .next{margin-inline-start:auto;text-align:right}[dir=rtl] .paginav .next{text-align:left}h1>a>svg{display:inline}img.in-text{display:inline;margin:auto}.buttons,.main .profile{display:flex;justify-content:center}.main .profile{align-items:center;min-height:calc(100vh - var(--header-height) - var(--footer-height) - (var(--gap) * 2));text-align:center}.profile .profile_inner h1{padding:12px 0}.profile img{display:inline-table;border-radius:50%}.buttons{flex-wrap:wrap;max-width:400px;margin:0 auto}.button{background:var(--tertiary);border-radius:var(--radius);margin:8px;padding:6px;transition:transform .1s}.button-inner{padding:0 8px}.button:active{transform:scale(.96)}#searchbox input{padding:4px 10px;width:100%;color:var(--primary);font-weight:700;border:2px solid var(--tertiary);border-radius:var(--radius)}#searchbox input:focus{border-color:var(--secondary)}#searchResults li{list-style:none;border-radius:var(--radius);padding:10px;margin:10px 0;position:relative;font-weight:500}#searchResults{margin:10px 0;width:100%}#searchResults li:active{transition:transform .1s;transform:scale(.98)}#searchResults a{position:absolute;width:100%;height:100%;top:0;left:0;outline:none}#searchResults .focus{transform:scale(.98);border:2px solid var(--tertiary)}.terms-tags li{display:inline-block;margin:10px;font-weight:500}.terms-tags a{display:block;padding:3px 10px;background:var(--tertiary);border-radius:6px;transition:transform .1s}.terms-tags a:active{background:var(--tertiary);transform:scale(.96)}.hljs-comment,.hljs-quote{color:#b6b18b}.hljs-deletion,.hljs-name,.hljs-regexp,.hljs-selector-class,.hljs-selector-id,.hljs-tag,.hljs-template-variable,.hljs-variable{color:#eb3c54}.hljs-built_in,.hljs-builtin-name,.hljs-link,.hljs-literal,.hljs-meta,.hljs-number,.hljs-params,.hljs-type{color:#e7ce56}.hljs-attribute{color:#ee7c2b}.hljs-addition,.hljs-bullet,.hljs-string,.hljs-symbol{color:#4fb4d7}.hljs-section,.hljs-title{color:#78bb65}.hljs-keyword,.hljs-selector-tag{color:#b45ea4}.hljs{display:block;overflow-x:auto;background:#1c1d21;color:#c0c5ce;padding:.5em}.hljs-emphasis{font-style:italic}.hljs-strong{font-weight:700}::-webkit-scrollbar-track{background:0 0}.list:not(.dark)::-webkit-scrollbar-track{background:var(--code-bg)}::-webkit-scrollbar-thumb{background:var(--tertiary);border:5px solid var(--theme);border-radius:var(--radius)}.list:not(.dark)::-webkit-scrollbar-thumb{border:5px solid var(--code-bg)}::-webkit-scrollbar-thumb:hover{background:var(--secondary)}::-webkit-scrollbar:not(.highlighttable,.highlight table,.gist .highlight){background:var(--theme)}.post-content .highlighttable td .highlight pre code::-webkit-scrollbar{display:none}.post-content :not(table) ::-webkit-scrollbar-thumb{border:2px solid var(--hljs-bg);background:#717175}.post-content :not(table) ::-webkit-scrollbar-thumb:hover{background:#a3a3a5}.gist table::-webkit-scrollbar-thumb{border:2px solid #fff;background:#adadad}.gist table::-webkit-scrollbar-thumb:hover{background:#707070}.post-content table::-webkit-scrollbar-thumb{border-width:2px}@media screen and (min-width:768px){::-webkit-scrollbar{width:19px;height:11px}}@media screen and (max-width:768px){:root{--gap:14px}.profile img{transform:scale(.85)}.first-entry{min-height:260px}.archive-month{flex-direction:column}.archive-year{margin-top:20px}.footer{padding:calc((var(--footer-height) - var(--gap) - 10px)/2)var(--gap)}}@media screen and (max-width:900px){.list .top-link{transform:translateY(-5rem)}}@media(prefers-reduced-motion){.terms-tags a:active,.button:active,.post-entry:active,.top-link,#searchResults .focus,#searchResults li:active{transform:none}}h1{color:#9146ff} \ No newline at end of file diff --git a/public/assets/js/highlight.f413e19d0714851f6474e7ee9632408e58ac146fbdbe62747134bea2fa3415e0.js b/public/assets/js/highlight.f413e19d0714851f6474e7ee9632408e58ac146fbdbe62747134bea2fa3415e0.js deleted file mode 100644 index 93a6f86..0000000 --- a/public/assets/js/highlight.f413e19d0714851f6474e7ee9632408e58ac146fbdbe62747134bea2fa3415e0.js +++ /dev/null @@ -1,44 +0,0 @@ -/* - Highlight.js 10.2.1 (32fb9a1d) - License: BSD-3-Clause - Copyright (c) 2006-2020, Ivan Sagalaev -*/ -var hljs=function(){"use strict";function e(n){Object.freeze(n);var t="function"==typeof n;return Object.getOwnPropertyNames(n).forEach((function(r){!Object.hasOwnProperty.call(n,r)||null===n[r]||"object"!=typeof n[r]&&"function"!=typeof n[r]||t&&("caller"===r||"callee"===r||"arguments"===r)||Object.isFrozen(n[r])||e(n[r])})),n}class n{constructor(e){void 0===e.data&&(e.data={}),this.data=e.data}ignoreMatch(){this.ignore=!0}}function t(e){return e.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"'")}function r(e,...n){var t={};for(const n in e)t[n]=e[n];return n.forEach((function(e){for(const n in e)t[n]=e[n]})),t}function a(e){return e.nodeName.toLowerCase()}var i=Object.freeze({__proto__:null,escapeHTML:t,inherit:r,nodeStream:function(e){var n=[];return function e(t,r){for(var i=t.firstChild;i;i=i.nextSibling)3===i.nodeType?r+=i.nodeValue.length:1===i.nodeType&&(n.push({event:"start",offset:r,node:i}),r=e(i,r),a(i).match(/br|hr|img|input/)||n.push({event:"stop",offset:r,node:i}));return r}(e,0),n},mergeStreams:function(e,n,r){var i=0,s="",o=[];function l(){return e.length&&n.length?e[0].offset!==n[0].offset?e[0].offset"}function u(e){s+=""}function g(e){("start"===e.event?c:u)(e.node)}for(;e.length||n.length;){var d=l();if(s+=t(r.substring(i,d[0].offset)),i=d[0].offset,d===e){o.reverse().forEach(u);do{g(d.splice(0,1)[0]),d=l()}while(d===e&&d.length&&d[0].offset===i);o.reverse().forEach(c)}else"start"===d[0].event?o.push(d[0].node):o.pop(),g(d.splice(0,1)[0])}return s+t(r.substr(i))}});const s="",o=e=>!!e.kind;class l{constructor(e,n){this.buffer="",this.classPrefix=n.classPrefix,e.walk(this)}addText(e){this.buffer+=t(e)}openNode(e){if(!o(e))return;let n=e.kind;e.sublanguage||(n=`${this.classPrefix}${n}`),this.span(n)}closeNode(e){o(e)&&(this.buffer+=s)}value(){return this.buffer}span(e){this.buffer+=``}}class c{constructor(){this.rootNode={children:[]},this.stack=[this.rootNode]}get top(){return this.stack[this.stack.length-1]}get root(){return this.rootNode}add(e){this.top.children.push(e)}openNode(e){const n={kind:e,children:[]};this.add(n),this.stack.push(n)}closeNode(){if(this.stack.length>1)return this.stack.pop()}closeAllNodes(){for(;this.closeNode(););}toJSON(){return JSON.stringify(this.rootNode,null,4)}walk(e){return this.constructor._walk(e,this.rootNode)}static _walk(e,n){return"string"==typeof n?e.addText(n):n.children&&(e.openNode(n),n.children.forEach(n=>this._walk(e,n)),e.closeNode(n)),e}static _collapse(e){"string"!=typeof e&&e.children&&(e.children.every(e=>"string"==typeof e)?e.children=[e.children.join("")]:e.children.forEach(e=>{c._collapse(e)}))}}class u extends c{constructor(e){super(),this.options=e}addKeyword(e,n){""!==e&&(this.openNode(n),this.addText(e),this.closeNode())}addText(e){""!==e&&this.add(e)}addSublanguage(e,n){const t=e.root;t.kind=n,t.sublanguage=!0,this.add(t)}toHTML(){return new l(this,this.options).value()}finalize(){return!0}}function g(e){return e?"string"==typeof e?e:e.source:null}const d="(-?)(\\b0[xX][a-fA-F0-9]+|(\\b\\d+(\\.\\d*)?|\\.\\d+)([eE][-+]?\\d+)?)",h={begin:"\\\\[\\s\\S]",relevance:0},f={className:"string",begin:"'",end:"'",illegal:"\\n",contains:[h]},p={className:"string",begin:'"',end:'"',illegal:"\\n",contains:[h]},m={begin:/\b(a|an|the|are|I'm|isn't|don't|doesn't|won't|but|just|should|pretty|simply|enough|gonna|going|wtf|so|such|will|you|your|they|like|more)\b/},b=function(e,n,t={}){var a=r({className:"comment",begin:e,end:n,contains:[]},t);return a.contains.push(m),a.contains.push({className:"doctag",begin:"(?:TODO|FIXME|NOTE|BUG|OPTIMIZE|HACK|XXX):",relevance:0}),a},v=b("//","$"),x=b("/\\*","\\*/"),E=b("#","$");var _=Object.freeze({__proto__:null,IDENT_RE:"[a-zA-Z]\\w*",UNDERSCORE_IDENT_RE:"[a-zA-Z_]\\w*",NUMBER_RE:"\\b\\d+(\\.\\d+)?",C_NUMBER_RE:d,BINARY_NUMBER_RE:"\\b(0b[01]+)",RE_STARTERS_RE:"!|!=|!==|%|%=|&|&&|&=|\\*|\\*=|\\+|\\+=|,|-|-=|/=|/|:|;|<<|<<=|<=|<|===|==|=|>>>=|>>=|>=|>>>|>>|>|\\?|\\[|\\{|\\(|\\^|\\^=|\\||\\|=|\\|\\||~",SHEBANG:(e={})=>{const n=/^#![ ]*\//;return e.binary&&(e.begin=function(...e){return e.map(e=>g(e)).join("")}(n,/.*\b/,e.binary,/\b.*/)),r({className:"meta",begin:n,end:/$/,relevance:0,"on:begin":(e,n)=>{0!==e.index&&n.ignoreMatch()}},e)},BACKSLASH_ESCAPE:h,APOS_STRING_MODE:f,QUOTE_STRING_MODE:p,PHRASAL_WORDS_MODE:m,COMMENT:b,C_LINE_COMMENT_MODE:v,C_BLOCK_COMMENT_MODE:x,HASH_COMMENT_MODE:E,NUMBER_MODE:{className:"number",begin:"\\b\\d+(\\.\\d+)?",relevance:0},C_NUMBER_MODE:{className:"number",begin:d,relevance:0},BINARY_NUMBER_MODE:{className:"number",begin:"\\b(0b[01]+)",relevance:0},CSS_NUMBER_MODE:{className:"number",begin:"\\b\\d+(\\.\\d+)?(%|em|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|px|deg|grad|rad|turn|s|ms|Hz|kHz|dpi|dpcm|dppx)?",relevance:0},REGEXP_MODE:{begin:/(?=\/[^/\n]*\/)/,contains:[{className:"regexp",begin:/\//,end:/\/[gimuy]*/,illegal:/\n/,contains:[h,{begin:/\[/,end:/\]/,relevance:0,contains:[h]}]}]},TITLE_MODE:{className:"title",begin:"[a-zA-Z]\\w*",relevance:0},UNDERSCORE_TITLE_MODE:{className:"title",begin:"[a-zA-Z_]\\w*",relevance:0},METHOD_GUARD:{begin:"\\.\\s*[a-zA-Z_]\\w*",relevance:0},END_SAME_AS_BEGIN:function(e){return Object.assign(e,{"on:begin":(e,n)=>{n.data._beginMatch=e[1]},"on:end":(e,n)=>{n.data._beginMatch!==e[1]&&n.ignoreMatch()}})}}),w="of and for in not or if then".split(" ");function N(e,n){return n?+n:function(e){return w.includes(e.toLowerCase())}(e)?0:1}const y={props:["language","code","autodetect"],data:function(){return{detectedLanguage:"",unknownLanguage:!1}},computed:{className(){return this.unknownLanguage?"":"hljs "+this.detectedLanguage},highlighted(){if(!this.autoDetect&&!hljs.getLanguage(this.language))return console.warn(`The language "${this.language}" you specified could not be found.`),this.unknownLanguage=!0,t(this.code);let e;return this.autoDetect?(e=hljs.highlightAuto(this.code),this.detectedLanguage=e.language):(e=hljs.highlight(this.language,this.code,this.ignoreIllegals),this.detectectLanguage=this.language),e.value},autoDetect(){return!(this.language&&(e=this.autodetect,!e&&""!==e));var e},ignoreIllegals:()=>!0},render(e){return e("pre",{},[e("code",{class:this.className,domProps:{innerHTML:this.highlighted}})])}},R={install(e){e.component("highlightjs",y)}},k=t,M=r,{nodeStream:O,mergeStreams:L}=i,A=Symbol("nomatch");return function(t){var a=[],i=Object.create(null),s=Object.create(null),o=[],l=!0,c=/(^(<[^>]+>|\t|)+|\n)/gm,d="Could not find the language '{}', did you forget to load/include a language module?";const h={disableAutodetect:!0,name:"Plain text",contains:[]};var f={noHighlightRe:/^(no-?highlight)$/i,languageDetectRe:/\blang(?:uage)?-([\w-]+)\b/i,classPrefix:"hljs-",tabReplace:null,useBR:!1,languages:null,__emitter:u};function p(e){return f.noHighlightRe.test(e)}function m(e,n,t,r){var a={code:n,language:e};j("before:highlight",a);var i=a.result?a.result:b(a.language,a.code,t,r);return i.code=a.code,j("after:highlight",i),i}function b(e,t,a,s){var o=t;function c(e,n){var t=E.case_insensitive?n[0].toLowerCase():n[0];return Object.prototype.hasOwnProperty.call(e.keywords,t)&&e.keywords[t]}function u(){null!=R.subLanguage?function(){if(""!==L){var e=null;if("string"==typeof R.subLanguage){if(!i[R.subLanguage])return void O.addText(L);e=b(R.subLanguage,L,!0,M[R.subLanguage]),M[R.subLanguage]=e.top}else e=v(L,R.subLanguage.length?R.subLanguage:null);R.relevance>0&&(I+=e.relevance),O.addSublanguage(e.emitter,e.language)}}():function(){if(!R.keywords)return void O.addText(L);let e=0;R.keywordPatternRe.lastIndex=0;let n=R.keywordPatternRe.exec(L),t="";for(;n;){t+=L.substring(e,n.index);const r=c(R,n);if(r){const[e,a]=r;O.addText(t),t="",I+=a,O.addKeyword(n[0],e)}else t+=n[0];e=R.keywordPatternRe.lastIndex,n=R.keywordPatternRe.exec(L)}t+=L.substr(e),O.addText(t)}(),L=""}function h(e){return e.className&&O.openNode(e.className),R=Object.create(e,{parent:{value:R}})}function p(e){return 0===R.matcher.regexIndex?(L+=e[0],1):(S=!0,0)}var m={};function x(t,r){var i=r&&r[0];if(L+=t,null==i)return u(),0;if("begin"===m.type&&"end"===r.type&&m.index===r.index&&""===i){if(L+=o.slice(r.index,r.index+1),!l){const n=Error("0 width match regex");throw n.languageName=e,n.badRule=m.rule,n}return 1}if(m=r,"begin"===r.type)return function(e){var t=e[0],r=e.rule;const a=new n(r),i=[r.__beforeBegin,r["on:begin"]];for(const n of i)if(n&&(n(e,a),a.ignore))return p(t);return r&&r.endSameAsBegin&&(r.endRe=RegExp(t.replace(/[-/\\^$*+?.()|[\]{}]/g,"\\$&"),"m")),r.skip?L+=t:(r.excludeBegin&&(L+=t),u(),r.returnBegin||r.excludeBegin||(L=t)),h(r),r.returnBegin?0:t.length}(r);if("illegal"===r.type&&!a){const e=Error('Illegal lexeme "'+i+'" for mode "'+(R.className||"")+'"');throw e.mode=R,e}if("end"===r.type){var s=function(e){var t=e[0],r=o.substr(e.index),a=function e(t,r,a){let i=function(e,n){var t=e&&e.exec(n);return t&&0===t.index}(t.endRe,a);if(i){if(t["on:end"]){const e=new n(t);t["on:end"](r,e),e.ignore&&(i=!1)}if(i){for(;t.endsParent&&t.parent;)t=t.parent;return t}}if(t.endsWithParent)return e(t.parent,r,a)}(R,e,r);if(!a)return A;var i=R;i.skip?L+=t:(i.returnEnd||i.excludeEnd||(L+=t),u(),i.excludeEnd&&(L=t));do{R.className&&O.closeNode(),R.skip||R.subLanguage||(I+=R.relevance),R=R.parent}while(R!==a.parent);return a.starts&&(a.endSameAsBegin&&(a.starts.endRe=a.endRe),h(a.starts)),i.returnEnd?0:t.length}(r);if(s!==A)return s}if("illegal"===r.type&&""===i)return 1;if(j>1e5&&j>3*r.index)throw Error("potential infinite loop, way more iterations than matches");return L+=i,i.length}var E=y(e);if(!E)throw console.error(d.replace("{}",e)),Error('Unknown language: "'+e+'"');var _=function(e){function n(n,t){return RegExp(g(n),"m"+(e.case_insensitive?"i":"")+(t?"g":""))}class t{constructor(){this.matchIndexes={},this.regexes=[],this.matchAt=1,this.position=0}addRule(e,n){n.position=this.position++,this.matchIndexes[this.matchAt]=n,this.regexes.push([n,e]),this.matchAt+=function(e){return RegExp(e.toString()+"|").exec("").length-1}(e)+1}compile(){0===this.regexes.length&&(this.exec=()=>null);const e=this.regexes.map(e=>e[1]);this.matcherRe=n(function(e,n="|"){for(var t=/\[(?:[^\\\]]|\\.)*\]|\(\??|\\([1-9][0-9]*)|\\./,r=0,a="",i=0;i0&&(a+=n),a+="(";o.length>0;){var l=t.exec(o);if(null==l){a+=o;break}a+=o.substring(0,l.index),o=o.substring(l.index+l[0].length),"\\"===l[0][0]&&l[1]?a+="\\"+(+l[1]+s):(a+=l[0],"("===l[0]&&r++)}a+=")"}return a}(e),!0),this.lastIndex=0}exec(e){this.matcherRe.lastIndex=this.lastIndex;const n=this.matcherRe.exec(e);if(!n)return null;const t=n.findIndex((e,n)=>n>0&&void 0!==e),r=this.matchIndexes[t];return n.splice(0,t),Object.assign(n,r)}}class a{constructor(){this.rules=[],this.multiRegexes=[],this.count=0,this.lastIndex=0,this.regexIndex=0}getMatcher(e){if(this.multiRegexes[e])return this.multiRegexes[e];const n=new t;return this.rules.slice(e).forEach(([e,t])=>n.addRule(e,t)),n.compile(),this.multiRegexes[e]=n,n}resumingScanAtSamePosition(){return 0!==this.regexIndex}considerAll(){this.regexIndex=0}addRule(e,n){this.rules.push([e,n]),"begin"===n.type&&this.count++}exec(e){const n=this.getMatcher(this.regexIndex);n.lastIndex=this.lastIndex;let t=n.exec(e);if(this.resumingScanAtSamePosition())if(t&&t.index===this.lastIndex);else{const n=this.getMatcher(0);n.lastIndex=this.lastIndex+1,t=n.exec(e)}return t&&(this.regexIndex+=t.position+1,this.regexIndex===this.count&&this.considerAll()),t}}function i(e,n){const t=e.input[e.index-1],r=e.input[e.index+e[0].length];"."!==t&&"."!==r||n.ignoreMatch()}if(e.contains&&e.contains.includes("self"))throw Error("ERR: contains `self` is not supported at the top-level of a language. See documentation.");return function t(s,o){const l=s;if(s.compiled)return l;s.compiled=!0,s.__beforeBegin=null,s.keywords=s.keywords||s.beginKeywords;let c=null;if("object"==typeof s.keywords&&(c=s.keywords.$pattern,delete s.keywords.$pattern),s.keywords&&(s.keywords=function(e,n){var t={};return"string"==typeof e?r("keyword",e):Object.keys(e).forEach((function(n){r(n,e[n])})),t;function r(e,r){n&&(r=r.toLowerCase()),r.split(" ").forEach((function(n){var r=n.split("|");t[r[0]]=[e,N(r[0],r[1])]}))}}(s.keywords,e.case_insensitive)),s.lexemes&&c)throw Error("ERR: Prefer `keywords.$pattern` to `mode.lexemes`, BOTH are not allowed. (see mode reference) ");return l.keywordPatternRe=n(s.lexemes||c||/\w+/,!0),o&&(s.beginKeywords&&(s.begin="\\b("+s.beginKeywords.split(" ").join("|")+")(?=\\b|\\s)",s.__beforeBegin=i),s.begin||(s.begin=/\B|\b/),l.beginRe=n(s.begin),s.endSameAsBegin&&(s.end=s.begin),s.end||s.endsWithParent||(s.end=/\B|\b/),s.end&&(l.endRe=n(s.end)),l.terminator_end=g(s.end)||"",s.endsWithParent&&o.terminator_end&&(l.terminator_end+=(s.end?"|":"")+o.terminator_end)),s.illegal&&(l.illegalRe=n(s.illegal)),void 0===s.relevance&&(s.relevance=1),s.contains||(s.contains=[]),s.contains=[].concat(...s.contains.map((function(e){return function(e){return e.variants&&!e.cached_variants&&(e.cached_variants=e.variants.map((function(n){return r(e,{variants:null},n)}))),e.cached_variants?e.cached_variants:function e(n){return!!n&&(n.endsWithParent||e(n.starts))}(e)?r(e,{starts:e.starts?r(e.starts):null}):Object.isFrozen(e)?r(e):e}("self"===e?s:e)}))),s.contains.forEach((function(e){t(e,l)})),s.starts&&t(s.starts,o),l.matcher=function(e){const n=new a;return e.contains.forEach(e=>n.addRule(e.begin,{rule:e,type:"begin"})),e.terminator_end&&n.addRule(e.terminator_end,{type:"end"}),e.illegal&&n.addRule(e.illegal,{type:"illegal"}),n}(l),l}(e)}(E),w="",R=s||_,M={},O=new f.__emitter(f);!function(){for(var e=[],n=R;n!==E;n=n.parent)n.className&&e.unshift(n.className);e.forEach(e=>O.openNode(e))}();var L="",I=0,T=0,j=0,S=!1;try{for(R.matcher.considerAll();;){j++,S?S=!1:R.matcher.considerAll(),R.matcher.lastIndex=T;const e=R.matcher.exec(o);if(!e)break;const n=x(o.substring(T,e.index),e);T=e.index+n}return x(o.substr(T)),O.closeAllNodes(),O.finalize(),w=O.toHTML(),{relevance:I,value:w,language:e,illegal:!1,emitter:O,top:R}}catch(n){if(n.message&&n.message.includes("Illegal"))return{illegal:!0,illegalBy:{msg:n.message,context:o.slice(T-100,T+100),mode:n.mode},sofar:w,relevance:0,value:k(o),emitter:O};if(l)return{illegal:!1,relevance:0,value:k(o),emitter:O,language:e,top:R,errorRaised:n};throw n}}function v(e,n){n=n||f.languages||Object.keys(i);var t=function(e){const n={relevance:0,emitter:new f.__emitter(f),value:k(e),illegal:!1,top:h};return n.emitter.addText(e),n}(e),r=t;return n.filter(y).filter(T).forEach((function(n){var a=b(n,e,!1);a.language=n,a.relevance>r.relevance&&(r=a),a.relevance>t.relevance&&(r=t,t=a)})),r.language&&(t.second_best=r),t}function x(e){return f.tabReplace||f.useBR?e.replace(c,e=>"\n"===e?f.useBR?"
":e:f.tabReplace?e.replace(/\t/g,f.tabReplace):e):e}function E(e){let n=null;const t=function(e){var n=e.className+" ";n+=e.parentNode?e.parentNode.className:"";const t=f.languageDetectRe.exec(n);if(t){var r=y(t[1]);return r||(console.warn(d.replace("{}",t[1])),console.warn("Falling back to no-highlight mode for this block.",e)),r?t[1]:"no-highlight"}return n.split(/\s+/).find(e=>p(e)||y(e))}(e);if(p(t))return;j("before:highlightBlock",{block:e,language:t}),f.useBR?(n=document.createElement("div")).innerHTML=e.innerHTML.replace(/\n/g,"").replace(//g,"\n"):n=e;const r=n.textContent,a=t?m(t,r,!0):v(r),i=O(n);if(i.length){const e=document.createElement("div");e.innerHTML=a.value,a.value=L(i,O(e),r)}a.value=x(a.value),j("after:highlightBlock",{block:e,result:a}),e.innerHTML=a.value,e.className=function(e,n,t){var r=n?s[n]:t,a=[e.trim()];return e.match(/\bhljs\b/)||a.push("hljs"),e.includes(r)||a.push(r),a.join(" ").trim()}(e.className,t,a.language),e.result={language:a.language,re:a.relevance,relavance:a.relevance},a.second_best&&(e.second_best={language:a.second_best.language,re:a.second_best.relevance,relavance:a.second_best.relevance})}const w=()=>{if(!w.called){w.called=!0;var e=document.querySelectorAll("pre code");a.forEach.call(e,E)}};function y(e){return e=(e||"").toLowerCase(),i[e]||i[s[e]]}function I(e,{languageName:n}){"string"==typeof e&&(e=[e]),e.forEach(e=>{s[e]=n})}function T(e){var n=y(e);return n&&!n.disableAutodetect}function j(e,n){var t=e;o.forEach((function(e){e[t]&&e[t](n)}))}Object.assign(t,{highlight:m,highlightAuto:v,fixMarkup:function(e){return console.warn("fixMarkup is deprecated and will be removed entirely in v11.0"),console.warn("Please see https://github.com/highlightjs/highlight.js/issues/2534"),x(e)},highlightBlock:E,configure:function(e){f=M(f,e)},initHighlighting:w,initHighlightingOnLoad:function(){window.addEventListener("DOMContentLoaded",w,!1)},registerLanguage:function(e,n){var r=null;try{r=n(t)}catch(n){if(console.error("Language definition for '{}' could not be registered.".replace("{}",e)),!l)throw n;console.error(n),r=h}r.name||(r.name=e),i[e]=r,r.rawDefinition=n.bind(null,t),r.aliases&&I(r.aliases,{languageName:e})},listLanguages:function(){return Object.keys(i)},getLanguage:y,registerAliases:I,requireLanguage:function(e){var n=y(e);if(n)return n;throw Error("The '{}' language is required, but not loaded.".replace("{}",e))},autoDetection:T,inherit:M,addPlugin:function(e){o.push(e)},vuePlugin:R}),t.debugMode=function(){l=!1},t.safeMode=function(){l=!0},t.versionString="10.2.1";for(const n in _)"object"==typeof _[n]&&e(_[n]);return Object.assign(t,_),t}({})}();"object"==typeof exports&&"undefined"!=typeof module&&(module.exports=hljs); -hljs.registerLanguage("apache",function(){"use strict";return function(e){var n={className:"number",begin:"\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?"};return{name:"Apache config",aliases:["apacheconf"],case_insensitive:!0,contains:[e.HASH_COMMENT_MODE,{className:"section",begin:"",contains:[n,{className:"number",begin:":\\d{1,5}"},e.inherit(e.QUOTE_STRING_MODE,{relevance:0})]},{className:"attribute",begin:/\w+/,relevance:0,keywords:{nomarkup:"order deny allow setenv rewriterule rewriteengine rewritecond documentroot sethandler errordocument loadmodule options header listen serverroot servername"},starts:{end:/$/,relevance:0,keywords:{literal:"on off all deny allow"},contains:[{className:"meta",begin:"\\s\\[",end:"\\]$"},{className:"variable",begin:"[\\$%]\\{",end:"\\}",contains:["self",{className:"number",begin:"[\\$%]\\d+"}]},n,{className:"number",begin:"\\d+"},e.QUOTE_STRING_MODE]}}],illegal:/\S/}}}()); -hljs.registerLanguage("bash",function(){"use strict";return function(e){const s={};Object.assign(s,{className:"variable",variants:[{begin:/\$[\w\d#@][\w\d_]*/},{begin:/\$\{/,end:/\}/,contains:[{begin:/:-/,contains:[s]}]}]});const t={className:"subst",begin:/\$\(/,end:/\)/,contains:[e.BACKSLASH_ESCAPE]},n={className:"string",begin:/"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s,t]};t.contains.push(n);const a={begin:/\$\(\(/,end:/\)\)/,contains:[{begin:/\d+#[0-9a-f]+/,className:"number"},e.NUMBER_MODE,s]},i=e.SHEBANG({binary:"(fish|bash|zsh|sh|csh|ksh|tcsh|dash|scsh)",relevance:10}),c={className:"function",begin:/\w[\w\d_]*\s*\(\s*\)\s*\{/,returnBegin:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/\w[\w\d_]*/})],relevance:0};return{name:"Bash",aliases:["sh","zsh"],keywords:{$pattern:/\b-?[a-z\._-]+\b/,keyword:"if then else elif fi for while in do done case esac function",literal:"true false",built_in:"break cd continue eval exec exit export getopts hash pwd readonly return shift test times trap umask unset alias bind builtin caller command declare echo enable help let local logout mapfile printf read readarray source type typeset ulimit unalias set shopt autoload bg bindkey bye cap chdir clone comparguments compcall compctl compdescribe compfiles compgroups compquote comptags comptry compvalues dirs disable disown echotc echoti emulate fc fg float functions getcap getln history integer jobs kill limit log noglob popd print pushd pushln rehash sched setcap setopt stat suspend ttyctl unfunction unhash unlimit unsetopt vared wait whence where which zcompile zformat zftp zle zmodload zparseopts zprof zpty zregexparse zsocket zstyle ztcp",_:"-ne -eq -lt -gt -f -d -e -s -l -a"},contains:[i,e.SHEBANG(),c,a,e.HASH_COMMENT_MODE,n,{className:"",begin:/\\"/},{className:"string",begin:/'/,end:/'/},s]}}}()); -hljs.registerLanguage("c-like",function(){"use strict";return function(e){function t(e){return"(?:"+e+")?"}var n="(decltype\\(auto\\)|"+t("[a-zA-Z_]\\w*::")+"[a-zA-Z_]\\w*"+t("<.*?>")+")",r={className:"keyword",begin:"\\b[a-z\\d_]*_t\\b"},a={className:"string",variants:[{begin:'(u8?|U|L)?"',end:'"',illegal:"\\n",contains:[e.BACKSLASH_ESCAPE]},{begin:"(u8?|U|L)?'(\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4,8}|[0-7]{3}|\\S)|.)",end:"'",illegal:"."},e.END_SAME_AS_BEGIN({begin:/(?:u8?|U|L)?R"([^()\\ ]{0,16})\(/,end:/\)([^()\\ ]{0,16})"/})]},i={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},s={className:"meta",begin:/#\s*[a-z]+\b/,end:/$/,keywords:{"meta-keyword":"if else elif endif define undef warning error line pragma _Pragma ifdef ifndef include"},contains:[{begin:/\\\n/,relevance:0},e.inherit(a,{className:"meta-string"}),{className:"meta-string",begin:/<.*?>/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},o={className:"title",begin:t("[a-zA-Z_]\\w*::")+e.IDENT_RE,relevance:0},c=t("[a-zA-Z_]\\w*::")+e.IDENT_RE+"\\s*\\(",l={keyword:"int float while private char char8_t char16_t char32_t catch import module export virtual operator sizeof dynamic_cast|10 typedef const_cast|10 const for static_cast|10 union namespace unsigned long volatile static protected bool template mutable if public friend do goto auto void enum else break extern using asm case typeid wchar_t short reinterpret_cast|10 default double register explicit signed typename try this switch continue inline delete alignas alignof constexpr consteval constinit decltype concept co_await co_return co_yield requires noexcept static_assert thread_local restrict final override atomic_bool atomic_char atomic_schar atomic_uchar atomic_short atomic_ushort atomic_int atomic_uint atomic_long atomic_ulong atomic_llong atomic_ullong new throw return and and_eq bitand bitor compl not not_eq or or_eq xor xor_eq",built_in:"std string wstring cin cout cerr clog stdin stdout stderr stringstream istringstream ostringstream auto_ptr deque list queue stack vector map set pair bitset multiset multimap unordered_set unordered_map unordered_multiset unordered_multimap priority_queue make_pair array shared_ptr abort terminate abs acos asin atan2 atan calloc ceil cosh cos exit exp fabs floor fmod fprintf fputs free frexp fscanf future isalnum isalpha iscntrl isdigit isgraph islower isprint ispunct isspace isupper isxdigit tolower toupper labs ldexp log10 log malloc realloc memchr memcmp memcpy memset modf pow printf putchar puts scanf sinh sin snprintf sprintf sqrt sscanf strcat strchr strcmp strcpy strcspn strlen strncat strncmp strncpy strpbrk strrchr strspn strstr tanh tan vfprintf vprintf vsprintf endl initializer_list unique_ptr _Bool complex _Complex imaginary _Imaginary",literal:"true false nullptr NULL"},d=[r,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,i,a],_={variants:[{begin:/=/,end:/;/},{begin:/\(/,end:/\)/},{beginKeywords:"new throw return else",end:/;/}],keywords:l,contains:d.concat([{begin:/\(/,end:/\)/,keywords:l,contains:d.concat(["self"]),relevance:0}]),relevance:0},u={className:"function",begin:"("+n+"[\\*&\\s]+)+"+c,returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:l,illegal:/[^\w\s\*&:<>]/,contains:[{begin:"decltype\\(auto\\)",keywords:l,relevance:0},{begin:c,returnBegin:!0,contains:[o],relevance:0},{className:"params",begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,i,r,{begin:/\(/,end:/\)/,keywords:l,relevance:0,contains:["self",e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,a,i,r]}]},r,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,s]};return{aliases:["c","cc","h","c++","h++","hpp","hh","hxx","cxx"],keywords:l,disableAutodetect:!0,illegal:"",keywords:l,contains:["self",r]},{begin:e.IDENT_RE+"::",keywords:l},{className:"class",beginKeywords:"class struct",end:/[{;:]/,contains:[{begin://,contains:["self"]},e.TITLE_MODE]}]),exports:{preprocessor:s,strings:a,keywords:l}}}}()); -hljs.registerLanguage("c",function(){"use strict";return function(e){var n=e.requireLanguage("c-like").rawDefinition();return n.name="C",n.aliases=["c","h"],n}}()); -hljs.registerLanguage("coffeescript",function(){"use strict";const e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],a=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);return function(r){var t={keyword:e.concat(["then","unless","until","loop","by","when","and","or","is","isnt","not"]).filter((e=>n=>!e.includes(n))(["var","const","let","function","static"])).join(" "),literal:n.concat(["yes","no","on","off"]).join(" "),built_in:a.concat(["npm","print"]).join(" ")},i="[A-Za-z$_][0-9A-Za-z$_]*",s={className:"subst",begin:/#\{/,end:/}/,keywords:t},o=[r.BINARY_NUMBER_MODE,r.inherit(r.C_NUMBER_MODE,{starts:{end:"(\\s*/)?",relevance:0}}),{className:"string",variants:[{begin:/'''/,end:/'''/,contains:[r.BACKSLASH_ESCAPE]},{begin:/'/,end:/'/,contains:[r.BACKSLASH_ESCAPE]},{begin:/"""/,end:/"""/,contains:[r.BACKSLASH_ESCAPE,s]},{begin:/"/,end:/"/,contains:[r.BACKSLASH_ESCAPE,s]}]},{className:"regexp",variants:[{begin:"///",end:"///",contains:[s,r.HASH_COMMENT_MODE]},{begin:"//[gim]{0,3}(?=\\W)",relevance:0},{begin:/\/(?![ *]).*?(?![\\]).\/[gim]{0,3}(?=\W)/}]},{begin:"@"+i},{subLanguage:"javascript",excludeBegin:!0,excludeEnd:!0,variants:[{begin:"```",end:"```"},{begin:"`",end:"`"}]}];s.contains=o;var c=r.inherit(r.TITLE_MODE,{begin:i}),l={className:"params",begin:"\\([^\\(]",returnBegin:!0,contains:[{begin:/\(/,end:/\)/,keywords:t,contains:["self"].concat(o)}]};return{name:"CoffeeScript",aliases:["coffee","cson","iced"],keywords:t,illegal:/\/\*/,contains:o.concat([r.COMMENT("###","###"),r.HASH_COMMENT_MODE,{className:"function",begin:"^\\s*"+i+"\\s*=\\s*(\\(.*\\))?\\s*\\B[-=]>",end:"[-=]>",returnBegin:!0,contains:[c,l]},{begin:/[:\(,=]\s*/,relevance:0,contains:[{className:"function",begin:"(\\(.*\\))?\\s*\\B[-=]>",end:"[-=]>",returnBegin:!0,contains:[l]}]},{className:"class",beginKeywords:"class",end:"$",illegal:/[:="\[\]]/,contains:[{beginKeywords:"extends",endsWithParent:!0,illegal:/[:="\[\]]/,contains:[c]},c]},{begin:i+":",end:":",returnBegin:!0,returnEnd:!0,relevance:0}])}}}()); -hljs.registerLanguage("cpp",function(){"use strict";return function(e){var i=e.requireLanguage("c-like").rawDefinition();return i.disableAutodetect=!1,i.name="C++",i.aliases=["cc","c++","h++","hpp","hh","hxx","cxx"],i}}()); -hljs.registerLanguage("csharp",function(){"use strict";return function(e){var n={keyword:"abstract as base bool break byte case catch char checked const continue decimal default delegate do double enum event explicit extern finally fixed float for foreach goto if implicit in init int interface internal is lock long object operator out override params private protected public readonly ref sbyte sealed short sizeof stackalloc static string struct switch this try typeof uint ulong unchecked unsafe ushort using virtual void volatile while add alias ascending async await by descending dynamic equals from get global group into join let nameof on orderby partial remove select set value var when where yield",literal:"null false true"},i=e.inherit(e.TITLE_MODE,{begin:"[a-zA-Z](\\.?\\w)*"}),a={className:"number",variants:[{begin:"\\b(0b[01']+)"},{begin:"(-?)\\b([\\d']+(\\.[\\d']*)?|\\.[\\d']+)(u|U|l|L|ul|UL|f|F|b|B)"},{begin:"(-?)(\\b0[xX][a-fA-F0-9']+|(\\b[\\d']+(\\.[\\d']*)?|\\.[\\d']+)([eE][-+]?[\\d']+)?)"}],relevance:0},s={className:"string",begin:'@"',end:'"',contains:[{begin:'""'}]},t=e.inherit(s,{illegal:/\n/}),l={className:"subst",begin:"{",end:"}",keywords:n},r=e.inherit(l,{illegal:/\n/}),c={className:"string",begin:/\$"/,end:'"',illegal:/\n/,contains:[{begin:"{{"},{begin:"}}"},e.BACKSLASH_ESCAPE,r]},o={className:"string",begin:/\$@"/,end:'"',contains:[{begin:"{{"},{begin:"}}"},{begin:'""'},l]},g=e.inherit(o,{illegal:/\n/,contains:[{begin:"{{"},{begin:"}}"},{begin:'""'},r]});l.contains=[o,c,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.C_BLOCK_COMMENT_MODE],r.contains=[g,c,t,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,a,e.inherit(e.C_BLOCK_COMMENT_MODE,{illegal:/\n/})];var d={variants:[o,c,s,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},E={begin:"<",end:">",contains:[{beginKeywords:"in out"},i]},_=e.IDENT_RE+"(<"+e.IDENT_RE+"(\\s*,\\s*"+e.IDENT_RE+")*>)?(\\[\\])?",b={begin:"@"+e.IDENT_RE,relevance:0};return{name:"C#",aliases:["cs","c#"],keywords:n,illegal:/::/,contains:[e.COMMENT("///","$",{returnBegin:!0,contains:[{className:"doctag",variants:[{begin:"///",relevance:0},{begin:"\x3c!--|--\x3e"},{begin:""}]}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"meta",begin:"#",end:"$",keywords:{"meta-keyword":"if else elif endif define undef warning error line region endregion pragma checksum"}},d,a,{beginKeywords:"class interface",end:/[{;=]/,illegal:/[^\s:,]/,contains:[{beginKeywords:"where class"},i,E,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"namespace",end:/[{;=]/,illegal:/[^\s:]/,contains:[i,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{beginKeywords:"record",end:/[{;=]/,illegal:/[^\s:]/,contains:[i,E,e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"meta",begin:"^\\s*\\[",excludeBegin:!0,end:"\\]",excludeEnd:!0,contains:[{className:"meta-string",begin:/"/,end:/"/}]},{beginKeywords:"new return throw await else",relevance:0},{className:"function",begin:"("+_+"\\s+)+"+e.IDENT_RE+"\\s*(\\<.+\\>)?\\s*\\(",returnBegin:!0,end:/\s*[{;=]/,excludeEnd:!0,keywords:n,contains:[{begin:e.IDENT_RE+"\\s*(\\<.+\\>)?\\s*\\(",returnBegin:!0,contains:[e.TITLE_MODE,E],relevance:0},{className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:n,relevance:0,contains:[d,a,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},b]}}}()); -hljs.registerLanguage("css",function(){"use strict";return function(e){var n={begin:/(?:[A-Z\_\.\-]+|--[a-zA-Z0-9_-]+)\s*:/,returnBegin:!0,end:";",endsWithParent:!0,contains:[{className:"attribute",begin:/\S/,end:":",excludeEnd:!0,starts:{endsWithParent:!0,excludeEnd:!0,contains:[{begin:/[\w-]+\(/,returnBegin:!0,contains:[{className:"built_in",begin:/[\w-]+/},{begin:/\(/,end:/\)/,contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE]}]},e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_BLOCK_COMMENT_MODE,{className:"number",begin:"#[0-9A-Fa-f]+"},{className:"meta",begin:"!important"}]}}]};return{name:"CSS",case_insensitive:!0,illegal:/[=\/|'\$]/,contains:[e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:/#[A-Za-z0-9_-]+/},{className:"selector-class",begin:/\.[A-Za-z0-9_-]+/},{className:"selector-attr",begin:/\[/,end:/\]/,illegal:"$",contains:[e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},{className:"selector-pseudo",begin:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{begin:"@(page|font-face)",lexemes:"@[a-z-]+",keywords:"@page @font-face"},{begin:"@",end:"[{;]",illegal:/:/,returnBegin:!0,contains:[{className:"keyword",begin:/@\-?\w[\w]*(\-\w+)*/},{begin:/\s/,endsWithParent:!0,excludeEnd:!0,relevance:0,keywords:"and or not only",contains:[{begin:/[a-z-]+:/,className:"attribute"},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.CSS_NUMBER_MODE]}]},{className:"selector-tag",begin:"[a-zA-Z-][a-zA-Z0-9_-]*",relevance:0},{begin:"{",end:"}",illegal:/\S/,contains:[e.C_BLOCK_COMMENT_MODE,n]}]}}}()); -hljs.registerLanguage("diff",function(){"use strict";return function(e){return{name:"Diff",aliases:["patch"],contains:[{className:"meta",relevance:10,variants:[{begin:/^@@ +\-\d+,\d+ +\+\d+,\d+ +@@$/},{begin:/^\*\*\* +\d+,\d+ +\*\*\*\*$/},{begin:/^\-\-\- +\d+,\d+ +\-\-\-\-$/}]},{className:"comment",variants:[{begin:/Index: /,end:/$/},{begin:/={3,}/,end:/$/},{begin:/^\-{3}/,end:/$/},{begin:/^\*{3} /,end:/$/},{begin:/^\+{3}/,end:/$/},{begin:/^\*{15}$/}]},{className:"addition",begin:"^\\+",end:"$"},{className:"deletion",begin:"^\\-",end:"$"},{className:"addition",begin:"^\\!",end:"$"}]}}}()); -hljs.registerLanguage("go",function(){"use strict";return function(e){var n={keyword:"break default func interface select case map struct chan else goto package switch const fallthrough if range type continue for import return var go defer bool byte complex64 complex128 float32 float64 int8 int16 int32 int64 string uint8 uint16 uint32 uint64 int uint uintptr rune",literal:"true false iota nil",built_in:"append cap close complex copy imag len make new panic print println real recover delete"};return{name:"Go",aliases:["golang"],keywords:n,illegal:"e(n)).join("")}return function(a){var s={className:"number",relevance:0,variants:[{begin:/([\+\-]+)?[\d]+_[\d_]+/},{begin:a.NUMBER_RE}]},i=a.COMMENT();i.variants=[{begin:/;/,end:/$/},{begin:/#/,end:/$/}];var t={className:"variable",variants:[{begin:/\$[\w\d"][\w\d_]*/},{begin:/\$\{(.*?)}/}]},r={className:"literal",begin:/\bon|off|true|false|yes|no\b/},l={className:"string",contains:[a.BACKSLASH_ESCAPE],variants:[{begin:"'''",end:"'''",relevance:10},{begin:'"""',end:'"""',relevance:10},{begin:'"',end:'"'},{begin:"'",end:"'"}]},c={begin:/\[/,end:/\]/,contains:[i,r,t,l,s,"self"],relevance:0},g="("+[/[A-Za-z0-9_-]+/,/"(\\"|[^"])*"/,/'[^']*'/].map(n=>e(n)).join("|")+")";return{name:"TOML, also INI",aliases:["toml"],case_insensitive:!0,illegal:/\S/,contains:[i,{className:"section",begin:/\[+/,end:/\]+/},{begin:n(g,"(\\s*\\.\\s*",g,")*",n("(?=",/\s*=\s*[^#\s]/,")")),className:"attr",starts:{end:/$/,contains:[i,c,r,t,l,s]}}]}}}()); -hljs.registerLanguage("java",function(){"use strict";function e(e){return e?"string"==typeof e?e:e.source:null}function n(e){return a("(",e,")?")}function a(...n){return n.map(n=>e(n)).join("")}function s(...n){return"("+n.map(n=>e(n)).join("|")+")"}return function(e){var t="false synchronized int abstract float private char boolean var static null if const for true while long strictfp finally protected import native final void enum else break transient catch instanceof byte super volatile case assert short package default double public try this switch continue throws protected public private module requires exports do",i={className:"meta",begin:"@[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*",contains:[{begin:/\(/,end:/\)/,contains:["self"]}]},r=e=>a("[",e,"]+([",e,"_]*[",e,"]+)?"),c={className:"number",variants:[{begin:`\\b(0[bB]${r("01")})[lL]?`},{begin:`\\b(0${r("0-7")})[dDfFlL]?`},{begin:a(/\b0[xX]/,s(a(r("a-fA-F0-9"),/\./,r("a-fA-F0-9")),a(r("a-fA-F0-9"),/\.?/),a(/\./,r("a-fA-F0-9"))),/([pP][+-]?(\d+))?/,/[fFdDlL]?/)},{begin:a(/\b/,s(a(/\d*\./,r("\\d")),r("\\d")),/[eE][+-]?[\d]+[dDfF]?/)},{begin:a(/\b/,r(/\d/),n(/\.?/),n(r(/\d/)),/[dDfFlL]?/)}],relevance:0};return{name:"Java",aliases:["jsp"],keywords:t,illegal:/<\/|#/,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{begin:/\w+@/,relevance:0},{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"class",beginKeywords:"class interface enum",end:/[{;=]/,excludeEnd:!0,keywords:"class interface enum",illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"new throw return else",relevance:0},{className:"function",begin:"([À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*(<[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*(\\s*,\\s*[À-ʸa-zA-Z_$][À-ʸa-zA-Z_$0-9]*)*>)?\\s+)+"+e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,end:/[{;=]/,excludeEnd:!0,keywords:t,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"params",begin:/\(/,end:/\)/,keywords:t,relevance:0,contains:[i,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE]},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},c,i]}}}()); -hljs.registerLanguage("javascript",function(){"use strict";const e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],a=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);function s(e){return r("(?=",e,")")}function r(...e){return e.map(e=>(function(e){return e?"string"==typeof e?e:e.source:null})(e)).join("")}return function(t){var i="[A-Za-z$_][0-9A-Za-z$_]*",c={begin:/<[A-Za-z0-9\\._:-]+/,end:/\/[A-Za-z0-9\\._:-]+>|\/>/},o={$pattern:"[A-Za-z$_][0-9A-Za-z$_]*",keyword:e.join(" "),literal:n.join(" "),built_in:a.join(" ")},l={className:"number",variants:[{begin:"\\b(0[bB][01]+)n?"},{begin:"\\b(0[oO][0-7]+)n?"},{begin:t.C_NUMBER_RE+"n?"}],relevance:0},E={className:"subst",begin:"\\$\\{",end:"\\}",keywords:o,contains:[]},d={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,E],subLanguage:"xml"}},g={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[t.BACKSLASH_ESCAPE,E],subLanguage:"css"}},u={className:"string",begin:"`",end:"`",contains:[t.BACKSLASH_ESCAPE,E]};E.contains=[t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,d,g,u,l,t.REGEXP_MODE];var b=E.contains.concat([{begin:/\(/,end:/\)/,contains:["self"].concat(E.contains,[t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE])},t.C_BLOCK_COMMENT_MODE,t.C_LINE_COMMENT_MODE]),_={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:b};return{name:"JavaScript",aliases:["js","jsx","mjs","cjs"],keywords:o,contains:[t.SHEBANG({binary:"node",relevance:5}),{className:"meta",relevance:10,begin:/^\s*['"]use (strict|asm)['"]/},t.APOS_STRING_MODE,t.QUOTE_STRING_MODE,d,g,u,t.C_LINE_COMMENT_MODE,t.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+",contains:[{className:"type",begin:"\\{",end:"\\}",relevance:0},{className:"variable",begin:i+"(?=\\s*(-)|$)",endsParent:!0,relevance:0},{begin:/(?=[^\n])\s/,relevance:0}]}]}),t.C_BLOCK_COMMENT_MODE,l,{begin:r(/[{,\n]\s*/,s(r(/(((\/\/.*$)|(\/\*(.|\n)*\*\/))\s*)*/,i+"\\s*:"))),relevance:0,contains:[{className:"attr",begin:i+s("\\s*:"),relevance:0}]},{begin:"("+t.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[t.C_LINE_COMMENT_MODE,t.C_BLOCK_COMMENT_MODE,t.REGEXP_MODE,{className:"function",begin:"(\\([^(]*(\\([^(]*(\\([^(]*\\))?\\))?\\)|"+t.UNDERSCORE_IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:t.UNDERSCORE_IDENT_RE},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:o,contains:b}]}]},{begin:/,/,relevance:0},{className:"",begin:/\s/,end:/\s*/,skip:!0},{variants:[{begin:"<>",end:""},{begin:c.begin,end:c.end}],subLanguage:"xml",contains:[{begin:c.begin,end:c.end,skip:!0,contains:["self"]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/\{/,excludeEnd:!0,contains:[t.inherit(t.TITLE_MODE,{begin:i}),_],illegal:/\[|%/},{begin:/\$[(.]/},t.METHOD_GUARD,{className:"class",beginKeywords:"class",end:/[{;=]/,excludeEnd:!0,illegal:/[:"\[\]]/,contains:[{beginKeywords:"extends"},t.UNDERSCORE_TITLE_MODE]},{beginKeywords:"constructor",end:/\{/,excludeEnd:!0},{begin:"(get|set)\\s+(?="+i+"\\()",end:/{/,keywords:"get set",contains:[t.inherit(t.TITLE_MODE,{begin:i}),{begin:/\(\)/},_]}],illegal:/#(?!!)/}}}()); -hljs.registerLanguage("json",function(){"use strict";return function(n){var e={literal:"true false null"},i=[n.C_LINE_COMMENT_MODE,n.C_BLOCK_COMMENT_MODE],t=[n.QUOTE_STRING_MODE,n.C_NUMBER_MODE],a={end:",",endsWithParent:!0,excludeEnd:!0,contains:t,keywords:e},l={begin:"{",end:"}",contains:[{className:"attr",begin:/"/,end:/"/,contains:[n.BACKSLASH_ESCAPE],illegal:"\\n"},n.inherit(a,{begin:/:/})].concat(i),illegal:"\\S"},s={begin:"\\[",end:"\\]",contains:[n.inherit(a)],illegal:"\\S"};return t.push(l,s),i.forEach((function(n){t.push(n)})),{name:"JSON",contains:t,keywords:e,illegal:"\\S"}}}()); -hljs.registerLanguage("kotlin",function(){"use strict";return function(e){var n={keyword:"abstract as val var vararg get set class object open private protected public noinline crossinline dynamic final enum if else do while for when throw try catch finally import package is in fun override companion reified inline lateinit init interface annotation data sealed internal infix operator out by constructor super tailrec where const inner suspend typealias external expect actual",built_in:"Byte Short Char Int Long Boolean Float Double Void Unit Nothing",literal:"true false null"},a={className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"@"},i={className:"subst",begin:"\\${",end:"}",contains:[e.C_NUMBER_MODE]},s={className:"variable",begin:"\\$"+e.UNDERSCORE_IDENT_RE},t={className:"string",variants:[{begin:'"""',end:'"""(?=[^"])',contains:[s,i]},{begin:"'",end:"'",illegal:/\n/,contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"',illegal:/\n/,contains:[e.BACKSLASH_ESCAPE,s,i]}]};i.contains.push(t);var r={className:"meta",begin:"@(?:file|property|field|get|set|receiver|param|setparam|delegate)\\s*:(?:\\s*"+e.UNDERSCORE_IDENT_RE+")?"},l={className:"meta",begin:"@"+e.UNDERSCORE_IDENT_RE,contains:[{begin:/\(/,end:/\)/,contains:[e.inherit(t,{className:"meta-string"})]}]},c=e.COMMENT("/\\*","\\*/",{contains:[e.C_BLOCK_COMMENT_MODE]}),o={variants:[{className:"type",begin:e.UNDERSCORE_IDENT_RE},{begin:/\(/,end:/\)/,contains:[]}]},d=o;return d.variants[1].contains=[o],o.variants[1].contains=[d],{name:"Kotlin",aliases:["kt"],keywords:n,contains:[e.COMMENT("/\\*\\*","\\*/",{relevance:0,contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.C_LINE_COMMENT_MODE,c,{className:"keyword",begin:/\b(break|continue|return|this)\b/,starts:{contains:[{className:"symbol",begin:/@\w+/}]}},a,r,l,{className:"function",beginKeywords:"fun",end:"[(]|$",returnBegin:!0,excludeEnd:!0,keywords:n,illegal:/fun\s+(<.*>)?[^\s\(]+(\s+[^\s\(]+)\s*=/,relevance:5,contains:[{begin:e.UNDERSCORE_IDENT_RE+"\\s*\\(",returnBegin:!0,relevance:0,contains:[e.UNDERSCORE_TITLE_MODE]},{className:"type",begin://,keywords:"reified",relevance:0},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:n,relevance:0,contains:[{begin:/:/,end:/[=,\/]/,endsWithParent:!0,contains:[o,e.C_LINE_COMMENT_MODE,c],relevance:0},e.C_LINE_COMMENT_MODE,c,r,l,t,e.C_NUMBER_MODE]},c]},{className:"class",beginKeywords:"class interface trait",end:/[:\{(]|$/,excludeEnd:!0,illegal:"extends implements",contains:[{beginKeywords:"public protected internal private constructor"},e.UNDERSCORE_TITLE_MODE,{className:"type",begin://,excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:/[,:]\s*/,end:/[<\(,]|$/,excludeBegin:!0,returnEnd:!0},r,l]},t,{className:"meta",begin:"^#!/usr/bin/env",end:"$",illegal:"\n"},{className:"number",begin:"\\b(0[bB]([01]+[01_]+[01]+|[01]+)|0[xX]([a-fA-F0-9]+[a-fA-F0-9_]+[a-fA-F0-9]+|[a-fA-F0-9]+)|(([\\d]+[\\d_]+[\\d]+|[\\d]+)(\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))?|\\.([\\d]+[\\d_]+[\\d]+|[\\d]+))([eE][-+]?\\d+)?)[lLfF]?",relevance:0}]}}}()); -hljs.registerLanguage("less",function(){"use strict";return function(e){var n="([\\w-]+|@{[\\w-]+})",a=[],s=[],t=function(e){return{className:"string",begin:"~?"+e+".*?"+e}},r=function(e,n,a){return{className:e,begin:n,relevance:a}},i={begin:"\\(",end:"\\)",contains:s,relevance:0};s.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,t("'"),t('"'),e.CSS_NUMBER_MODE,{begin:"(url|data-uri)\\(",starts:{className:"string",end:"[\\)\\n]",excludeEnd:!0}},r("number","#[0-9A-Fa-f]+\\b"),i,r("variable","@@?[\\w-]+",10),r("variable","@{[\\w-]+}"),r("built_in","~?`[^`]*?`"),{className:"attribute",begin:"[\\w-]+\\s*:",end:":",returnBegin:!0,excludeEnd:!0},{className:"meta",begin:"!important"});var c=s.concat({begin:"{",end:"}",contains:a}),l={beginKeywords:"when",endsWithParent:!0,contains:[{beginKeywords:"and not"}].concat(s)},o={begin:n+"\\s*:",returnBegin:!0,end:"[;}]",relevance:0,contains:[{className:"attribute",begin:n,end:":",excludeEnd:!0,starts:{endsWithParent:!0,illegal:"[<=$]",relevance:0,contains:s}}]},g={className:"keyword",begin:"@(import|media|charset|font-face|(-[a-z]+-)?keyframes|supports|document|namespace|page|viewport|host)\\b",starts:{end:"[;{}]",returnEnd:!0,contains:s,relevance:0}},d={className:"variable",variants:[{begin:"@[\\w-]+\\s*:",relevance:15},{begin:"@[\\w-]+"}],starts:{end:"[;}]",returnEnd:!0,contains:c}},b={variants:[{begin:"[\\.#:&\\[>]",end:"[;{}]"},{begin:n,end:"{"}],returnBegin:!0,returnEnd:!0,illegal:"[<='$\"]",relevance:0,contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,l,r("keyword","all\\b"),r("variable","@{[\\w-]+}"),r("selector-tag",n+"%?",0),r("selector-id","#"+n),r("selector-class","\\."+n,0),r("selector-tag","&",0),{className:"selector-attr",begin:"\\[",end:"\\]"},{className:"selector-pseudo",begin:/:(:)?[a-zA-Z0-9\_\-\+\(\)"'.]+/},{begin:"\\(",end:"\\)",contains:c},{begin:"!important"}]};return a.push(e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,g,d,o,b),{name:"Less",case_insensitive:!0,illegal:"[=>'/<($\"]",contains:a}}}()); -hljs.registerLanguage("lua",function(){"use strict";return function(e){var t={begin:"\\[=*\\[",end:"\\]=*\\]",contains:["self"]},a=[e.COMMENT("--(?!\\[=*\\[)","$"),e.COMMENT("--\\[=*\\[","\\]=*\\]",{contains:[t],relevance:10})];return{name:"Lua",keywords:{$pattern:e.UNDERSCORE_IDENT_RE,literal:"true false nil",keyword:"and break do else elseif end for goto if in local not or repeat return then until while",built_in:"_G _ENV _VERSION __index __newindex __mode __call __metatable __tostring __len __gc __add __sub __mul __div __mod __pow __concat __unm __eq __lt __le assert collectgarbage dofile error getfenv getmetatable ipairs load loadfile loadstring module next pairs pcall print rawequal rawget rawset require select setfenv setmetatable tonumber tostring type unpack xpcall arg self coroutine resume yield status wrap create running debug getupvalue debug sethook getmetatable gethook setmetatable setlocal traceback setfenv getinfo setupvalue getlocal getregistry getfenv io lines write close flush open output type read stderr stdin input stdout popen tmpfile math log max acos huge ldexp pi cos tanh pow deg tan cosh sinh random randomseed frexp ceil floor rad abs sqrt modf asin min mod fmod log10 atan2 exp sin atan os exit setlocale date getenv difftime remove time clock tmpname rename execute package preload loadlib loaded loaders cpath config path seeall string sub upper len gfind rep find match char dump gmatch reverse byte format gsub lower table setn insert getn foreachi maxn foreach concat sort remove"},contains:a.concat([{className:"function",beginKeywords:"function",end:"\\)",contains:[e.inherit(e.TITLE_MODE,{begin:"([_a-zA-Z]\\w*\\.)*([_a-zA-Z]\\w*:)?[_a-zA-Z]\\w*"}),{className:"params",begin:"\\(",endsWithParent:!0,contains:a}].concat(a)},e.C_NUMBER_MODE,e.APOS_STRING_MODE,e.QUOTE_STRING_MODE,{className:"string",begin:"\\[=*\\[",end:"\\]=*\\]",contains:[t],relevance:5}])}}}()); -hljs.registerLanguage("makefile",function(){"use strict";return function(e){var i={className:"variable",variants:[{begin:"\\$\\("+e.UNDERSCORE_IDENT_RE+"\\)",contains:[e.BACKSLASH_ESCAPE]},{begin:/\$[@%`]+/}]}]}]};return{name:"HTML, XML",aliases:["html","xhtml","rss","atom","xjb","xsd","xsl","plist","wsf","svg"],case_insensitive:!0,contains:[{className:"meta",begin:"",relevance:10,contains:[a,i,t,s,{begin:"\\[",end:"\\]",contains:[{className:"meta",begin:"",contains:[a,s,i,t]}]}]},e.COMMENT("\x3c!--","--\x3e",{relevance:10}),{begin:"<\\!\\[CDATA\\[",end:"\\]\\]>",relevance:10},n,{className:"meta",begin:/<\?xml/,end:/\?>/,relevance:10},{className:"tag",begin:")",end:">",keywords:{name:"style"},contains:[c],starts:{end:"",returnEnd:!0,subLanguage:["css","xml"]}},{className:"tag",begin:")",end:">",keywords:{name:"script"},contains:[c],starts:{end:"<\/script>",returnEnd:!0,subLanguage:["javascript","handlebars","xml"]}},{className:"tag",begin:"",contains:[{className:"name",begin:/[^\/><\s]+/,relevance:0},c]}]}}}()); -hljs.registerLanguage("markdown",function(){"use strict";return function(n){const e={begin:"<",end:">",subLanguage:"xml",relevance:0},a={begin:"\\[.+?\\][\\(\\[].*?[\\)\\]]",returnBegin:!0,contains:[{className:"string",begin:"\\[",end:"\\]",excludeBegin:!0,returnEnd:!0,relevance:0},{className:"link",begin:"\\]\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0},{className:"symbol",begin:"\\]\\[",end:"\\]",excludeBegin:!0,excludeEnd:!0}],relevance:10},i={className:"strong",contains:[],variants:[{begin:/_{2}/,end:/_{2}/},{begin:/\*{2}/,end:/\*{2}/}]},s={className:"emphasis",contains:[],variants:[{begin:/\*(?!\*)/,end:/\*/},{begin:/_(?!_)/,end:/_/,relevance:0}]};i.contains.push(s),s.contains.push(i);var c=[e,a];return i.contains=i.contains.concat(c),s.contains=s.contains.concat(c),{name:"Markdown",aliases:["md","mkdown","mkd"],contains:[{className:"section",variants:[{begin:"^#{1,6}",end:"$",contains:c=c.concat(i,s)},{begin:"(?=^.+?\\n[=-]{2,}$)",contains:[{begin:"^[=-]*$"},{begin:"^",end:"\\n",contains:c}]}]},e,{className:"bullet",begin:"^[ \t]*([*+-]|(\\d+\\.))(?=\\s+)",end:"\\s+",excludeEnd:!0},i,s,{className:"quote",begin:"^>\\s+",contains:c,end:"$"},{className:"code",variants:[{begin:"(`{3,})(.|\\n)*?\\1`*[ ]*"},{begin:"(~{3,})(.|\\n)*?\\1~*[ ]*"},{begin:"```",end:"```+[ ]*$"},{begin:"~~~",end:"~~~+[ ]*$"},{begin:"`.+?`"},{begin:"(?=^( {4}|\\t))",contains:[{begin:"^( {4}|\\t)",end:"(\\n)$"}],relevance:0}]},{begin:"^[-\\*]{3,}",end:"$"},a,{begin:/^\[[^\n]+\]:/,returnBegin:!0,contains:[{className:"symbol",begin:/\[/,end:/\]/,excludeBegin:!0,excludeEnd:!0},{className:"link",begin:/:\s*/,end:/$/,excludeBegin:!0}]}]}}}()); -hljs.registerLanguage("nginx",function(){"use strict";return function(e){var n={className:"variable",variants:[{begin:/\$\d+/},{begin:/\$\{/,end:/}/},{begin:"[\\$\\@]"+e.UNDERSCORE_IDENT_RE}]},a={endsWithParent:!0,keywords:{$pattern:"[a-z/_]+",literal:"on off yes no true false none blocked debug info notice warn error crit select break last permanent redirect kqueue rtsig epoll poll /dev/poll"},relevance:0,illegal:"=>",contains:[e.HASH_COMMENT_MODE,{className:"string",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:/"/,end:/"/},{begin:/'/,end:/'/}]},{begin:"([a-z]+):/",end:"\\s",endsWithParent:!0,excludeEnd:!0,contains:[n]},{className:"regexp",contains:[e.BACKSLASH_ESCAPE,n],variants:[{begin:"\\s\\^",end:"\\s|{|;",returnEnd:!0},{begin:"~\\*?\\s+",end:"\\s|{|;",returnEnd:!0},{begin:"\\*(\\.[a-z\\-]+)+"},{begin:"([a-z\\-]+\\.)+\\*"}]},{className:"number",begin:"\\b\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}\\.\\d{1,3}(:\\d{1,5})?\\b"},{className:"number",begin:"\\b\\d+[kKmMgGdshdwy]*\\b",relevance:0},n]};return{name:"Nginx config",aliases:["nginxconf"],contains:[e.HASH_COMMENT_MODE,{begin:e.UNDERSCORE_IDENT_RE+"\\s+{",returnBegin:!0,end:"{",contains:[{className:"section",begin:e.UNDERSCORE_IDENT_RE}],relevance:0},{begin:e.UNDERSCORE_IDENT_RE+"\\s",end:";|{",returnBegin:!0,contains:[{className:"attribute",begin:e.UNDERSCORE_IDENT_RE,starts:a}],relevance:0}],illegal:"[^\\s\\}]"}}}()); -hljs.registerLanguage("objectivec",function(){"use strict";return function(e){var n=/[a-zA-Z@][a-zA-Z0-9_]*/,_={$pattern:n,keyword:"@interface @class @protocol @implementation"};return{name:"Objective-C",aliases:["mm","objc","obj-c"],keywords:{$pattern:n,keyword:"int float while char export sizeof typedef const struct for union unsigned long volatile static bool mutable if do return goto void enum else break extern asm case short default double register explicit signed typename this switch continue wchar_t inline readonly assign readwrite self @synchronized id typeof nonatomic super unichar IBOutlet IBAction strong weak copy in out inout bycopy byref oneway __strong __weak __block __autoreleasing @private @protected @public @try @property @end @throw @catch @finally @autoreleasepool @synthesize @dynamic @selector @optional @required @encode @package @import @defs @compatibility_alias __bridge __bridge_transfer __bridge_retained __bridge_retain __covariant __contravariant __kindof _Nonnull _Nullable _Null_unspecified __FUNCTION__ __PRETTY_FUNCTION__ __attribute__ getter setter retain unsafe_unretained nonnull nullable null_unspecified null_resettable class instancetype NS_DESIGNATED_INITIALIZER NS_UNAVAILABLE NS_REQUIRES_SUPER NS_RETURNS_INNER_POINTER NS_INLINE NS_AVAILABLE NS_DEPRECATED NS_ENUM NS_OPTIONS NS_SWIFT_UNAVAILABLE NS_ASSUME_NONNULL_BEGIN NS_ASSUME_NONNULL_END NS_REFINED_FOR_SWIFT NS_SWIFT_NAME NS_SWIFT_NOTHROW NS_DURING NS_HANDLER NS_ENDHANDLER NS_VALUERETURN NS_VOIDRETURN",literal:"false true FALSE TRUE nil YES NO NULL",built_in:"BOOL dispatch_once_t dispatch_queue_t dispatch_sync dispatch_async dispatch_once"},illegal:"/,end:/$/,illegal:"\\n"},e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE]},{className:"class",begin:"("+_.keyword.split(" ").join("|")+")\\b",end:"({|$)",excludeEnd:!0,keywords:_,contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"\\."+e.UNDERSCORE_IDENT_RE,relevance:0}]}}}()); -hljs.registerLanguage("perl",function(){"use strict";return function(e){var n={$pattern:/[\w.]+/,keyword:"getpwent getservent quotemeta msgrcv scalar kill dbmclose undef lc ma syswrite tr send umask sysopen shmwrite vec qx utime local oct semctl localtime readpipe do return format read sprintf dbmopen pop getpgrp not getpwnam rewinddir qq fileno qw endprotoent wait sethostent bless s|0 opendir continue each sleep endgrent shutdown dump chomp connect getsockname die socketpair close flock exists index shmget sub for endpwent redo lstat msgctl setpgrp abs exit select print ref gethostbyaddr unshift fcntl syscall goto getnetbyaddr join gmtime symlink semget splice x|0 getpeername recv log setsockopt cos last reverse gethostbyname getgrnam study formline endhostent times chop length gethostent getnetent pack getprotoent getservbyname rand mkdir pos chmod y|0 substr endnetent printf next open msgsnd readdir use unlink getsockopt getpriority rindex wantarray hex system getservbyport endservent int chr untie rmdir prototype tell listen fork shmread ucfirst setprotoent else sysseek link getgrgid shmctl waitpid unpack getnetbyname reset chdir grep split require caller lcfirst until warn while values shift telldir getpwuid my getprotobynumber delete and sort uc defined srand accept package seekdir getprotobyname semop our rename seek if q|0 chroot sysread setpwent no crypt getc chown sqrt write setnetent setpriority foreach tie sin msgget map stat getlogin unless elsif truncate exec keys glob tied closedir ioctl socket readlink eval xor readline binmode setservent eof ord bind alarm pipe atan2 getgrent exp time push setgrent gt lt or ne m|0 break given say state when"},t={className:"subst",begin:"[$@]\\{",end:"\\}",keywords:n},s={begin:"->{",end:"}"},r={variants:[{begin:/\$\d/},{begin:/[\$%@](\^\w\b|#\w+(::\w+)*|{\w+}|\w+(::\w*)*)/},{begin:/[\$%@][^\s\w{]/,relevance:0}]},i=[e.BACKSLASH_ESCAPE,t,r],a=[r,e.HASH_COMMENT_MODE,e.COMMENT("^\\=\\w","\\=cut",{endsWithParent:!0}),s,{className:"string",contains:i,variants:[{begin:"q[qwxr]?\\s*\\(",end:"\\)",relevance:5},{begin:"q[qwxr]?\\s*\\[",end:"\\]",relevance:5},{begin:"q[qwxr]?\\s*\\{",end:"\\}",relevance:5},{begin:"q[qwxr]?\\s*\\|",end:"\\|",relevance:5},{begin:"q[qwxr]?\\s*\\<",end:"\\>",relevance:5},{begin:"qw\\s+q",end:"q",relevance:5},{begin:"'",end:"'",contains:[e.BACKSLASH_ESCAPE]},{begin:'"',end:'"'},{begin:"`",end:"`",contains:[e.BACKSLASH_ESCAPE]},{begin:"{\\w+}",contains:[],relevance:0},{begin:"-?\\w+\\s*\\=\\>",contains:[],relevance:0}]},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\/\\/|"+e.RE_STARTERS_RE+"|\\b(split|return|print|reverse|grep)\\b)\\s*",keywords:"split return print reverse grep",relevance:0,contains:[e.HASH_COMMENT_MODE,{className:"regexp",begin:"(s|tr|y)/(\\\\.|[^/])*/(\\\\.|[^/])*/[a-z]*",relevance:10},{className:"regexp",begin:"(m|qr)?/",end:"/[a-z]*",contains:[e.BACKSLASH_ESCAPE],relevance:0}]},{className:"function",beginKeywords:"sub",end:"(\\s*\\(.*?\\))?[;{]",excludeEnd:!0,relevance:5,contains:[e.TITLE_MODE]},{begin:"-\\w\\b",relevance:0},{begin:"^__DATA__$",end:"^__END__$",subLanguage:"mojolicious",contains:[{begin:"^@@.*",end:"$",className:"comment"}]}];return t.contains=a,s.contains=a,{name:"Perl",aliases:["pl","pm"],keywords:n,contains:a}}}()); -hljs.registerLanguage("php",function(){"use strict";return function(e){var r={begin:"\\$+[a-zA-Z_-ÿ][a-zA-Z0-9_-ÿ]*"},t={className:"meta",variants:[{begin:/<\?php/,relevance:10},{begin:/<\?[=]?/},{begin:/\?>/}]},a={className:"subst",variants:[{begin:/\$\w+/},{begin:/\{\$/,end:/\}/}]},n=e.inherit(e.APOS_STRING_MODE,{illegal:null}),i=e.inherit(e.QUOTE_STRING_MODE,{illegal:null,contains:e.QUOTE_STRING_MODE.contains.concat(a)}),o=e.END_SAME_AS_BEGIN({begin:/<<<[ \t]*(\w+)\n/,end:/[ \t]*(\w+)\b/,contains:e.QUOTE_STRING_MODE.contains.concat(a)}),l={className:"string",contains:[e.BACKSLASH_ESCAPE,t],variants:[e.inherit(n,{begin:"b'",end:"'"}),e.inherit(i,{begin:'b"',end:'"'}),i,n,o]},s={variants:[e.BINARY_NUMBER_MODE,e.C_NUMBER_MODE]},c={keyword:"__CLASS__ __DIR__ __FILE__ __FUNCTION__ __LINE__ __METHOD__ __NAMESPACE__ __TRAIT__ die echo exit include include_once print require require_once array abstract and as binary bool boolean break callable case catch class clone const continue declare default do double else elseif empty enddeclare endfor endforeach endif endswitch endwhile eval extends final finally float for foreach from global goto if implements instanceof insteadof int integer interface isset iterable list new object or private protected public real return string switch throw trait try unset use var void while xor yield",literal:"false null true",built_in:"Error|0 AppendIterator ArgumentCountError ArithmeticError ArrayIterator ArrayObject AssertionError BadFunctionCallException BadMethodCallException CachingIterator CallbackFilterIterator CompileError Countable DirectoryIterator DivisionByZeroError DomainException EmptyIterator ErrorException Exception FilesystemIterator FilterIterator GlobIterator InfiniteIterator InvalidArgumentException IteratorIterator LengthException LimitIterator LogicException MultipleIterator NoRewindIterator OutOfBoundsException OutOfRangeException OuterIterator OverflowException ParentIterator ParseError RangeException RecursiveArrayIterator RecursiveCachingIterator RecursiveCallbackFilterIterator RecursiveDirectoryIterator RecursiveFilterIterator RecursiveIterator RecursiveIteratorIterator RecursiveRegexIterator RecursiveTreeIterator RegexIterator RuntimeException SeekableIterator SplDoublyLinkedList SplFileInfo SplFileObject SplFixedArray SplHeap SplMaxHeap SplMinHeap SplObjectStorage SplObserver SplObserver SplPriorityQueue SplQueue SplStack SplSubject SplSubject SplTempFileObject TypeError UnderflowException UnexpectedValueException ArrayAccess Closure Generator Iterator IteratorAggregate Serializable Throwable Traversable WeakReference Directory __PHP_Incomplete_Class parent php_user_filter self static stdClass"};return{aliases:["php","php3","php4","php5","php6","php7"],case_insensitive:!0,keywords:c,contains:[e.HASH_COMMENT_MODE,e.COMMENT("//","$",{contains:[t]}),e.COMMENT("/\\*","\\*/",{contains:[{className:"doctag",begin:"@[A-Za-z]+"}]}),e.COMMENT("__halt_compiler.+?;",!1,{endsWithParent:!0,keywords:"__halt_compiler"}),t,{className:"keyword",begin:/\$this\b/},r,{begin:/(::|->)+[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/},{className:"function",beginKeywords:"fn function",end:/[;{]/,excludeEnd:!0,illegal:"[$%\\[]",contains:[e.UNDERSCORE_TITLE_MODE,{className:"params",begin:"\\(",end:"\\)",excludeBegin:!0,excludeEnd:!0,keywords:c,contains:["self",r,e.C_BLOCK_COMMENT_MODE,l,s]}]},{className:"class",beginKeywords:"class interface",end:"{",excludeEnd:!0,illegal:/[:\(\$"]/,contains:[{beginKeywords:"extends implements"},e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"namespace",end:";",illegal:/[\.']/,contains:[e.UNDERSCORE_TITLE_MODE]},{beginKeywords:"use",end:";",contains:[e.UNDERSCORE_TITLE_MODE]},{begin:"=>"},l,s]}}}()); -hljs.registerLanguage("php-template",function(){"use strict";return function(n){return{name:"PHP template",subLanguage:"xml",contains:[{begin:/<\?(php|=)?/,end:/\?>/,subLanguage:"php",contains:[{begin:"/\\*",end:"\\*/",skip:!0},{begin:'b"',end:'"',skip:!0},{begin:"b'",end:"'",skip:!0},n.inherit(n.APOS_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0}),n.inherit(n.QUOTE_STRING_MODE,{illegal:null,className:null,contains:null,skip:!0})]}]}}}()); -hljs.registerLanguage("plaintext",function(){"use strict";return function(t){return{name:"Plain text",aliases:["text","txt"],disableAutodetect:!0}}}()); -hljs.registerLanguage("properties",function(){"use strict";return function(e){var n="[ \\t\\f]*",t="("+n+"[:=]"+n+"|[ \\t\\f]+)",a="([^\\\\:= \\t\\f\\n]|\\\\.)+",s={end:t,relevance:0,starts:{className:"string",end:/$/,relevance:0,contains:[{begin:"\\\\\\n"}]}};return{name:".properties",case_insensitive:!0,illegal:/\S/,contains:[e.COMMENT("^\\s*[!#]","$"),{begin:"([^\\\\\\W:= \\t\\f\\n]|\\\\.)+"+t,returnBegin:!0,contains:[{className:"attr",begin:"([^\\\\\\W:= \\t\\f\\n]|\\\\.)+",endsParent:!0,relevance:0}],starts:s},{begin:a+t,returnBegin:!0,relevance:0,contains:[{className:"meta",begin:a,endsParent:!0,relevance:0}],starts:s},{className:"attr",relevance:0,begin:a+n+"$"}]}}}()); -hljs.registerLanguage("python",function(){"use strict";return function(e){var n={keyword:"and elif is global as in if from raise for except finally print import pass return exec else break not with class assert yield try while continue del or def lambda async await nonlocal|10",built_in:"Ellipsis NotImplemented",literal:"False None True"},a={className:"meta",begin:/^(>>>|\.\.\.) /},i={className:"subst",begin:/\{/,end:/\}/,keywords:n,illegal:/#/},s={begin:/\{\{/,relevance:0},r={className:"string",contains:[e.BACKSLASH_ESCAPE],variants:[{begin:/(u|b)?r?'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,a],relevance:10},{begin:/(u|b)?r?"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,a],relevance:10},{begin:/(fr|rf|f)'''/,end:/'''/,contains:[e.BACKSLASH_ESCAPE,a,s,i]},{begin:/(fr|rf|f)"""/,end:/"""/,contains:[e.BACKSLASH_ESCAPE,a,s,i]},{begin:/(u|r|ur)'/,end:/'/,relevance:10},{begin:/(u|r|ur)"/,end:/"/,relevance:10},{begin:/(b|br)'/,end:/'/},{begin:/(b|br)"/,end:/"/},{begin:/(fr|rf|f)'/,end:/'/,contains:[e.BACKSLASH_ESCAPE,s,i]},{begin:/(fr|rf|f)"/,end:/"/,contains:[e.BACKSLASH_ESCAPE,s,i]},e.APOS_STRING_MODE,e.QUOTE_STRING_MODE]},l={className:"number",relevance:0,variants:[{begin:e.BINARY_NUMBER_RE+"[lLjJ]?"},{begin:"\\b(0o[0-7]+)[lLjJ]?"},{begin:e.C_NUMBER_RE+"[lLjJ]?"}]},t={className:"params",variants:[{begin:/\(\s*\)/,skip:!0,className:null},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,contains:["self",a,l,r,e.HASH_COMMENT_MODE]}]};return i.contains=[r,l,a],{name:"Python",aliases:["py","gyp","ipython"],keywords:n,illegal:/(<\/|->|\?)|=>/,contains:[a,l,{beginKeywords:"if",relevance:0},r,e.HASH_COMMENT_MODE,{variants:[{className:"function",beginKeywords:"def"},{className:"class",beginKeywords:"class"}],end:/:/,illegal:/[${=;\n,]/,contains:[e.UNDERSCORE_TITLE_MODE,t,{begin:/->/,endsWithParent:!0,keywords:"None"}]},{className:"meta",begin:/^[\t ]*@/,end:/$/},{begin:/\b(print|exec)\(/}]}}}()); -hljs.registerLanguage("python-repl",function(){"use strict";return function(n){return{aliases:["pycon"],contains:[{className:"meta",starts:{end:/ |$/,starts:{end:"$",subLanguage:"python"}},variants:[{begin:/^>>>(?=[ ]|$)/},{begin:/^\.\.\.(?=[ ]|$)/}]}]}}}()); -hljs.registerLanguage("ruby",function(){"use strict";return function(e){var n="[a-zA-Z_]\\w*[!?=]?|[-+~]\\@|<<|>>|=~|===?|<=>|[<>]=?|\\*\\*|[-/+%^&*~`|]|\\[\\]=?",a={keyword:"and then defined module in return redo if BEGIN retry end for self when next until do begin unless END rescue else break undef not super class case require yield alias while ensure elsif or include attr_reader attr_writer attr_accessor",literal:"true false nil"},s={className:"doctag",begin:"@[A-Za-z]+"},i={begin:"#<",end:">"},r=[e.COMMENT("#","$",{contains:[s]}),e.COMMENT("^\\=begin","^\\=end",{contains:[s],relevance:10}),e.COMMENT("^__END__","\\n$")],c={className:"subst",begin:"#\\{",end:"}",keywords:a},t={className:"string",contains:[e.BACKSLASH_ESCAPE,c],variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/`/,end:/`/},{begin:"%[qQwWx]?\\(",end:"\\)"},{begin:"%[qQwWx]?\\[",end:"\\]"},{begin:"%[qQwWx]?{",end:"}"},{begin:"%[qQwWx]?<",end:">"},{begin:"%[qQwWx]?/",end:"/"},{begin:"%[qQwWx]?%",end:"%"},{begin:"%[qQwWx]?-",end:"-"},{begin:"%[qQwWx]?\\|",end:"\\|"},{begin:/\B\?(\\\d{1,3}|\\x[A-Fa-f0-9]{1,2}|\\u[A-Fa-f0-9]{4}|\\?\S)\b/},{begin:/<<[-~]?'?(\w+)(?:.|\n)*?\n\s*\1\b/,returnBegin:!0,contains:[{begin:/<<[-~]?'?/},e.END_SAME_AS_BEGIN({begin:/(\w+)/,end:/(\w+)/,contains:[e.BACKSLASH_ESCAPE,c]})]}]},b={className:"params",begin:"\\(",end:"\\)",endsParent:!0,keywords:a},d=[t,i,{className:"class",beginKeywords:"class module",end:"$|;",illegal:/=/,contains:[e.inherit(e.TITLE_MODE,{begin:"[A-Za-z_]\\w*(::\\w+)*(\\?|\\!)?"}),{begin:"<\\s*",contains:[{begin:"("+e.IDENT_RE+"::)?"+e.IDENT_RE}]}].concat(r)},{className:"function",beginKeywords:"def",end:"$|;",contains:[e.inherit(e.TITLE_MODE,{begin:n}),b].concat(r)},{begin:e.IDENT_RE+"::"},{className:"symbol",begin:e.UNDERSCORE_IDENT_RE+"(\\!|\\?)?:",relevance:0},{className:"symbol",begin:":(?!\\s)",contains:[t,{begin:n}],relevance:0},{className:"number",begin:"(\\b0[0-7_]+)|(\\b0x[0-9a-fA-F_]+)|(\\b[1-9][0-9_]*(\\.[0-9_]+)?)|[0_]\\b",relevance:0},{begin:"(\\$\\W)|((\\$|\\@\\@?)(\\w+))"},{className:"params",begin:/\|/,end:/\|/,keywords:a},{begin:"("+e.RE_STARTERS_RE+"|unless)\\s*",keywords:"unless",contains:[i,{className:"regexp",contains:[e.BACKSLASH_ESCAPE,c],illegal:/\n/,variants:[{begin:"/",end:"/[a-z]*"},{begin:"%r{",end:"}[a-z]*"},{begin:"%r\\(",end:"\\)[a-z]*"},{begin:"%r!",end:"![a-z]*"},{begin:"%r\\[",end:"\\][a-z]*"}]}].concat(r),relevance:0}].concat(r);c.contains=d,b.contains=d;var g=[{begin:/^\s*=>/,starts:{end:"$",contains:d}},{className:"meta",begin:"^([>?]>|[\\w#]+\\(\\w+\\):\\d+:\\d+>|(\\w+-)?\\d+\\.\\d+\\.\\d(p\\d+)?[^>]+>)",starts:{end:"$",contains:d}}];return{name:"Ruby",aliases:["rb","gemspec","podspec","thor","irb"],keywords:a,illegal:/\/\*/,contains:r.concat(g).concat(d)}}}()); -hljs.registerLanguage("rust",function(){"use strict";return function(e){var n="([ui](8|16|32|64|128|size)|f(32|64))?",t="drop i8 i16 i32 i64 i128 isize u8 u16 u32 u64 u128 usize f32 f64 str char bool Box Option Result String Vec Copy Send Sized Sync Drop Fn FnMut FnOnce ToOwned Clone Debug PartialEq PartialOrd Eq Ord AsRef AsMut Into From Default Iterator Extend IntoIterator DoubleEndedIterator ExactSizeIterator SliceConcatExt ToString assert! assert_eq! bitflags! bytes! cfg! col! concat! concat_idents! debug_assert! debug_assert_eq! env! panic! file! format! format_args! include_bin! include_str! line! local_data_key! module_path! option_env! print! println! select! stringify! try! unimplemented! unreachable! vec! write! writeln! macro_rules! assert_ne! debug_assert_ne!";return{name:"Rust",aliases:["rs"],keywords:{$pattern:e.IDENT_RE+"!?",keyword:"abstract as async await become box break const continue crate do dyn else enum extern false final fn for if impl in let loop macro match mod move mut override priv pub ref return self Self static struct super trait true try type typeof unsafe unsized use virtual where while yield",literal:"true false Some None Ok Err",built_in:t},illegal:""}]}}}()); -hljs.registerLanguage("scss",function(){"use strict";return function(e){var t={className:"variable",begin:"(\\$[a-zA-Z-][a-zA-Z0-9_-]*)\\b"},i={className:"number",begin:"#[0-9A-Fa-f]+"};return e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,e.C_BLOCK_COMMENT_MODE,{name:"SCSS",case_insensitive:!0,illegal:"[=/|']",contains:[e.C_LINE_COMMENT_MODE,e.C_BLOCK_COMMENT_MODE,{className:"selector-id",begin:"\\#[A-Za-z0-9_-]+",relevance:0},{className:"selector-class",begin:"\\.[A-Za-z0-9_-]+",relevance:0},{className:"selector-attr",begin:"\\[",end:"\\]",illegal:"$"},{className:"selector-tag",begin:"\\b(a|abbr|acronym|address|area|article|aside|audio|b|base|big|blockquote|body|br|button|canvas|caption|cite|code|col|colgroup|command|datalist|dd|del|details|dfn|div|dl|dt|em|embed|fieldset|figcaption|figure|footer|form|frame|frameset|(h[1-6])|head|header|hgroup|hr|html|i|iframe|img|input|ins|kbd|keygen|label|legend|li|link|map|mark|meta|meter|nav|noframes|noscript|object|ol|optgroup|option|output|p|param|pre|progress|q|rp|rt|ruby|samp|script|section|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|time|title|tr|tt|ul|var|video)\\b",relevance:0},{className:"selector-pseudo",begin:":(visited|valid|root|right|required|read-write|read-only|out-range|optional|only-of-type|only-child|nth-of-type|nth-last-of-type|nth-last-child|nth-child|not|link|left|last-of-type|last-child|lang|invalid|indeterminate|in-range|hover|focus|first-of-type|first-line|first-letter|first-child|first|enabled|empty|disabled|default|checked|before|after|active)"},{className:"selector-pseudo",begin:"::(after|before|choices|first-letter|first-line|repeat-index|repeat-item|selection|value)"},t,{className:"attribute",begin:"\\b(src|z-index|word-wrap|word-spacing|word-break|width|widows|white-space|visibility|vertical-align|unicode-bidi|transition-timing-function|transition-property|transition-duration|transition-delay|transition|transform-style|transform-origin|transform|top|text-underline-position|text-transform|text-shadow|text-rendering|text-overflow|text-indent|text-decoration-style|text-decoration-line|text-decoration-color|text-decoration|text-align-last|text-align|tab-size|table-layout|right|resize|quotes|position|pointer-events|perspective-origin|perspective|page-break-inside|page-break-before|page-break-after|padding-top|padding-right|padding-left|padding-bottom|padding|overflow-y|overflow-x|overflow-wrap|overflow|outline-width|outline-style|outline-offset|outline-color|outline|orphans|order|opacity|object-position|object-fit|normal|none|nav-up|nav-right|nav-left|nav-index|nav-down|min-width|min-height|max-width|max-height|mask|marks|margin-top|margin-right|margin-left|margin-bottom|margin|list-style-type|list-style-position|list-style-image|list-style|line-height|letter-spacing|left|justify-content|initial|inherit|ime-mode|image-orientation|image-resolution|image-rendering|icon|hyphens|height|font-weight|font-variant-ligatures|font-variant|font-style|font-stretch|font-size-adjust|font-size|font-language-override|font-kerning|font-feature-settings|font-family|font|float|flex-wrap|flex-shrink|flex-grow|flex-flow|flex-direction|flex-basis|flex|filter|empty-cells|display|direction|cursor|counter-reset|counter-increment|content|column-width|column-span|column-rule-width|column-rule-style|column-rule-color|column-rule|column-gap|column-fill|column-count|columns|color|clip-path|clip|clear|caption-side|break-inside|break-before|break-after|box-sizing|box-shadow|box-decoration-break|bottom|border-width|border-top-width|border-top-style|border-top-right-radius|border-top-left-radius|border-top-color|border-top|border-style|border-spacing|border-right-width|border-right-style|border-right-color|border-right|border-radius|border-left-width|border-left-style|border-left-color|border-left|border-image-width|border-image-source|border-image-slice|border-image-repeat|border-image-outset|border-image|border-color|border-collapse|border-bottom-width|border-bottom-style|border-bottom-right-radius|border-bottom-left-radius|border-bottom-color|border-bottom|border|background-size|background-repeat|background-position|background-origin|background-image|background-color|background-clip|background-attachment|background-blend-mode|background|backface-visibility|auto|animation-timing-function|animation-play-state|animation-name|animation-iteration-count|animation-fill-mode|animation-duration|animation-direction|animation-delay|animation|align-self|align-items|align-content)\\b",illegal:"[^\\s]"},{begin:"\\b(whitespace|wait|w-resize|visible|vertical-text|vertical-ideographic|uppercase|upper-roman|upper-alpha|underline|transparent|top|thin|thick|text|text-top|text-bottom|tb-rl|table-header-group|table-footer-group|sw-resize|super|strict|static|square|solid|small-caps|separate|se-resize|scroll|s-resize|rtl|row-resize|ridge|right|repeat|repeat-y|repeat-x|relative|progress|pointer|overline|outside|outset|oblique|nowrap|not-allowed|normal|none|nw-resize|no-repeat|no-drop|newspaper|ne-resize|n-resize|move|middle|medium|ltr|lr-tb|lowercase|lower-roman|lower-alpha|loose|list-item|line|line-through|line-edge|lighter|left|keep-all|justify|italic|inter-word|inter-ideograph|inside|inset|inline|inline-block|inherit|inactive|ideograph-space|ideograph-parenthesis|ideograph-numeric|ideograph-alpha|horizontal|hidden|help|hand|groove|fixed|ellipsis|e-resize|double|dotted|distribute|distribute-space|distribute-letter|distribute-all-lines|disc|disabled|default|decimal|dashed|crosshair|collapse|col-resize|circle|char|center|capitalize|break-word|break-all|bottom|both|bolder|bold|block|bidi-override|below|baseline|auto|always|all-scroll|absolute|table|table-cell)\\b"},{begin:":",end:";",contains:[t,i,e.CSS_NUMBER_MODE,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,{className:"meta",begin:"!important"}]},{begin:"@(page|font-face)",lexemes:"@[a-z-]+",keywords:"@page @font-face"},{begin:"@",end:"[{;]",returnBegin:!0,keywords:"and or not only",contains:[{begin:"@[a-z-]+",className:"keyword"},t,e.QUOTE_STRING_MODE,e.APOS_STRING_MODE,i,e.CSS_NUMBER_MODE]}]}}}()); -hljs.registerLanguage("shell",function(){"use strict";return function(s){return{name:"Shell Session",aliases:["console"],contains:[{className:"meta",begin:"^\\s{0,3}[/\\w\\d\\[\\]()@-]*[>%$#]",starts:{end:"$",subLanguage:"bash"}}]}}}()); -hljs.registerLanguage("sql",function(){"use strict";return function(e){var t=e.COMMENT("--","$");return{name:"SQL",case_insensitive:!0,illegal:/[<>{}*]/,contains:[{beginKeywords:"begin end start commit rollback savepoint lock alter create drop rename call delete do handler insert load replace select truncate update set show pragma grant merge describe use explain help declare prepare execute deallocate release unlock purge reset change stop analyze cache flush optimize repair kill install uninstall checksum restore check backup revoke comment values with",end:/;/,endsWithParent:!0,keywords:{$pattern:/[\w\.]+/,keyword:"as abort abs absolute acc acce accep accept access accessed accessible account acos action activate add addtime admin administer advanced advise aes_decrypt aes_encrypt after agent aggregate ali alia alias all allocate allow alter always analyze ancillary and anti any anydata anydataset anyschema anytype apply archive archived archivelog are as asc ascii asin assembly assertion associate asynchronous at atan atn2 attr attri attrib attribu attribut attribute attributes audit authenticated authentication authid authors auto autoallocate autodblink autoextend automatic availability avg backup badfile basicfile before begin beginning benchmark between bfile bfile_base big bigfile bin binary_double binary_float binlog bit_and bit_count bit_length bit_or bit_xor bitmap blob_base block blocksize body both bound bucket buffer_cache buffer_pool build bulk by byte byteordermark bytes cache caching call calling cancel capacity cascade cascaded case cast catalog category ceil ceiling chain change changed char_base char_length character_length characters characterset charindex charset charsetform charsetid check checksum checksum_agg child choose chr chunk class cleanup clear client clob clob_base clone close cluster_id cluster_probability cluster_set clustering coalesce coercibility col collate collation collect colu colum column column_value columns columns_updated comment commit compact compatibility compiled complete composite_limit compound compress compute concat concat_ws concurrent confirm conn connec connect connect_by_iscycle connect_by_isleaf connect_by_root connect_time connection consider consistent constant constraint constraints constructor container content contents context contributors controlfile conv convert convert_tz corr corr_k corr_s corresponding corruption cos cost count count_big counted covar_pop covar_samp cpu_per_call cpu_per_session crc32 create creation critical cross cube cume_dist curdate current current_date current_time current_timestamp current_user cursor curtime customdatum cycle data database databases datafile datafiles datalength date_add date_cache date_format date_sub dateadd datediff datefromparts datename datepart datetime2fromparts day day_to_second dayname dayofmonth dayofweek dayofyear days db_role_change dbtimezone ddl deallocate declare decode decompose decrement decrypt deduplicate def defa defau defaul default defaults deferred defi defin define degrees delayed delegate delete delete_all delimited demand dense_rank depth dequeue des_decrypt des_encrypt des_key_file desc descr descri describ describe descriptor deterministic diagnostics difference dimension direct_load directory disable disable_all disallow disassociate discardfile disconnect diskgroup distinct distinctrow distribute distributed div do document domain dotnet double downgrade drop dumpfile duplicate duration each edition editionable editions element ellipsis else elsif elt empty enable enable_all enclosed encode encoding encrypt end end-exec endian enforced engine engines enqueue enterprise entityescaping eomonth error errors escaped evalname evaluate event eventdata events except exception exceptions exchange exclude excluding execu execut execute exempt exists exit exp expire explain explode export export_set extended extent external external_1 external_2 externally extract failed failed_login_attempts failover failure far fast feature_set feature_value fetch field fields file file_name_convert filesystem_like_logging final finish first first_value fixed flash_cache flashback floor flush following follows for forall force foreign form forma format found found_rows freelist freelists freepools fresh from from_base64 from_days ftp full function general generated get get_format get_lock getdate getutcdate global global_name globally go goto grant grants greatest group group_concat group_id grouping grouping_id groups gtid_subtract guarantee guard handler hash hashkeys having hea head headi headin heading heap help hex hierarchy high high_priority hosts hour hours http id ident_current ident_incr ident_seed identified identity idle_time if ifnull ignore iif ilike ilm immediate import in include including increment index indexes indexing indextype indicator indices inet6_aton inet6_ntoa inet_aton inet_ntoa infile initial initialized initially initrans inmemory inner innodb input insert install instance instantiable instr interface interleaved intersect into invalidate invisible is is_free_lock is_ipv4 is_ipv4_compat is_not is_not_null is_used_lock isdate isnull isolation iterate java join json json_exists keep keep_duplicates key keys kill language large last last_day last_insert_id last_value lateral lax lcase lead leading least leaves left len lenght length less level levels library like like2 like4 likec limit lines link list listagg little ln load load_file lob lobs local localtime localtimestamp locate locator lock locked log log10 log2 logfile logfiles logging logical logical_reads_per_call logoff logon logs long loop low low_priority lower lpad lrtrim ltrim main make_set makedate maketime managed management manual map mapping mask master master_pos_wait match matched materialized max maxextents maximize maxinstances maxlen maxlogfiles maxloghistory maxlogmembers maxsize maxtrans md5 measures median medium member memcompress memory merge microsecond mid migration min minextents minimum mining minus minute minutes minvalue missing mod mode model modification modify module monitoring month months mount move movement multiset mutex name name_const names nan national native natural nav nchar nclob nested never new newline next nextval no no_write_to_binlog noarchivelog noaudit nobadfile nocheck nocompress nocopy nocycle nodelay nodiscardfile noentityescaping noguarantee nokeep nologfile nomapping nomaxvalue nominimize nominvalue nomonitoring none noneditionable nonschema noorder nopr nopro noprom nopromp noprompt norely noresetlogs noreverse normal norowdependencies noschemacheck noswitch not nothing notice notnull notrim novalidate now nowait nth_value nullif nulls num numb numbe nvarchar nvarchar2 object ocicoll ocidate ocidatetime ociduration ociinterval ociloblocator ocinumber ociref ocirefcursor ocirowid ocistring ocitype oct octet_length of off offline offset oid oidindex old on online only opaque open operations operator optimal optimize option optionally or oracle oracle_date oradata ord ordaudio orddicom orddoc order ordimage ordinality ordvideo organization orlany orlvary out outer outfile outline output over overflow overriding package pad parallel parallel_enable parameters parent parse partial partition partitions pascal passing password password_grace_time password_lock_time password_reuse_max password_reuse_time password_verify_function patch path patindex pctincrease pctthreshold pctused pctversion percent percent_rank percentile_cont percentile_disc performance period period_add period_diff permanent physical pi pipe pipelined pivot pluggable plugin policy position post_transaction pow power pragma prebuilt precedes preceding precision prediction prediction_cost prediction_details prediction_probability prediction_set prepare present preserve prior priority private private_sga privileges procedural procedure procedure_analyze processlist profiles project prompt protection public publishingservername purge quarter query quick quiesce quota quotename radians raise rand range rank raw read reads readsize rebuild record records recover recovery recursive recycle redo reduced ref reference referenced references referencing refresh regexp_like register regr_avgx regr_avgy regr_count regr_intercept regr_r2 regr_slope regr_sxx regr_sxy reject rekey relational relative relaylog release release_lock relies_on relocate rely rem remainder rename repair repeat replace replicate replication required reset resetlogs resize resource respect restore restricted result result_cache resumable resume retention return returning returns reuse reverse revoke right rlike role roles rollback rolling rollup round row row_count rowdependencies rowid rownum rows rtrim rules safe salt sample save savepoint sb1 sb2 sb4 scan schema schemacheck scn scope scroll sdo_georaster sdo_topo_geometry search sec_to_time second seconds section securefile security seed segment select self semi sequence sequential serializable server servererror session session_user sessions_per_user set sets settings sha sha1 sha2 share shared shared_pool short show shrink shutdown si_averagecolor si_colorhistogram si_featurelist si_positionalcolor si_stillimage si_texture siblings sid sign sin size size_t sizes skip slave sleep smalldatetimefromparts smallfile snapshot some soname sort soundex source space sparse spfile split sql sql_big_result sql_buffer_result sql_cache sql_calc_found_rows sql_small_result sql_variant_property sqlcode sqldata sqlerror sqlname sqlstate sqrt square standalone standby start starting startup statement static statistics stats_binomial_test stats_crosstab stats_ks_test stats_mode stats_mw_test stats_one_way_anova stats_t_test_ stats_t_test_indep stats_t_test_one stats_t_test_paired stats_wsr_test status std stddev stddev_pop stddev_samp stdev stop storage store stored str str_to_date straight_join strcmp strict string struct stuff style subdate subpartition subpartitions substitutable substr substring subtime subtring_index subtype success sum suspend switch switchoffset switchover sync synchronous synonym sys sys_xmlagg sysasm sysaux sysdate sysdatetimeoffset sysdba sysoper system system_user sysutcdatetime table tables tablespace tablesample tan tdo template temporary terminated tertiary_weights test than then thread through tier ties time time_format time_zone timediff timefromparts timeout timestamp timestampadd timestampdiff timezone_abbr timezone_minute timezone_region to to_base64 to_date to_days to_seconds todatetimeoffset trace tracking transaction transactional translate translation treat trigger trigger_nestlevel triggers trim truncate try_cast try_convert try_parse type ub1 ub2 ub4 ucase unarchived unbounded uncompress under undo unhex unicode uniform uninstall union unique unix_timestamp unknown unlimited unlock unnest unpivot unrecoverable unsafe unsigned until untrusted unusable unused update updated upgrade upped upper upsert url urowid usable usage use use_stored_outlines user user_data user_resources users using utc_date utc_timestamp uuid uuid_short validate validate_password_strength validation valist value values var var_samp varcharc vari varia variab variabl variable variables variance varp varraw varrawc varray verify version versions view virtual visible void wait wallet warning warnings week weekday weekofyear wellformed when whene whenev wheneve whenever where while whitespace window with within without work wrapped xdb xml xmlagg xmlattributes xmlcast xmlcolattval xmlelement xmlexists xmlforest xmlindex xmlnamespaces xmlpi xmlquery xmlroot xmlschema xmlserialize xmltable xmltype xor year year_to_month years yearweek",literal:"true false null unknown",built_in:"array bigint binary bit blob bool boolean char character date dec decimal float int int8 integer interval number numeric real record serial serial8 smallint text time timestamp tinyint varchar varchar2 varying void"},contains:[{className:"string",begin:"'",end:"'",contains:[{begin:"''"}]},{className:"string",begin:'"',end:'"',contains:[{begin:'""'}]},{className:"string",begin:"`",end:"`"},e.C_NUMBER_MODE,e.C_BLOCK_COMMENT_MODE,t,e.HASH_COMMENT_MODE]},e.C_BLOCK_COMMENT_MODE,t,e.HASH_COMMENT_MODE]}}}()); -hljs.registerLanguage("swift",function(){"use strict";return function(e){var i={keyword:"#available #colorLiteral #column #else #elseif #endif #file #fileLiteral #function #if #imageLiteral #line #selector #sourceLocation _ __COLUMN__ __FILE__ __FUNCTION__ __LINE__ Any as as! as? associatedtype associativity break case catch class continue convenience default defer deinit didSet do dynamic dynamicType else enum extension fallthrough false fileprivate final for func get guard if import in indirect infix init inout internal is lazy left let mutating nil none nonmutating open operator optional override postfix precedence prefix private protocol Protocol public repeat required rethrows return right self Self set static struct subscript super switch throw throws true try try! try? Type typealias unowned var weak where while willSet",literal:"true false nil",built_in:"abs advance alignof alignofValue anyGenerator assert assertionFailure bridgeFromObjectiveC bridgeFromObjectiveCUnconditional bridgeToObjectiveC bridgeToObjectiveCUnconditional c compactMap contains count countElements countLeadingZeros debugPrint debugPrintln distance dropFirst dropLast dump encodeBitsAsWords enumerate equal fatalError filter find getBridgedObjectiveCType getVaList indices insertionSort isBridgedToObjectiveC isBridgedVerbatimToObjectiveC isUniquelyReferenced isUniquelyReferencedNonObjC join lazy lexicographicalCompare map max maxElement min minElement numericCast overlaps partition posix precondition preconditionFailure print println quickSort readLine reduce reflect reinterpretCast reverse roundUpToAlignment sizeof sizeofValue sort split startsWith stride strideof strideofValue swap toString transcode underestimateCount unsafeAddressOf unsafeBitCast unsafeDowncast unsafeUnwrap unsafeReflect withExtendedLifetime withObjectAtPlusZero withUnsafePointer withUnsafePointerToObject withUnsafeMutablePointer withUnsafeMutablePointers withUnsafePointer withUnsafePointers withVaList zip"},n=e.COMMENT("/\\*","\\*/",{contains:["self"]}),t={className:"subst",begin:/\\\(/,end:"\\)",keywords:i,contains:[]},a={className:"string",contains:[e.BACKSLASH_ESCAPE,t],variants:[{begin:/"""/,end:/"""/},{begin:/"/,end:/"/}]},r={className:"number",begin:"\\b([\\d_]+(\\.[\\deE_]+)?|0x[a-fA-F0-9_]+(\\.[a-fA-F0-9p_]+)?|0b[01_]+|0o[0-7_]+)\\b",relevance:0};return t.contains=[r],{name:"Swift",keywords:i,contains:[a,e.C_LINE_COMMENT_MODE,n,{className:"type",begin:"\\b[A-Z][\\wÀ-ʸ']*[!?]"},{className:"type",begin:"\\b[A-Z][\\wÀ-ʸ']*",relevance:0},r,{className:"function",beginKeywords:"func",end:"{",excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][0-9A-Za-z$_]*/}),{begin://},{className:"params",begin:/\(/,end:/\)/,endsParent:!0,keywords:i,contains:["self",r,a,e.C_BLOCK_COMMENT_MODE,{begin:":"}],illegal:/["']/}],illegal:/\[|%/},{className:"class",beginKeywords:"struct protocol class extension enum",keywords:i,end:"\\{",excludeEnd:!0,contains:[e.inherit(e.TITLE_MODE,{begin:/[A-Za-z$_][\u00C0-\u02B80-9A-Za-z$_]*/})]},{className:"meta",begin:"(@discardableResult|@warn_unused_result|@exported|@lazy|@noescape|@NSCopying|@NSManaged|@objc|@objcMembers|@convention|@required|@noreturn|@IBAction|@IBDesignable|@IBInspectable|@IBOutlet|@infix|@prefix|@postfix|@autoclosure|@testable|@available|@nonobjc|@NSApplicationMain|@UIApplicationMain|@dynamicMemberLookup|@propertyWrapper)\\b"},{beginKeywords:"import",end:/$/,contains:[e.C_LINE_COMMENT_MODE,n]}]}}}()); -hljs.registerLanguage("typescript",function(){"use strict";const e=["as","in","of","if","for","while","finally","var","new","function","do","return","void","else","break","catch","instanceof","with","throw","case","default","try","switch","continue","typeof","delete","let","yield","const","class","debugger","async","await","static","import","from","export","extends"],n=["true","false","null","undefined","NaN","Infinity"],a=[].concat(["setInterval","setTimeout","clearInterval","clearTimeout","require","exports","eval","isFinite","isNaN","parseFloat","parseInt","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","unescape"],["arguments","this","super","console","window","document","localStorage","module","global"],["Intl","DataView","Number","Math","Date","String","RegExp","Object","Function","Boolean","Error","Symbol","Set","Map","WeakSet","WeakMap","Proxy","Reflect","JSON","Promise","Float64Array","Int16Array","Int32Array","Int8Array","Uint16Array","Uint32Array","Float32Array","Array","Uint8Array","Uint8ClampedArray","ArrayBuffer"],["EvalError","InternalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError"]);return function(r){var t={$pattern:"[A-Za-z$_][0-9A-Za-z$_]*",keyword:e.concat(["type","namespace","typedef","interface","public","private","protected","implements","declare","abstract","readonly"]).join(" "),literal:n.join(" "),built_in:a.concat(["any","void","number","boolean","string","object","never","enum"]).join(" ")},s={className:"meta",begin:"@[A-Za-z$_][0-9A-Za-z$_]*"},i={className:"number",variants:[{begin:"\\b(0[bB][01]+)n?"},{begin:"\\b(0[oO][0-7]+)n?"},{begin:r.C_NUMBER_RE+"n?"}],relevance:0},o={className:"subst",begin:"\\$\\{",end:"\\}",keywords:t,contains:[]},c={begin:"html`",end:"",starts:{end:"`",returnEnd:!1,contains:[r.BACKSLASH_ESCAPE,o],subLanguage:"xml"}},l={begin:"css`",end:"",starts:{end:"`",returnEnd:!1,contains:[r.BACKSLASH_ESCAPE,o],subLanguage:"css"}},E={className:"string",begin:"`",end:"`",contains:[r.BACKSLASH_ESCAPE,o]};o.contains=[r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,c,l,E,i,r.REGEXP_MODE];var d={begin:"\\(",end:/\)/,keywords:t,contains:["self",r.QUOTE_STRING_MODE,r.APOS_STRING_MODE,r.NUMBER_MODE]},u={className:"params",begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,contains:[r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,s,d]};return{name:"TypeScript",aliases:["ts"],keywords:t,contains:[r.SHEBANG(),{className:"meta",begin:/^\s*['"]use strict['"]/},r.APOS_STRING_MODE,r.QUOTE_STRING_MODE,c,l,E,r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,i,{begin:"("+r.RE_STARTERS_RE+"|\\b(case|return|throw)\\b)\\s*",keywords:"return throw case",contains:[r.C_LINE_COMMENT_MODE,r.C_BLOCK_COMMENT_MODE,r.REGEXP_MODE,{className:"function",begin:"(\\([^(]*(\\([^(]*(\\([^(]*\\))?\\))?\\)|"+r.UNDERSCORE_IDENT_RE+")\\s*=>",returnBegin:!0,end:"\\s*=>",contains:[{className:"params",variants:[{begin:r.UNDERSCORE_IDENT_RE},{className:null,begin:/\(\s*\)/,skip:!0},{begin:/\(/,end:/\)/,excludeBegin:!0,excludeEnd:!0,keywords:t,contains:d.contains}]}]}],relevance:0},{className:"function",beginKeywords:"function",end:/[\{;]/,excludeEnd:!0,keywords:t,contains:["self",r.inherit(r.TITLE_MODE,{begin:"[A-Za-z$_][0-9A-Za-z$_]*"}),u],illegal:/%/,relevance:0},{beginKeywords:"constructor",end:/[\{;]/,excludeEnd:!0,contains:["self",u]},{begin:/module\./,keywords:{built_in:"module"},relevance:0},{beginKeywords:"module",end:/\{/,excludeEnd:!0},{beginKeywords:"interface",end:/\{/,excludeEnd:!0,keywords:"interface extends"},{begin:/\$[(.]/},{begin:"\\."+r.IDENT_RE,relevance:0},s,d]}}}()); -hljs.registerLanguage("yaml",function(){"use strict";return function(e){var n="true false yes no null",a="[\\w#;/?:@&=+$,.~*\\'()[\\]]+",s={className:"string",relevance:0,variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/\S+/}],contains:[e.BACKSLASH_ESCAPE,{className:"template-variable",variants:[{begin:"{{",end:"}}"},{begin:"%{",end:"}"}]}]},i=e.inherit(s,{variants:[{begin:/'/,end:/'/},{begin:/"/,end:/"/},{begin:/[^\s,{}[\]]+/}]}),l={end:",",endsWithParent:!0,excludeEnd:!0,contains:[],keywords:n,relevance:0},t={begin:"{",end:"}",contains:[l],illegal:"\\n",relevance:0},g={begin:"\\[",end:"\\]",contains:[l],illegal:"\\n",relevance:0},b=[{className:"attr",variants:[{begin:"\\w[\\w :\\/.-]*:(?=[ \t]|$)"},{begin:'"\\w[\\w :\\/.-]*":(?=[ \t]|$)'},{begin:"'\\w[\\w :\\/.-]*':(?=[ \t]|$)"}]},{className:"meta",begin:"^---s*$",relevance:10},{className:"string",begin:"[\\|>]([0-9]?[+-])?[ ]*\\n( *)[\\S ]+\\n(\\2[\\S ]+\\n?)*"},{begin:"<%[%=-]?",end:"[%-]?%>",subLanguage:"ruby",excludeBegin:!0,excludeEnd:!0,relevance:0},{className:"type",begin:"!\\w+!"+a},{className:"type",begin:"!<"+a+">"},{className:"type",begin:"!"+a},{className:"type",begin:"!!"+a},{className:"meta",begin:"&"+e.UNDERSCORE_IDENT_RE+"$"},{className:"meta",begin:"\\*"+e.UNDERSCORE_IDENT_RE+"$"},{className:"bullet",begin:"\\-(?=[ ]|$)",relevance:0},e.HASH_COMMENT_MODE,{beginKeywords:n,keywords:{literal:n}},{className:"number",begin:"\\b[0-9]{4}(-[0-9][0-9]){0,2}([Tt \\t][0-9][0-9]?(:[0-9][0-9]){2})?(\\.[0-9]*)?([ \\t])*(Z|[-+][0-9][0-9]?(:[0-9][0-9])?)?\\b"},{className:"number",begin:e.C_NUMBER_RE+"\\b"},t,g,s],c=[...b];return c.pop(),c.push(i),l.contains=c,{name:"YAML",case_insensitive:!0,aliases:["yml","YAML"],contains:b}}}()); \ No newline at end of file diff --git a/public/assets/js/search.4693619a4639bda022df6ac85ec0253d1f59ec7943649fd4a0fcafe8c61c46d1.js b/public/assets/js/search.4693619a4639bda022df6ac85ec0253d1f59ec7943649fd4a0fcafe8c61c46d1.js deleted file mode 100644 index 50ee217..0000000 --- a/public/assets/js/search.4693619a4639bda022df6ac85ec0253d1f59ec7943649fd4a0fcafe8c61c46d1.js +++ /dev/null @@ -1,19 +0,0 @@ -/** - * Fuse.js v6.6.2 - Lightweight fuzzy-search (http://fusejs.io) - * - * Copyright (c) 2022 Kiro Risk (http://kiro.me) - * All Rights Reserved. Apache Software License 2.0 - * - * http://www.apache.org/licenses/LICENSE-2.0 - */ -var e,t;e=this,t=function(){"use strict";function e(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function t(t){for(var n=1;ne.length)&&(t=e.length);for(var n=0,r=new Array(t);n0&&void 0!==arguments[0]?arguments[0]:1,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:3,n=new Map,r=Math.pow(10,t);return{get:function(t){var i=t.match(_).length;if(n.has(i))return n.get(i);var o=1/Math.pow(i,.5*e),a=parseFloat(Math.round(o*r)/r);return n.set(i,a),a},clear:function(){n.clear()}}}var O=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=t.getFn,i=void 0===n?L.getFn:n,o=t.fieldNormWeight,a=void 0===o?L.fieldNormWeight:o;r(this,e),this.norm=S(a,3),this.getFn=i,this.isCreated=!1,this.setIndexRecords()}return o(e,[{key:"setSources",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.docs=e}},{key:"setIndexRecords",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.records=e}},{key:"setKeys",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];this.keys=t,this._keysMap={},t.forEach((function(t,n){e._keysMap[t.id]=n}))}},{key:"create",value:function(){var e=this;!this.isCreated&&this.docs.length&&(this.isCreated=!0,u(this.docs[0])?this.docs.forEach((function(t,n){e._addString(t,n)})):this.docs.forEach((function(t,n){e._addObject(t,n)})),this.norm.clear())}},{key:"add",value:function(e){var t=this.size();u(e)?this._addString(e,t):this._addObject(e,t)}},{key:"removeAt",value:function(e){this.records.splice(e,1);for(var t=e,n=this.size();t2&&void 0!==arguments[2]?arguments[2]:{},r=n.getFn,i=void 0===r?L.getFn:r,o=n.fieldNormWeight,a=void 0===o?L.fieldNormWeight:o,c=new O({getFn:i,fieldNormWeight:a});return c.setKeys(e.map(k)),c.setSources(t),c.create(),c}function j(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.errors,r=void 0===n?0:n,i=t.currentLocation,o=void 0===i?0:i,a=t.expectedLocation,c=void 0===a?0:a,s=t.distance,h=void 0===s?L.distance:s,u=t.ignoreLocation,l=void 0===u?L.ignoreLocation:u,d=r/e.length;if(l)return d;var f=Math.abs(c-o);return h?d+f/h:f?1:d}function E(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L.minMatchCharLength,n=[],r=-1,i=-1,o=0,a=e.length;o=t&&n.push([r,i]),r=-1)}return e[o-1]&&o-r>=t&&n.push([r,o-1]),n}var I=32;function F(e){for(var t={},n=0,r=e.length;n1&&void 0!==arguments[1]?arguments[1]:{},o=i.location,a=void 0===o?L.location:o,c=i.threshold,s=void 0===c?L.threshold:c,h=i.distance,u=void 0===h?L.distance:h,l=i.includeMatches,d=void 0===l?L.includeMatches:l,f=i.findAllMatches,v=void 0===f?L.findAllMatches:f,g=i.minMatchCharLength,y=void 0===g?L.minMatchCharLength:g,p=i.isCaseSensitive,m=void 0===p?L.isCaseSensitive:p,b=i.ignoreLocation,k=void 0===b?L.ignoreLocation:b;if(r(this,e),this.options={location:a,threshold:s,distance:u,includeMatches:d,findAllMatches:v,minMatchCharLength:y,isCaseSensitive:m,ignoreLocation:k},this.pattern=m?t:t.toLowerCase(),this.chunks=[],this.pattern.length){var M=function(e,t){n.chunks.push({pattern:e,alphabet:F(e),startIndex:t})},w=this.pattern.length;if(w>I){for(var x=0,_=w%I,S=w-_;x3&&void 0!==arguments[3]?arguments[3]:{},i=r.location,o=void 0===i?L.location:i,a=r.distance,c=void 0===a?L.distance:a,s=r.threshold,h=void 0===s?L.threshold:s,u=r.findAllMatches,l=void 0===u?L.findAllMatches:u,d=r.minMatchCharLength,f=void 0===d?L.minMatchCharLength:d,v=r.includeMatches,g=void 0===v?L.includeMatches:v,y=r.ignoreLocation,m=void 0===y?L.ignoreLocation:y;if(t.length>I)throw new Error(p(I));for(var b,k=t.length,M=e.length,w=Math.max(0,Math.min(o,M)),x=h,_=w,S=f>1||g,O=S?Array(M):[];(b=e.indexOf(t,_))>-1;){var A=j(t,{currentLocation:b,expectedLocation:w,distance:c,ignoreLocation:m});if(x=Math.min(A,x),_=b+k,S)for(var F=0;F=T;R-=1){var U=R-1,B=n[e.charAt(U)];if(S&&(O[U]=+!!B),J[R]=(J[R+1]<<1|1)&B,$&&(J[R]|=(C[R+1]|C[R])<<1|1|C[R+1]),J[R]&W&&(N=j(t,{errors:$,currentLocation:U,expectedLocation:w,distance:c,ignoreLocation:m}))<=x){if(x=N,(_=U)<=w)break;T=Math.max(1,2*w-_)}}if(j(t,{errors:$+1,currentLocation:w,expectedLocation:w,distance:c,ignoreLocation:m})>x)break;C=J}var V={isMatch:_>=0,score:Math.max(.001,N)};if(S){var q=E(O,f);q.length?g&&(V.indices=q):V.isMatch=!1}return V}(e,n,i,{location:a+o,distance:s,threshold:h,findAllMatches:u,minMatchCharLength:l,includeMatches:r,ignoreLocation:d}),m=y.isMatch,b=y.score,k=y.indices;m&&(g=!0),v+=b,m&&k&&(f=[].concat(c(f),c(k)))}));var y={isMatch:g,score:g?v/this.chunks.length:1};return g&&r&&(y.indices=f),y}}]),e}(),N=[];function P(e,t){for(var n=0,r=N.length;n-1&&(n.refIndex=e.idx),t.matches.push(n)}}))}function D(e,t){t.score=e.score}function K(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=n.includeMatches,i=void 0===r?L.includeMatches:r,o=n.includeScore,a=void 0===o?L.includeScore:o,c=[];return i&&c.push($),a&&c.push(D),e.map((function(e){var n=e.idx,r={item:t[n],refIndex:n};return c.length&&c.forEach((function(t){t(e,r)})),r}))}var T=function(){function e(n){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},o=arguments.length>2?arguments[2]:void 0;if(r(this,e),this.options=t(t({},L),i),this.options.useExtendedSearch)throw new Error(y);this._keyStore=new b(this.options.keys),this.setCollection(n,o)}return o(e,[{key:"setCollection",value:function(e,t){if(this._docs=e,t&&!(t instanceof O))throw new Error("Incorrect 'index' type");this._myIndex=t||A(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}},{key:"add",value:function(e){f(e)&&(this._docs.push(e),this._myIndex.add(e))}},{key:"remove",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){return!1},t=[],n=0,r=this._docs.length;n1&&void 0!==arguments[1]?arguments[1]:{},n=t.limit,r=void 0===n?-1:n,i=this.options,o=i.includeMatches,a=i.includeScore,c=i.shouldSort,s=i.sortFn,h=i.ignoreFieldNorm,d=u(e)?u(this._docs[0])?this._searchStringList(e):this._searchObjectList(e):this._searchLogical(e);return W(d,{ignoreFieldNorm:h}),c&&d.sort(s),l(r)&&r>-1&&(d=d.slice(0,r)),K(d,this._docs,{includeMatches:o,includeScore:a})}},{key:"_searchStringList",value:function(e){var t=P(e,this.options),n=this._myIndex.records,r=[];return n.forEach((function(e){var n=e.v,i=e.i,o=e.n;if(f(n)){var a=t.searchIn(n),c=a.isMatch,s=a.score,h=a.indices;c&&r.push({item:n,idx:i,matches:[{score:s,value:n,norm:o,indices:h}]})}})),r}},{key:"_searchLogical",value:function(e){throw new Error("Logical search is not available")}},{key:"_searchObjectList",value:function(e){var t=this,n=P(e,this.options),r=this._myIndex,i=r.keys,o=r.records,a=[];return o.forEach((function(e){var r=e.$,o=e.i;if(f(r)){var s=[];i.forEach((function(e,i){s.push.apply(s,c(t._findMatches({key:e,value:r[i],searcher:n})))})),s.length&&a.push({idx:o,item:r,matches:s})}})),a}},{key:"_findMatches",value:function(e){var t=e.key,n=e.value,r=e.searcher;if(!f(n))return[];var i=[];if(h(n))n.forEach((function(e){var n=e.v,o=e.i,a=e.n;if(f(n)){var c=r.searchIn(n),s=c.isMatch,h=c.score,u=c.indices;s&&i.push({score:h,key:t,value:n,idx:o,norm:a,indices:u})}}));else{var o=n.v,a=n.n,c=r.searchIn(o),s=c.isMatch,u=c.score,l=c.indices;s&&i.push({score:u,key:t,value:o,norm:a,indices:l})}return i}}]),e}();return T.version="6.6.2",T.createIndex=A,T.parseIndex=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.getFn,r=void 0===n?L.getFn:n,i=t.fieldNormWeight,o=void 0===i?L.fieldNormWeight:i,a=e.keys,c=e.records,s=new O({getFn:r,fieldNormWeight:o});return s.setKeys(a),s.setIndexRecords(c),s},T.config=L,T},"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).Fuse=t(); -; -/* - PaperMod v7 - License: MIT https://github.com/adityatelange/hugo-PaperMod/blob/master/LICENSE - Copyright (c) 2020 nanxiaobei and adityatelange - Copyright (c) 2021-2023 adityatelange -*/ - -; -(()=>{var i,r,c,e={distance:1e3,iscasesensitive:!1,keys:["title","permalink","summary","content"],location:0,minmatchcharlength:0,shouldsort:!0,threshold:.4},n=document.getElementById("searchResults"),t=document.getElementById("searchInput"),a=null,s=!1;window.onload=function(){let t=new XMLHttpRequest;t.onreadystatechange=function(){if(t.readyState===4)if(t.status===200){{let n=JSON.parse(t.responseText);if(n){let t={distance:100,threshold:.4,ignoreLocation:!0,keys:["title","permalink","summary","content"]};e&&(t={isCaseSensitive:e.iscasesensitive??!1,includeScore:e.includescore??!1,includeMatches:e.includematches??!1,minMatchCharLength:e.minmatchcharlength??1,shouldSort:e.shouldsort??!0,findAllMatches:e.findallmatches??!1,keys:e.keys??["title","permalink","summary","content"],location:e.location??0,threshold:e.threshold??.4,distance:e.distance??100,ignoreLocation:e.ignorelocation??!0}),i=new Fuse(n,t)}}}else console.log(t.responseText)},t.open("GET","../index.json"),t.send()};function o(e){document.querySelectorAll(".focus").forEach(function(e){e.classList.remove("focus")}),e?(e.focus(),document.activeElement=a=e,e.parentElement.classList.add("focus")):document.activeElement.parentElement.classList.add("focus")}function l(){s=!1,n.innerHTML=t.value="",t.focus()}t.onkeyup=function(){if(i){const e=i.search(this.value.trim());if(e.length!==0){let t="";for(let n in e)t+=`
  • ${e[n].item.title} \xBB
  • `;n.innerHTML=t,s=!0,r=n.firstChild,c=n.lastChild}else s=!1,n.innerHTML=""}},t.addEventListener("search",function(){this.value||l()}),document.onkeydown=function(e){let d=e.key,i=document.activeElement,u=document.getElementById("searchbox").contains(i);if(i===t){let e=document.getElementsByClassName("focus");for(;e.length>0;)e[0].classList.remove("focus")}else a&&(i=a);if(d==="Escape")l();else if(!s||!u)return;else d==="ArrowDown"?(e.preventDefault(),i==t?o(n.firstChild.lastChild):i.parentElement!=c&&o(i.parentElement.nextSibling.lastChild)):d==="ArrowUp"?(e.preventDefault(),i.parentElement==r?o(t):i!=t&&o(i.parentElement.previousSibling.lastChild)):d==="ArrowRight"&&i.click()}})() \ No newline at end of file diff --git a/public/categories/index.html b/public/categories/index.html deleted file mode 100644 index 65c7e9f..0000000 --- a/public/categories/index.html +++ /dev/null @@ -1,5 +0,0 @@ -Categories | ahmza's ramblings -
      \ No newline at end of file diff --git a/public/categories/index.xml b/public/categories/index.xml deleted file mode 100644 index aa187d3..0000000 --- a/public/categories/index.xml +++ /dev/null @@ -1,15 +0,0 @@ - - - - Categories on ahmza's ramblings - https://blog.ahmza.com/categories/ - Recent content in Categories on ahmza's ramblings - - ahmza's ramblings - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - - Hugo -- gohugo.io - en - - diff --git a/public/contact/index.html b/public/contact/index.html deleted file mode 100644 index 819479c..0000000 --- a/public/contact/index.html +++ /dev/null @@ -1,5 +0,0 @@ -contact | ahmza's ramblings -
      \ No newline at end of file diff --git a/public/img/favicon.png b/public/img/favicon.png deleted file mode 100755 index ddb04c4..0000000 Binary files a/public/img/favicon.png and /dev/null differ diff --git a/public/img/hugo/feature.aseprite b/public/img/hugo/feature.aseprite deleted file mode 100644 index 29f9676..0000000 Binary files a/public/img/hugo/feature.aseprite and /dev/null differ diff --git a/public/img/hugo/feature.webp b/public/img/hugo/feature.webp deleted file mode 100644 index 4a5cb86..0000000 Binary files a/public/img/hugo/feature.webp and /dev/null differ diff --git a/public/index.html b/public/index.html deleted file mode 100644 index 677919c..0000000 --- a/public/index.html +++ /dev/null @@ -1,7 +0,0 @@ -ahmza's ramblings -
      skullstache

      Welcome 👋

      ahmza’s ramblings, A place to share his crazy thoughts
      \ No newline at end of file diff --git a/public/index.json b/public/index.json deleted file mode 100644 index 0ad043e..0000000 --- a/public/index.json +++ /dev/null @@ -1 +0,0 @@ -[{"content":"Mon 20 Mar 2023 The news was broken to all Twitch employees that there was going to be a mass layoff that would nuke 1/5th of Twitch\u0026rsquo;s workforce, Just over 400 employees. We were not given a date that this would happen we were just told that it would be by the end of the week or early the next week.\nFri 24 Mar 2023 The day started with an announcement that Twitch would layoff 1/5th of its workforce. The anticipation of this moment through the whole week left hundreds of us with a sick feeling in our stomachs. They had split the layoffs up between APAC, EMEA, And AMER. APAC on the chopping block first. We saw people loose access and numbers from our #general slack channel dither. Each Region had a 5 hour window where people would get dropped in waves. You were lucky to get dropped straight away instead of be part of the last wave of people and have hopes that you might just be one of the people to survive.\nLuckily I was one of the folk that was able to keep their jobs this time. But 1/5th of the workforce has surely affected every person that works at twitch. We all lost somebody we worked with or reported to and so morale has tanked this past week, and you can see it. The #general channel is almost a bone yard.\nIn my team the GSOC we lost our technicians, these amazing folk made our lives - the engineers - much easier as we no longer needed to worry about emails and phone calls. Now that the Techs have gone this workload has been thrown back at us and it has shaken up the way we got used to working. Our workflows have been disrupted and thus productivity has dropped massively. But not only when it comes to work will we miss these people, The two Technicians that I worked with made the shift lively and I already miss our interactions.\nConclusion If you\u0026rsquo;re reading this and you are a recruiter then please talk into account ex-twitch employees effected by this tragic event.\nShout outs to:\nAnastasia Limantzakis Viktoria (Viki) Bagley ","permalink":"https://blog.ahmza.com/posts/twitch-layoffs/","summary":"Mon 20 Mar 2023 The news was broken to all Twitch employees that there was going to be a mass layoff that would nuke 1/5th of Twitch\u0026rsquo;s workforce, Just over 400 employees. We were not given a date that this would happen we were just told that it would be by the end of the week or early the next week.\nFri 24 Mar 2023 The day started with an announcement that Twitch would layoff 1/5th of its workforce.","title":"Twitch Layoffs"},{"content":"Introduction Hugo is a static site generator, a tool that allows us to pre-compile our website into static HTML, CSS and JS. The main benefit of using such methods is speed. A Static site takes a lot less time to load than a site that uses databases.\nFor more information on HUGO read my other post Hugo Static Site Generator Prerequisites Git Installing HUGO Official steps The HUGO binary is what we will use throughout the creation of our project to initially setup our site then create posts etc\u0026hellip; This step will vary depending on your operating system and distribution. I will show the steps for MacOS and Arch based Linux distros.\nMacOS Install homebrew brew install hugo Arch sudo pacman -S hugo Confirm Installation hugo version Create your site This assumes a few steps for you, i.e the theme used. The settings in this guide will mimic the base config of my site\nhugo new site -f yml \u0026lt;your-sitename\u0026gt; cd \u0026lt;your-sitename\u0026gt; git init git submodule add --depth=1 https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod echo \u0026#34;theme: \u0026#39;PaperMod\u0026#39;\u0026#34; \u0026gt;\u0026gt; config.yml Create Content We will now begin adding new content to our website. Lets create our first post.\nLets start by creating a template for our posts.\nvim archetypes/posts.md Paste the following base template\n--- title: {{ replace .TranslationBaseName \u0026#34;-\u0026#34; \u0026#34; \u0026#34; | title }} date: {{ .Date }} author: \u0026#34;\u0026lt;author\u0026gt;\u0026#34; draft: true weight: tags: [\u0026#34;\u0026#34;] description: \u0026#34;\u0026#34; canonicalURL: \u0026#34;{{ .Page | absURL }}\u0026#34; cover: image: \u0026#34;\u0026lt;image path/url\u0026gt;\u0026#34; # image path/url alt: \u0026#34;\u0026lt;alt text\u0026gt;\u0026#34; # alt text caption: \u0026#34;\u0026lt;text\u0026gt;\u0026#34; # display caption under cover relative: false # when using page bundles set this to true --- ## **Introduction** ## **Conclusion** If the posts folder does not exist, create it\nmkdir content/posts Create and edit a post\nhugo new posts/\u0026lt;post-name\u0026gt;.md vim content/posts/\u0026lt;post-name\u0026gt;.md Start the server Now that we have created our site, installed a theme and created a post lets start the server.\nhugo server -D The -D flag tells hugo server to build drafts. (notice how we have a draft: option in our posts template.) Of course once you have finished a post you set draft to false like so draft: false\nYou will be shown something like the following:\n➜ hugo server -D Start building sites … hugo v0.109.0+extended darwin/arm64 BuildDate=unknown | EN -------------------+----- Pages | 10 Paginator pages | 0 Non-page files | 0 Static files | 0 Processed images | 0 Aliases | 2 Sitemaps | 1 Cleaned | 0 Built in 12 ms Watching for changes in /home/ahmza/prj/ahmza/{archetypes,assets,content,data,layouts,static,themes} Watching for config changes in /home/ahmza/prj/ahmza/config.yml Environment: \u0026#34;development\u0026#34; Serving pages from memory Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender Web Server is available at http://localhost:1313/ (bind address 127.0.0.1) Press Ctrl+C to stop Notice the second line to the bottom. Web Server\u0026hellip; This line gives you a localhost url that you can use in your browser to view your site locally.\nConfigure Site Open the config.yml file in a text editor.\nvim config.yml Important changes you need to make\nbaseURL - this is the URL your site will be accessed externally. In my case. https://blog.ahmza.com title - is the title of your page. Here is my config.yml with bits redacted so you can fill them in\nbaseURL: \u0026#34;\u0026lt;your sites URL\u0026gt;\u0026#34; title: \u0026lt;your site title\u0026gt; paginate: 5 theme: PaperMod enableRobotsTXT: true buildDrafts: false buildFuture: false buildExpired: false enableEmoji: true googleAnalytics: \u0026lt;Google Analytics Tag\u0026gt; minify: disableXML: true minifyOutput: true outputs: home: - HTML - RSS - JSON params: env: production # to enable google analytics, opengraph, twitter-cards and schema. title: \u0026lt;title\u0026gt; description: \u0026#34;\u0026lt;description\u0026gt;\u0026#34; keywords: [Blog, Portfolio, PaperMod] author: \u0026lt;author\u0026gt; images: [\u0026#34;\u0026lt;link or path of image for opengraph, twitter-cards\u0026gt;\u0026#34;] #Change this DateFormat: \u0026#34;January 2, 2006\u0026#34; defaultTheme: auto # dark, light disableThemeToggle: false ShowReadingTime: true ShowShareButtons: false ShowPostNavLinks: false ShowBreadCrumbs: true ShowCodeCopyButtons: true ShowWordCount: true ShowRssButtonInSectionTermList: true UseHugoToc: false disableSpecial1stPost: false disableScrollToTop: false hideFooter: false comments: false hidemeta: false hideSummary: false showtoc: true tocopen: false assets: # disableHLJS: true # to disable highlight.js # disableFingerprinting: true favicon: \u0026#34;/img/favicon.png\u0026#34; favicon16x16: \u0026#34;/img/favicon.png\u0026#34; favicon32x32: \u0026#34;/img/favicon.png\u0026#34; apple_touch_icon: \u0026#34;/img/favicon.png\u0026#34; safari_pinned_tab: \u0026#34;/img/favicon.png\u0026#34; label: text: \u0026#34;\u0026lt;Home\u0026gt;\u0026#34; icon: /img/favicon.png iconHeight: 35 # profile-mode profileMode: enabled: true # needs to be explicitly set title: \u0026#34;Welcome \\U0001F44B\u0026#34; subtitle: \u0026#34;\u0026lt;subtitle\u0026gt;\u0026#34; imageUrl: \u0026#34;/img/favicon.png\u0026#34; imageWidth: 120 imageHeight: 120 imageTitle: \u0026#34;my image\u0026#34; buttons: - name: posts url: posts - name: archive url: archives - name: tags url: tags # home-info mode homeInfoParams: Title: \u0026#34;Welcome \\U0001F44B\u0026#34; Content: \u0026#34;subtitle\u0026#34; socialIcons: - name: LinkedIn url: \u0026#34;https://linkedin.com/in/\u0026#34; - name: gitlab url: \u0026#34;https://gitlab.com/\u0026#34; cover: hidden: false # hide everywhere but not in structured data hiddenInList: false # hide on list pages and home hiddenInSingle: false # hide on single page editPost: URL: \u0026#34;https://gitlab.com/\u0026lt;user\u0026gt;/\u0026lt;repo\u0026gt;/-/blob/main/content\u0026#34; Text: \u0026#34;Suggest Changes\u0026#34; # edit text appendFilePath: true # to append file path to Edit link # for search # https://fusejs.io/api/options.html fuseOpts: isCaseSensitive: false shouldSort: true location: 0 distance: 1000 threshold: 0.4 minMatchCharLength: 0 keys: [\u0026#34;title\u0026#34;, \u0026#34;permalink\u0026#34;, \u0026#34;summary\u0026#34;, \u0026#34;content\u0026#34;] menu: main: - identifier: posts name: posts url: /posts/ weight: 1 - identifier: archive name: archive url: /archives/ weight: 10 - identifier: tags name: tags url: /tags/ weight: 20 - identifier: search name: search url: /search/ weight: 30 # Read: https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs#using-hugos-syntax-highlighter-chroma pygmentsUseClasses: true markup: highlight: noClasses: false codeFences: true guessSyntax: true # lineNos: true Run the server again Run the server and check out your hard work. Change settings make posts etc. Have fun !!\nhugo server -D Publish your site Once you are happy with your site, you may want to publish it to the internet.\nIn the next post Publishing your HUGO site I will cover a basic method of publishing your site as well as a more complicated but automated workflow that I use.\nConclusion Through this post you have learned to create your own HUGO site as well as create and edit posts. We also learned about\narchetypes Mark posts as drafts (expand on this The hugo built in server (still need to add this)) webp + webm (still need to add this) shortcodes (still need to add this) ","permalink":"https://blog.ahmza.com/posts/setup-a-hugo-site/","summary":"Introduction Hugo is a static site generator, a tool that allows us to pre-compile our website into static HTML, CSS and JS. The main benefit of using such methods is speed. A Static site takes a lot less time to load than a site that uses databases.\nFor more information on HUGO read my other post Hugo Static Site Generator Prerequisites Git Installing HUGO Official steps The HUGO binary is what we will use throughout the creation of our project to initially setup our site then create posts etc\u0026hellip; This step will vary depending on your operating system and distribution.","title":"Setup a HUGO Site"},{"content":"Introduction Minecraft is a great game and when it comes to multiplayer, a dedicated server is the way to go (here\u0026rsquo;s why1). Myself and a few others recently decided to start playing this game again, and I took the opportunity to deploy the server in my lab.\nA Minecraft server does not require a ton of resources to run, However from my experience the more resources you can throw at it the better, especially when you start to introduce mods and more than a few players.\nI run our server on my main PC within WSL and Docker. This allows me to leverage the system resources in my PC 🦾 leaving the Pi Cluster to handle the rest of the stuff in my lab. The only reason I opted to go this route is that I don’t want our server to be limited by hardware resources as well as the Minecraft server effecting the overall performance of the Pis.\nPrerequisites Docker Docker Compose Requirements2 Minimum (1-5 Players) Intel Pentium 4 or AMD Athlon based CPU 512 MB RAM 2 GB Storage space Recommended (10-15 Players) Intel Core or AMD K8 based CPU 3 GB RAM 16 GB Storage Space Optimal (20+ Players) Intel i5/i7 or AMD Ryzen 5/7 Based CPU 6 GB RAM 35 GB Storage Space Building the Container Now we have the formalities sorted, we can get to work on creating the docker container for Minecraft.\nCreate a directory in which you will keep the Minecraft server files\nmkdir minecraft-server cd minecraft-server Create an environment file to be used by the Docker Container\nThe .env file allows us to specify variables which we can use across the build process. touch .env Edit the file in a text editor, i.e. vim vim .env CONTAINER_NAME=minecraft-server SERVER_MEM=4096 #change this to your desired value (in MB) SERVER_JAR=minecraft_server.1.18.2.jar Create the docker-compose.yml file\nThe docker-compose.yml file specifies the container that we want to build, outlining the build context (Dockerfile), setting the variables (from .env), configuring storage volumes for persistence as well as ports and the container name. touch docker-compose.yml Edit the file in a text editor3, I.e. vim vim docker-compose.yml version: \u0026#34;3\u0026#34; services: minecraft-server: build: context: . args: SERVER_MEM: ${SERVER_MEM} SERVER_JAR: ${SERVER_JAR} volumes: - .server-data:/server ports: - 25565:25565 - 25575:25575 container_name: ${CONTAINER_NAME} restart: unless-stopped volumes: server-data: Create the Dockerfile file\nThe Dockerfile builds the container. We take the 17-jre base image apply our variables change the working directory to /server and start the jar file, effectively starting the Minecraft server. touch Dockerfile Edit the file in a text editor, i.e. vim vim Dockerfile FROM eclipse-temurin:17-jre ARG SERVER_MEM ARG SERVER_JAR ENV SERVER_MEM=${SERVER_MEM} ENV SERVER_JAR=${SERVER_JAR} WORKDIR /server CMD echo \u0026#34;Minecraft Server is starting\\n\u0026#34; \u0026amp;\u0026amp; java -Xms128M -Xmx${SERVER_MEM}M -jar ${SERVER_JAR} nogui Setup the Server files We’re almost there, just a few steps left !!\nThe curious among you may have realised when trying to start the container that it fails with the error below:\nMinecraft Server is starting Error: Unable to access jarfile server.jar This is because we have not downloaded the server jar file yet, that is our next step.\nNavigate to one of the following sites:4 Vanilla Minecraft Server - instructions found here5 Fabric Mod loader server - instructions found here 6 Create a folder in the Minecraft-server folder called .server-data mkdir .server-data cd .server-data Download the jar file - This will depend on the option above so read the instructions Go back to the root minecraft-server folder cd .. Run the container docker compose up (use CTRL+C to exit) Once the server unpacks all the files you will see this: minecraft-server | Starting net.minecraft.server.Main minecraft-server | [18:05:50] [ServerMain/INFO]: You need to agree to the EULA in order to run the server. Go to eula.txt for more info. minecraft-server exited with code 0 Accept the EULA Go into the .server-data folder cd .server-data Edit the file named eula.txt in a text editor i.e. vim vim eula.txt Simply change eula=false to eula=true While in the .server-data folder make any changes you want Some files to note in here are server.properties - properties like server name, game mode, world type etc… ops.json - list of server operators (easier to set ingame) whitelist.json - list of players allowed to join the server everyone else rejected access. Run the container docker compose up -d (the -d means detatched so we can run the server in the background) docker logs minecraft-server --follow Will show us the progress of the server startup (to exit out of this do CTRL+C) If you see something like the following then you’re a winner 🥳 [18:17:01] [Server thread/INFO]: Time elapsed: 25529 ms [18:17:01] [Server thread/INFO]: Done (34.571s)! For help, type \u0026#34;help\u0026#34; Conclusion Well done you have successfully setup a Minecraft server, now go play !! There is a lot of cool stuff you can do with a Minecraft server for example installing mods or creating scripts to manage the server, this will be covered in the next post so keep an eye out for it !!\nHosting your own dedicated server allows you to modify every aspect of the server as you see fit. I.E you can modify the server-properties, you can implement a whitelist not to mention being able to add any mods you want\u0026#160;\u0026#x21a9;\u0026#xfe0e;\nRequirements Gathered from here https://minecraft.fandom.com/wiki/Server/Requirements/Dedicated#Unix_.28Linux.2C_BSD.2C_macOS.29 \u0026#160;\u0026#x21a9;\u0026#xfe0e;\nYaml is very picky 😞 when it comes to formatting so if you encounter any errors double check your formatting !!\u0026#160;\u0026#x21a9;\u0026#xfe0e;\nI have left Forge out as it is a more involved process plus Fabric is better 😜\u0026#160;\u0026#x21a9;\u0026#xfe0e;\nRight click the green link that says something like minecraft_server.x.xx.x.jar and copy the link address\ncurl -o server.jar \u0026lt;link you copied here\u0026gt;\u0026#160;\u0026#x21a9;\u0026#xfe0e;\nSelect the Minecraft version, Fabric Loader Version and the Installer Version of your choice. I tend to go with the latest.\nCopy the curl command under CLI download\u0026#160;\u0026#x21a9;\u0026#xfe0e;\n","permalink":"https://blog.ahmza.com/posts/minecraft-server-on-docker/","summary":"Introduction Minecraft is a great game and when it comes to multiplayer, a dedicated server is the way to go (here\u0026rsquo;s why1). Myself and a few others recently decided to start playing this game again, and I took the opportunity to deploy the server in my lab.\nA Minecraft server does not require a ton of resources to run, However from my experience the more resources you can throw at it the better, especially when you start to introduce mods and more than a few players.","title":"Minecraft Server on Docker ⛏ 🐳"},{"content":"Introduction WSL stands for Windows Subsystem for Linux which means we have the Linux kernel inside of windows. This is huge news for developers or people who just want to try Linux.\nPrerequisites Enable virtualisation in BIOS Setup Open Powershell in Administrator mode\nwsl --install You may be required to restart the device, I Highly recommend you do\nGo to the Microsoft store and search for a Linux distribution. I prefer to use the \u0026ldquo;Ubuntu\u0026rdquo; distro.\nOnce that is installed, go ahead and run the distribution, after it finishes setting itself up it will ask you for a username and password. These credentials are separate from the host system so you can make them whatever you want.\nAnd that\u0026rsquo;s it you have WSL and a Linux distribution setup, now go and do something awesome.\nOptional I use the windows terminal app to run the Ubuntu distribution, it makes customising the environment a lot easier. To download it head over to the Microsoft store and search for Windows Terminal and download it.\nWhen you login to WSL it will not default to your home directory which gets very annoying. So to fix that go to Windows Terminal Settings (Be sure to look around there are some cool features) look for Ubuntu or your distributions name and change the Starting directory to\n\\\\wsl$\\Ubuntu\\home\\ahmza Be sure to change \u0026ldquo;Ubuntu\u0026rdquo; to your distributions name\nBe sure to change \u0026ldquo;ahmza\u0026rdquo; to your username\nConclusion Well done you have managed to setup WSL and use Linux inside of windows. No go and enjoy the freedom of Linux !!\n","permalink":"https://blog.ahmza.com/posts/setup-wsl/","summary":"Introduction WSL stands for Windows Subsystem for Linux which means we have the Linux kernel inside of windows. This is huge news for developers or people who just want to try Linux.\nPrerequisites Enable virtualisation in BIOS Setup Open Powershell in Administrator mode\nwsl --install You may be required to restart the device, I Highly recommend you do\nGo to the Microsoft store and search for a Linux distribution. I prefer to use the \u0026ldquo;Ubuntu\u0026rdquo; distro.","title":"Setup WSL 🪟 ❤️ 🐧"},{"content":"Introduction Hugo is a static site generator, which basically means it\u0026rsquo;s a tool that allows us to pre-compile all of our website into static HTML, CSS and JS. The main benefit of using such methods to crate a site is speed. A Static site takes a lot less time to load than a site that uses databases for example.\nDisadvantages Some of the disadvantages I have come across are as follows:\nA lot more backend work Harder to manage content Editing and creating content can be a pain This is to no fault of hugo itself but to the unnecessary complexity in my infrastructure!! Deploying the site in my environment was a challenge as I had to get the site files from gitlab and build a docker image that would compile the site as well as create an image to be deployed in my docker swarm. I do feel I made this more complicated than it needed to be, however now that I have it working the workflow is great.\nThe content is manually managed meaning you have to create edit and delete posts yourself. HUGO does a great job at making this as pleasant of an experience as possible but coming from a CMS (Content Management System) it is a lot more involved.\nBecause there is no integrated webui or CMS for Hugo, the experience you get when creating content will vary person to person depending on the environment you use to create the content. When using a CMS I took dragging and dropping images for granted where now I have to explicitly define full paths to images which can get me out of the flow of writing content, however it\u0026rsquo;s finding solutions for these challenges that makes this interesting.\nThen Why? The main reason for switching to a static site generator is speed and how lightweight the final product is, at the time of writing this the total size of the content on this site including images is ~5mb which is considerably smaller than a full CMS and database alone with no content.\nSome advantages of static sites in general:\nSecurity Reliability Scalability Low Resource Requirement Although the pursuit of speed brought me to HUGO, here are a few things that kept me:\nGit Markdown Simplicity Live Preview As mentioned before my initial reason for switching to a static site generator was speed and how lightweight the final product is, at the time of writing this the total size of the content on this site including images is ~5mb which is considerably smaller than a full CMS and database alone with no content.\nI have recently started to use git a lot more and I\u0026rsquo;m able to implement a content versioning system that can follow me everywhere and on any device very easily. It also means there is always a backup of my site on gitlab and I don\u0026rsquo;t need to worry about backing up databases.\nMarkdown makes life a lot easier, Its quick, easy and doesn\u0026rsquo;t require me to right click or use buttons. Markdown is also very transferable, scroll up to the top of this page and hit the \u0026ldquo;Suggest Changes\u0026rdquo; button and you will see how a markdown file can be interpreted by not only HUGO but gitlab too and so many other tools.\nRegarding themes, HUGO allows you to easily create your own, or just as easily implement other peoples themes.\nAlthough at the start HUGO seemed difficult to me I managed to learn it pretty quickly and appreciate the simplicity it brings to the table. I wouldn\u0026rsquo;t say my workflow is perfect by any means but I feel HUGO makes it easy to develop a smooth workflow.\nLive Preview allows you to start up a light weight web server locally and has an auto refresh feature so whenever a change is made the web page refreshes so you can see changes without manually refreshing.\nConclusion This post is a quick intro to HUGO and why I choose to use it, However there is another post on setting up a HUGO site from start to finish.\nSetting Up a HUGO Site ","permalink":"https://blog.ahmza.com/posts/hugo-static-site-generator/","summary":"Introduction Hugo is a static site generator, which basically means it\u0026rsquo;s a tool that allows us to pre-compile all of our website into static HTML, CSS and JS. The main benefit of using such methods to crate a site is speed. A Static site takes a lot less time to load than a site that uses databases for example.\nDisadvantages Some of the disadvantages I have come across are as follows:","title":"HUGO Static Site Generator"},{"content":"Introduction You need to learn Linux because there is no reason not to. If you are pursuing a career in IT, without a doubt you will come across Linux and having even basic knowledge is very helpful. Many people struggle with the OS simply because it\u0026rsquo;s fundamentally different compared to the other operating systems, but with a bit of time you can master the basics and unlock it\u0026rsquo;s true power.\nBut Why Linux is everywhere, from data centres to your smart toaster. So if you are interesting in anything IT related then it\u0026rsquo;s a great asset to have.\nLinux is great for power users because it allows you to customise all aspects of your workflow to make it yours. The amount of customisability is mind blowing and an endless rabbit hole which is awesome as there is always something you could implement to improve your workflow.\nAnother great aspect of the customisability is the crazy number of options you can choose from to theme and tailor the Linux desktop experience to your liking. For some great and inspiring examples checkout r/unixporn . This is what drove me to switch to Linux and Arch specifically.\nLinux is very Light weight (Depending on Distribution) and much faster than competing operating systems simply because more often than not the distributions of Linux are not filled with bloatware. The most extreme examples of this are distros like Arch or something like LFS (Linux From Scratch) where you get a completely bare bones installation of Linux and are required to install everything from Network Managers, to the Desktop Environment, although this can seem pointless at the start as you use more and more distros you will find things you like and don\u0026rsquo;t on each and something like Arch allows you to choose every bit of software that is installed and come up with something completely custom. Plus then you can say I use Arch BTW\nHow can you start Install Linux as your main OS This is the full send option.\nA great Distribution that I recommend is Manjaro with KDE Plasma as it offers a heavily customisable desktop environment KDE Plasma and Manjaro itself is a great as it\u0026rsquo;s Arch based but does not require you to start from step 0.\nMacOS Terminal MacOS is actually UNIX based and so if you have an apple Mac/MacBook all you need is the Terminal application. I used this on my work machine and it\u0026rsquo;s a great alternative to the full send option. However I do not recommended this if you don\u0026rsquo;t own one of these devices already due to cost 💸\nWindows WSL The Windows Subsystem for Linux is another great option to get started with Linux, it installs the Linux Kernel in windows and allows you to play around in a real Linux environment.\nVirtual Machines If there is a specific Distribution of Linux you want to try then this is a great option. However if you want to simply get to know Linux then choose the MacOS terminal or WSL methods as they are a lot lighter on system resources\nConclusion Why are you still reading go and get stuck in with Linux 💨\nAs with anything learning Linux is a journey and will take time. Enjoy the experience of learning it and uncovering it\u0026rsquo;s hidden powers because it is well worth it. I have linked some great resources for other great Linux related content that helped me.\nDT youtube Channel r/unixporn Arch Wiki (Although specific to Arch this is a great knowledge base, also useful for Manjaro as it\u0026rsquo;s Arch based)\n","permalink":"https://blog.ahmza.com/posts/you-need-to-learn-linux/","summary":"Introduction You need to learn Linux because there is no reason not to. If you are pursuing a career in IT, without a doubt you will come across Linux and having even basic knowledge is very helpful. Many people struggle with the OS simply because it\u0026rsquo;s fundamentally different compared to the other operating systems, but with a bit of time you can master the basics and unlock it\u0026rsquo;s true power.","title":"You Need to Learn Linux 🐧"},{"content":"Intro The Raspberry Pi from it\u0026rsquo;s first iteration has been a great hit. Adopted by many as the computer of choice for projects, and for very good reason. The Pi is a fully fledged computer that fits in your pocket and the most recent edition has blown fans away with the flagship model boasting an ARM64 CPU and 8GB of RAM.\nNow one Raspberry Pi 4 8GB is more than powerful enough for most workloads and in some cases totally unnecessary, so you may even get away with a single 4GB model. However taking into consideration their relatively low price and power consumption why not go all out and build a cluster.\nYou can never have too many Raspberry Pis, just not enough Ideas\nMy excuse to build a Pi cluster is, I would like to migrate the services currently running on a bare metal server that sucks a lot of power to a low power solution. What better way to do that than a Pi cluster.\nMy Setup 4 x Raspberry Pi 4 8GB 4 x 32GB SD cards 4 x PoE hats 1 x 5 port PoE Switch Point of this post Hopefully after following this post you will have setup Docker swarm on a cluster of Pis - stay even if you currently only have one - and understand how to bend it to your will 🦾.\nWhy Docker Swarm 🧐 While we can manage each docker node - Raspberry Pi - individually , Docker swarm enables us to manage all the devices from a single main node making managing the cluster a lot easier.\nThink of Docker swarm as a set of 🤖 hands which will run tasks on each individual node for us. These tasks can consist of:\nCluster Management Deployment and Scaling across the cluster Multi-host networking load balancing etc\u0026hellip; Well why not Kubernetes Although Kubernetes is awesome, it adds a bunch of complexity that is simply not needed in a home lab environment where we only have a small cluster. As well as that, from my experience creating docker-compose files is a lot easier than writing manifests. Docker swarm can do everything I want it to and requires less effort which is great if you\u0026rsquo;re like me 🥱 😂\nRequired Stuff The links below are reccomendations/stuff I used\nRaspberry Pi 4B (Reccomend 4-8 @ 8GB) Raspberry Pi PoE Hats (If you can find the PoE+ version get them) Cluster Case (Get any case you want) PoE switch (Get one that has enough ports for the nuber of pis you want) RJ45 Ethernet Cable (Reccomend short cables as it will look neater) Micro SD cards (Get enough cards for the number of Pis, Get the biggest cards you can afford) This is without a doubt an expensive project, however in my eyes it\u0026rsquo;s the cost of another server 😂 and the best part about this project is you can add to the cluster over time spreding the cost which is how I managed to purchase all the hardware. A suggestion would be to buy equipment that allows you room to grow so an 8 port PoE switch instead of a 4 port if you know you will scale to 8 nodes\nIf you build this then you can safely say another server is not needed. This cluster should be more than capable to serve all your home needs even if you only have 2 nodes. Put it this way, if you have 4 8GB nodes then you have a combined total of:\n32GB of RAM 16 physical CPU cores @ 1.5GHz Money Saving Tips Just get 1-2 nodes to start cut PoE and use normal power cables Use Raspberry Pis with less memmory eg 4GB Grab a really cheap case or make one using these Use smaller SD Cards try not to go below 32GB (Reccomended 64GB If money saved elsewhere) BUILD TIME !! Pull yourself up by your bootstraps were jumping into this one runnig 💨\nImage the SD Cards So interesting fact the CPUs used in the raspberry pi 4 use an ARM64 archetecture. When looking for images of Raspbian you will only find 32bit variants which will work however will not make use of all the hardware which is just a waste. 64bit images exist however are well hidden, Dont fear 😨 you can download the latest images from the raspberrypi.org index To write the cards I use the Raspberry Pi imager . once you have rpi-imager installed and you have the 64bit raspbian image, open sudo rpi-imager and on the \u0026ldquo;CHOOSE OS\u0026rdquo; section go to the bottom and select use custom image.\nWe dont need to unzip the file as the tool is clever enough to handle that for us\nBefore removing the SD card, mount the boot partition - usually the first partition, look for a file called cmdline.txt - and create an empty file called ssh sudo touch ssh this basically enables SSH on the Pis first boot allowing us to access the Pis in a totally headless manner.\nAssemble the cluster So assembly is very dependant on the kit you bought, and more often than not the stuff needed here comes with instructions or is self explanitory. So go ahead and assemble the cluster 🛠\nThere is an order of operations that I reccomend:\nInstall PoE hats onto the Pis Install the SD Cards into the Pis Assemble the case and install Pis plug in ethernet cables **Now allow the Pis to boot for a few minutes so it can resize the\nSort out the Network bits This is the easy part, there are two methods you can use to set a static IP address, one is on your DHCP server and the other is on the device itself. Personally I prefer to set static IPs on the device itself so I will cover that here.\nTo find the current ip of your Pis you can go to your DHCP server and look for the DHCP leases for the Pis.\nthere are naming conventions for naming primary and secondary things but this is your cluster so be creative with it, I have my primary node named Goob and the secondary nodes named Doris1 Doris2 and Doris3 reference SSH to the Pi then open and edit the following files\n/etc/hosts edit this line with your hostname: 127.0.1.1 goob /etc/hostname edit this file with your hostname: goob /etc/dhcpcd.conf knowing we will be using only static IPs here I delete everything in the file add the following interface eth0 static ip_address=10.10.10.20/24 static routers=10.10.10.1 static domain_name_servers=10.10.10.1 Now reboot the pi sudo shutdown -r now\nOnce the Pis are back up log into each one and change the default passwords you may also want to create a new user for yourself but thats totally optional.\nProvision with Ansible you want to create an Ansible control node and that is as simple as installing a package onto your machine. Ansible is built using python which makes it easy to install as we can use the python pip package manger. To check you have it installed do pip --version if it\u0026rsquo;s not installed do the following\ncurl https://bootstrap.pypa.io/get-pip.py -o get-pip.py\npython get-pip.py --user\nonce you have pip installed proceed to installing Ansible\nDocs pip install ansible\nNow that Ansible is installed we can create a runbok that defines the steps Ansible needs to take on the remote machine to correctly provision it. This playbook is written in yaml so get ready to make sure your indents are correct 😬\nCreating the playbook now you can copy what I have and it should work - after changing a thing or two - which is fine however I encourage you to copy what I have, read the Docs and make any changes you feel are necessary.\nCheck the git repo for the most up to date yaml file im using.\nThis script assumes you are using SSH keys, which you should but if not you can skip the whole \u0026ldquo;Configure SSH\u0026rdquo; block, I RECCOMEND YOU USE SSH KEYS - read this Create the deploy.yml\n--- - hosts: piCluster become: yes tasks: - name: Configure SSH block: - name: Auth local SSH Keys ansible.posix.authorized_key: user: \u0026lt;pi_user\u0026gt; state: present key: \u0026#34;{{ item }}\u0026#34; with_file: - /home/\u0026lt;local_user\u0026gt;/.ssh/id_rsa.pub - ./pi_rsa.pub - name: Copy SSH Pi Intercoms Private Key copy: src: ./pi_rsa dest: /home/\u0026lt;pi_user\u0026gt;/.ssh/id_rsa mode: \u0026#39;0600\u0026#39; owner: \u0026lt;pi_user\u0026gt; group: \u0026lt;pi_user\u0026gt; - name: Copy SSH Pi Intercoms Public Key copy: src: ./pi_rsa.pub dest: /home/\u0026lt;pi_user\u0026gt;/.ssh/id_rsa.pub mode: \u0026#39;0644\u0026#39; owner: \u0026lt;pi_user\u0026gt; group: \u0026lt;pi_user\u0026gt; - name: Check for any updates and install them apt: update_cache: true upgrade: dist - name: Install Required build dependencies apt: update_cache: true pkg: - python3 - python3-pip - vim - curl - name: Check Docker is installed shell: \u0026#34;docker --version\u0026#34; register: docker_version - name: Install Docker block: - name: Download Docker script command: curl -fsSL https://get.docker.com -o get-docker.sh - name: Run Docker install script command: sudo sh get-docker.sh - name: Enable docker service service: name: \u0026#34;{{ item }}\u0026#34; enabled: true state: started loop: - docker - containerd - name: Add user to docker group user: name: \u0026lt;pi_user\u0026gt; groups: docker append: yes when: docker_version.stdout.find(\u0026#39;Docker version\u0026#39;) - name: check Docker compose is installed shell: \u0026#34;docker-compose --version\u0026#34; register: dc_version - name: Install docker compose command: sudo pip3 -v install docker-compose when: dc_version.stdout.find(\u0026#39;docker-compose version\u0026#39;) - name: wait for network on boot command: raspi-config nonint do_boot_wait 0 - name: Reboot reboot: The steps this playbook takes are as follows:\nCopy your SSH keys to the pi authorized_keys Copy same Pi ssh key between the Pis for intercommunication Check for and Install updates Install any build dependancies Check if Docker is Installed Download the Docker Script Install Docker from script Enable the Docker service Add user to Docker group Check if docker-compose is installed Install docker-compose (This will take a while on each pi so be patient, grab a coffee) Change raspi config to wait for network before boot Reboot take some time to read through the playbook, read the docs and try to understand whats going on. Change the usernames to your username.\nMake the hosts file in the same directory as the deploy.yml\n[piCluster] 10.10.10.20 10.10.10.21 10.10.10.22 [piCluster] - specifies a group of hosts 10.10.10.xx - specifies the Pis IP create the Pi Intercommunication keys\nssh-keygen Enter file in which to save the key (/home/ahmza/.ssh/id_rsa): .pi_rsa save the keys in the same directory the deploy.yml file is heres the command to run the playbook.\nansible-playbook -i hosts -kK deploy.yml -c paramiko\nansible-playbook - the command to run the playbook -i hosts - specifies the host/inventory file -kK - asks you for password for the SSH connection(-k) and the sudo password(-K) deploy.yml - the Ansible playbook -c paramiko - Use the paramiko connection method, I found this works best with ssh keys You can do so much with Ansible, for example mount network shares etc, if you can do it in the cli you can do it in Ansible !!\nNow that the Ansible script is done we can go ahead and actually configure all the Pis into the cluster.\nCreating/Joining the swarm Creating and joining the cluster is easy - It is manual and tedious so this is something you could impliment into the ansible playbook using multiple host groups.\nFollow these steps to create the swarm:\nssh to the main Pi, this will be the manager node. run docker swarm init This will return a command and token. Make sure to copy them exit the main Pi ssh to one of the worker nodes paste and run the copied command do the same on the remaining worker nodes You should now have a correctly configured cluster !!\nOptional Step - Portainer Portainer is a webgui that will allow us to manage the cluster, it will make deploying and destroying containers across the cluster a breeze. I do understand that all of what portainer does can simply be accomplished in the command line, however portainer just makes it less hastle to manage.\nInstall Portainer\nFirstly we want to download the yaml file that will be used to deploy the portainer contiainer on our cluster.\ncurl -L https://downloads.portainer.io/portainer-agent-stack.yml -o portainer-agent-stack.yml\nNow we can actually deploy portainer to the cluster using the following command:\ndocker stack deploy -c portainer-agent-stack.yml portainer\nOnce the stack is up and running navigate to:\nhttps://raspberry-ip:9443\nwhere raspberry-ip is the IP address of the manager node in the swarm.\nOptional Step - Private Registry If you intend to build any of your own docker images then it may be useful to create a private repository to host any images that you need to run across the cluster.\nto create this private repository create a file called docker-compose.yml in a folder called repository or whatever and enter the following.\nversion: \u0026#39;3.9\u0026#39; services: registry: image: registry:2 ports: - 5000:5000 volumes: - /home/\u0026lt;pi-user\u0026gt;/docker/registry/data:/var/lib/registry Be sure to change pi-user to your pi user\ncreate a file /etc/docker/daemon.json and eter the following\n{ \u0026#34;insecure-registries\u0026#34;: [\u0026#34;localhost:5000\u0026#34;, \u0026#34;\u0026lt;pi-address\u0026gt;:5000\u0026#34;] } where pi-address is the ip address of the main swarm node.\nrestart the docker service with sudo systemctl restart docker\nnow we need to deploy the registry to the stack like we did with portainer\ndocker stack deploy -c docker-compose.yml registry\nand we should have a private registry setup that we can use to push our custom docker images to.\nConclusion Well done, you have successfully setup a docker swarm cluster on a bunch of Pis and along the way you managed to learn a bit about SSH, Ansible, docker-compose, yaml and networking on Pis. The next step would be to setup a few containers but I\u0026rsquo;ll leave that to you, dont be affraid to play around and even ruin the cluster, you can always rebuild it so have fun 😊\n","permalink":"https://blog.ahmza.com/posts/building-a-docker-swarm-with-pis/","summary":"Intro The Raspberry Pi from it\u0026rsquo;s first iteration has been a great hit. Adopted by many as the computer of choice for projects, and for very good reason. The Pi is a fully fledged computer that fits in your pocket and the most recent edition has blown fans away with the flagship model boasting an ARM64 CPU and 8GB of RAM.\nNow one Raspberry Pi 4 8GB is more than powerful enough for most workloads and in some cases totally unnecessary, so you may even get away with a single 4GB model.","title":"Building a Docker Swarm With Pi's 👾 👾 👾 👾"},{"content":"Introduction SSH is a widely used protocol to access remote devices. The problem with SSH is at the authentication stage, Brute force attacks are one of the ways an SSH connection can be compromised. A malicious actor will constantly hammer the remote host with different passwords until it can gain access. With further configuration of SSH we can make the service a lot more secure.\nConfigure SSH Famous last words: Configuring SSH like many things in Linux is as simple as editing a few config files\nAlways be sure to create a backup file it\u0026rsquo;s very easy to end up locking yourself out of a device.\nI would recommend practising on a machine that is not critical.\nCreate SSH Keys SSH keys use public and private key encryption for authentication.\nTo create a set of keys, on the client do:\nssh-keygen You will be asked where you want to save the keys, I recommend the default location for less hair pulling later.\nEnter file in which to save the key (/home/user/.ssh/id_rsa): You will be asked to enter a password for the ssh keys, be sure to use a strong password.\nEnter passphrase (empty for no passphrase): Once that is done you will see a confirmation screen like the one below\nOutput Your identification has been saved in /home/user/.ssh/id_rsa Your public key has been saved in /home/user/.ssh/id_rsa.pub The key fingerprint is: SHA256:tIurljnWJRBc1RnHUJQ5GtND7p9HWKnjV6zjE9AFR1Y user@host The key\u0026#39;s randomart image is: +---[RSA 3072]----+ | . .....oX=o.oE| | o =oB oo| | . . +.+ o.| | . . .... o+ | | . S .+. +| | .... ..o+.| | +.o. .=o.| | * .. .oo | | o.o. .. | +----[SHA256]-----+ Copy SSH Keys Quick note: user@host is the username on the remeote host you would like to copy your public key to.\nssh-copy-id user@host If asked to confirm the connection to the remote host answer yes, this happens when a new machine with an unknown identity wants to connect to the client.\nOutput The authenticity of host \u0026#39;host(host)\u0026#39; can\u0026#39;t be established. ECDSA key fingerprint is xx:xx:xx:xx:xx:xx:xx:xx. Are you sure you want to continue connecting (yes/no)? yes You will then be asked to enter a password for the user on the remote host\nOutput /usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed /usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys user@host\u0026#39;s password: If successful you should be able to access the device using the SSH key\nTo verify this, SSH to the device and it should ask for the Keys\u0026rsquo;s password not the users\nEnter passphrase for key \u0026#39;/home/user/.ssh/id_rsa\u0026#39;: Modify SSH Config create a backup\nsudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak open the original file in a text editor\nsudo vim /etc/ssh/sshd_config For a new user this might be daunting. Take your time and you will be fine 😊\nLines we want to modify\nQuick note: you may need to uncomment some lines as well as add a few\nProtocol 2 - add to line 15 Port 2222 - modify line 17 PermitRootLogin no - modify line 36 Max Auth Tries 5 - modify line 38 PasswordAuthentication no - modify line 60 PermitEmptyPasswords no -modify line 61 AllowUsers ahmza - add line 67 ClientAliveInterval 180 - modify line 104 # $OpenBSD: sshd_config,v 1.103 2018/04/09 20:41:22 tj Exp $ # This is the sshd server system-wide configuration file. See # sshd_config(5) for more information. # This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin # The strategy used for options in the default sshd_config shipped with # OpenSSH is to specify options with their default value where # possible, but leave them commented. Uncommented options override the # default value. Include /etc/ssh/sshd_config.d/*.conf Protocol 2 Port 2222 #AddressFamily any #ListenAddress 0.0.0.0 #ListenAddress :: #HostKey /etc/ssh/ssh_host_rsa_key #HostKey /etc/ssh/ssh_host_ecdsa_key #HostKey /etc/ssh/ssh_host_ed25519_key # Ciphers and keying #RekeyLimit default none # Logging #SyslogFacility AUTH #LogLevel INFO # Authentication: #LoginGraceTime 2m PermitRootLogin no #StrictModes yes MaxAuthTries 5 #MaxSessions 10 #PubkeyAuthentication yes # Expect .ssh/authorized_keys2 to be disregarded by default in future. #AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2 #AuthorizedPrincipalsFile none #AuthorizedKeysCommand none #AuthorizedKeysCommandUser nobody # For this to work you will also need host keys in /etc/ssh/ssh_known_hosts #HostbasedAuthentication no # Change to yes if you don\u0026#39;t trust ~/.ssh/known_hosts for # HostbasedAuthentication #IgnoreUserKnownHosts no # Don\u0026#39;t read the user\u0026#39;s ~/.rhosts and ~/.shosts files #IgnoreRhosts yes # To disable tunneled clear text passwords, change to no here! PasswordAuthentication no PermitEmptyPasswords no AllowUsers ahmza # Change to yes to enable challenge-response passwords (beware issues with # some PAM modules and threads) ChallengeResponseAuthentication no # Kerberos options #KerberosAuthentication no #KerberosOrLocalPasswd yes #KerberosTicketCleanup yes #KerberosGetAFSToken no # GSSAPI options #GSSAPIAuthentication no #GSSAPICleanupCredentials yes #GSSAPIStrictAcceptorCheck yes #GSSAPIKeyExchange no # Set this to \u0026#39;yes\u0026#39; to enable PAM authentication, account processing, # and session processing. If this is enabled, PAM authentication will # be allowed through the ChallengeResponseAuthentication and # PasswordAuthentication. Depending on your PAM configuration, # PAM authentication via ChallengeResponseAuthentication may bypass # the setting of \u0026#34;PermitRootLogin without-password\u0026#34;. # If you just want the PAM account and session checks to run without # PAM authentication, then enable this but set PasswordAuthentication # and ChallengeResponseAuthentication to \u0026#39;no\u0026#39;. UsePAM yes #AllowAgentForwarding yes #AllowTcpForwarding yes #GatewayPorts no X11Forwarding yes #X11DisplayOffset 10 #X11UseLocalhost yes #PermitTTY yes PrintMotd no #PrintLastLog yes #TCPKeepAlive yes #PermitUserEnvironment no #Compression delayed ClientAliveInterval 180 #ClientAliveCountMax 3 #UseDNS no #PidFile /var/run/sshd.pid #MaxStartups 10:30:100 #PermitTunnel no #ChrootDirectory none #VersionAddendum none # no default banner path #Banner none # Allow client to pass locale environment variables AcceptEnv LANG LC_* # override default of no subsystems Subsystem sftp /usr/lib/openssh/sftp-server # Example of overriding settings on a per-user basis #Match User anoncvs # X11Forwarding no # AllowTcpForwarding no # PermitTTY no # ForceCommand cvs server Now lets explain what we just did\nProtocol 2 - released in 2006, SSH2 introduced improved encryption algorithms. Port 2222 - The port number can be whatever number you want. Choose something other than 22 this will help hide your device from malicious actors PermitRootLogin no - If the root account were to be compromised then the attacker has full control of the system so we stop it from being able to log in. MaxAuthTries 5 - After 5 failed attempts the remote host blocks requests from that IP for a period of time. PasswordAuthentication no - We have the SSH key installed so we no longer need to have password authentication. PermitEmptyPasswords no - We don\u0026rsquo;t want to allow empty passwords to be used as authentication for obvious reasons. AllowUsers username - Add the usernames of users you want to be able to connect to the remote host and other users trying to connect will be dropped. Client Alive Interval 180 - Drop the connection after a certain period of inactivity Check were able to connect restart sshd service\nsudo systemctl restart sshd Keep the current SSH connection open and create a new session.\nIf you are able to connect to the remote hosts then you are all set. If not then you still have the initial connection to the remote host to roll back the changes and troubleshoot.\nSuccess Setting up Fail2Ban Fail2Ban is an intrusion prevention tool. Although we are slowing bots down with MaxAuthTries the attacker is still able to carry on brute forcing. Which is what Fail2Ban is for, it actually blocks the connections from that IP.\nInstall Fail2Ban We will install Fail2Ban on the remote host First upgrade any packages, then install Fail2Ban\nsudo apt update \u0026amp;\u0026amp; sudo apt upgrade sudo apt install fail2ban Now we need to enable the service so it starts when the remote host starts\nsudo systemctl enable --now fail2ban Configure Fail2Ban The Fail2Ban config file we want to edit is called jail.local located in /etc/fail2ban/ open jail.local in your editor of choice\nsudo vim /etc/fail2ban/jail.local The config for Fail2Ban is a lot shorter than sshd so this should be quick\n[DEFAULT] bantime = 8h ignoreip = 127.0.0.1 \u0026lt;ip addresses to be ignored\u0026gt; ignoreself = true [sshd] enabled = true port = 2222 filter = sshd logpath = /var/log/auth.log maxretry = 3 findtime = 10m [Default] - Settings in here apply to all jails\nbantime - how long the ban will last ignoreip - IP addresses to ignore ignoreself - stops from locking itself out [sshd] - this is the jail for sshd\nenabled - decides weather the jail is active or not port - the port number the service filter - tells the jail which filter to use from /etc/fail2ban/filter.d logpath - where the log you want fail2ban to read is maxretry - Times the client can attempt a login before being banned findtime - An amount of time which maxretry must occur to trigger a ban for example in 10 minutes if 3 failed login attempts are made the ban the IP Restart Fail2Ban to load the configuration\nsudo systemctl restart fail2ban Testing Fail2Ban To test Fail2Ban lets create a test user and set a password for the user\nsudo useradd test sudo passwd test open the sshd config\nsudo vim /etc/ssh/sshd_config modify the line PasswordAuthentication to say yes and add the test user to AllowUsers\nPasswordAuthentication yes AllowUsers user test restart the sshd service\nsudo systemctl restart sshd Attempt to login to the remote host using the test account using an incorrect password. After 3 failed attempts it should say connection refused.\nssh test@host -p 2222 Fail2Ban should do something along the lines of \u0026hellip; log back in as your normal user, remove the test user and restore the sshd config.\nTo remove the user\nsudo userdel test restore the /etc/ssh/sshd_config file\nsudo vim /etc/ssh/sshd_config Set PasswordAuthentication back to no and remove test from AllowUsers\nPasswordAuthentication no AllowUsers user Conclusion well done, you managed to make it through all that !! At least now you can be reassured that if them pesky brute-force attackers decide to target your machine they wont have a fun time being in Jail 🤣 sorry bad joke.\nBy now you have managed to setup an ssh key for a client and copy it to a remote host, re-configure the sshd config to lockdown authentication and last but not least install and configure Fail2Ban to block pesky attackers.\n","permalink":"https://blog.ahmza.com/posts/securing-ssh/","summary":"Introduction SSH is a widely used protocol to access remote devices. The problem with SSH is at the authentication stage, Brute force attacks are one of the ways an SSH connection can be compromised. A malicious actor will constantly hammer the remote host with different passwords until it can gain access. With further configuration of SSH we can make the service a lot more secure.\nConfigure SSH Famous last words: Configuring SSH like many things in Linux is as simple as editing a few config files","title":"Securing SSH 🤖"},{"content":"Introduction In this post we will go over setting up an NGINX reverse proxy to allow different web services to reach the outside world. We will also cover setting up auto renewing SSL certificates.\nWhy not just port forward the services, it does the same thing Right? Reverse proxies are a great way to expose web services to the outside world in a more secure and customisable manner. Some of the features that a reverse proxy provides are as follows:\nHost multiple services using the same HTTP/HTTPS ports Hides the origin server HTTPS TLS encryption Caching Compression Creating a Reverse Proxy Prerequisites a server to act as the reverse proxy a web server a registered domain name Have A records setup for the Domain name Install NGINX I\u0026rsquo;ll be using the apt package manager as I\u0026rsquo;m on Ubuntu server, this may differ for you\nUpdate packages, then install NGINX\nsudo apt update sudo apt install nginx Now we want to enable NGINX so the program will start when the server boots\nsudo systemctl enable --now nginx Firewall Quick Note: now is a good time to port forward ports 80 and 443 from the router to the reverse proxy\nUbuntu server comes with a firewall (ufw), so be sure to allow access to NGINX and enable it.\nThe reverse proxy handles both HTTP and HTTPS so allow \u0026ldquo;Nginx Full\u0026rdquo;\nsudo ufw allow \u0026#39;Nginx full\u0026#39; If you are using SSH allow it through\nsudo ufw allow \u0026#39;OpenSSH\u0026#39; Configure NGINX Unlink the default NGINX config\nsudo unlink /etc/nginx/sites-enabled/default Create NGINX Config Create a config file in /etc/nginx/site-available\nQuick Note: use whichever text editor you want, I\u0026rsquo;m using vim\nsudo vim /etc/nginx/sites-available/blog.conf server { listen 80; server_name blog.example.com; location / { proxy_pass http://ip-of-server:port; } } server_name is the domain name you want use this can include sub-domains proxy_pass is the IP address of the web server Enable NGINX Config To activate a config file we need to link the file from the sites-available folder to sites-enabled.\nPro Tip: make sure to use full paths when creating symlinks\nsudo ln -s /etc/nginx/sites-available/blog.conf /etc/nginx/sites-enabled/blog.conf Check the config, this is an important step as it warns you of any errors before reloading NGINX\nsudo nginx -t If the output looks simmiler to below then you\u0026rsquo;re good to go !!\nnginx: the configuration file /etc/nginx/nginx.conf syntax is ok nginx: configuration file /etc/nginx/nginx.conf test is successful Now restart the NGINX service\nsudo systemctl restart nginx you should now have a working reverse proxy !!\nSetting up SSL Prerequisites Make sure HTTP and HTTPS are port forwarded to the reverse proxy Make sure server_name is set in the config file you created Installing Certbot Certbot is a tool that requests an SSL certificate and makes sure it is renewed when needed. Install Certbot as well as the python NGINX plug-in\nsudo apt install certbot python3-certbot-nginx Quick Note: double check firewall rules\nRequest SSL Certificate Now all we need to do is request the certificate !!\nsudo certbot --nginx -d blog.example.com \u0026ndash;nginx specifies we are using NGINX, this will update the config file we created to allow the use of SSL -d is the domain name you want to use If this is the first time running Certbot you will be asked to enter an email as well as agree to terms and services.\nIf the certificate request is successful you will be prompted with\nPlease choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 1: No redirect - Make no further changes to the webserver configuration. 2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for new sites, or if you\u0026#39;re confident your site works on HTTPS. You can undo this change by editing your web server\u0026#39;s configuration. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Select the appropriate number [1-2] then [enter] (press \u0026#39;c\u0026#39; to cancel): If you want all traffic to be SSL encrypted choose option 2 That\u0026rsquo;s it we have SSL certificates installed. You will need a new certificate for each different domain name or subdomain.\nVerify Auto Renewal All we need to do now is make sure that Certbot can automatically renew certificates.\nsudo certbot renew --dry-run If you see no errors then you are ready to go.\nConclusion By following this you have hopefully managed to setup an NGINX Reverse proxy to handle incoming HTTP/HTTPS requests as well as configured automatically renewing SSL certificates.\nThis posts barely scratches the surface of what NGINX can do, I would highly recommend reading more into this great piece of software !!\nMy reverse proxy handling non existent traffic\nGive it a few months and this blog will \u0026hellip;\n","permalink":"https://blog.ahmza.com/posts/setup-an-nginx-reverse-proxy/","summary":"Introduction In this post we will go over setting up an NGINX reverse proxy to allow different web services to reach the outside world. We will also cover setting up auto renewing SSL certificates.\nWhy not just port forward the services, it does the same thing Right? Reverse proxies are a great way to expose web services to the outside world in a more secure and customisable manner. Some of the features that a reverse proxy provides are as follows:","title":"Setup an NGINX Reverse Proxy 🥸"},{"content":"General Enquiries: info@ahmza.com Ceramics: ceramics@ahmza.com Design: design@ahmza.com ","permalink":"https://blog.ahmza.com/contact/","summary":"Contact","title":"contact"},{"content":"You Scanned me :D well done you successfully scanned my t-shirt.\nYou Don\u0026rsquo;t get anything for doing so but here have a pop cat (touch his mouth):\n","permalink":"https://blog.ahmza.com/tshirt/","summary":"Tshirt","title":"Tshirt"}] \ No newline at end of file diff --git a/public/index.xml b/public/index.xml deleted file mode 100644 index 51ad33d..0000000 --- a/public/index.xml +++ /dev/null @@ -1,133 +0,0 @@ - - - - ahmza's ramblings - https://blog.ahmza.com/ - Recent content on ahmza's ramblings - - ahmza's ramblings - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - - Hugo -- gohugo.io - en - Wed, 29 Mar 2023 12:39:05 +0100 - - Twitch Layoffs - https://blog.ahmza.com/posts/twitch-layoffs/ - Wed, 29 Mar 2023 12:39:05 +0100 - - https://blog.ahmza.com/posts/twitch-layoffs/ - Mon 20 Mar 2023 The news was broken to all Twitch employees that there was going to be a mass layoff that would nuke 1/5th of Twitch&rsquo;s workforce, Just over 400 employees. We were not given a date that this would happen we were just told that it would be by the end of the week or early the next week. -Fri 24 Mar 2023 The day started with an announcement that Twitch would layoff 1/5th of its workforce. - - - - Setup a HUGO Site - https://blog.ahmza.com/posts/setup-a-hugo-site/ - Sat, 31 Dec 2022 22:03:52 +0000 - - https://blog.ahmza.com/posts/setup-a-hugo-site/ - Always wanted to setup a static website. Look no further !! In this post we go over the basics of setting up a HUGO site - - - - Minecraft Server on Docker ⛏ 🐳 - https://blog.ahmza.com/posts/minecraft-server-on-docker/ - Tue, 24 May 2022 09:33:35 +0100 - - https://blog.ahmza.com/posts/minecraft-server-on-docker/ - Ever wanted to build a Minecraft server in docker !! Start here - - - - Setup WSL 🪟 ❤️ 🐧 - https://blog.ahmza.com/posts/setup-wsl/ - Wed, 23 Feb 2022 11:57:08 +0000 - - https://blog.ahmza.com/posts/setup-wsl/ - Introduction WSL stands for Windows Subsystem for Linux which means we have the Linux kernel inside of windows. This is huge news for developers or people who just want to try Linux. -Prerequisites Enable virtualisation in BIOS Setup Open Powershell in Administrator mode -wsl --install You may be required to restart the device, I Highly recommend you do -Go to the Microsoft store and search for a Linux distribution. I prefer to use the &ldquo;Ubuntu&rdquo; distro. - - - - HUGO Static Site Generator - https://blog.ahmza.com/posts/hugo-static-site-generator/ - Sun, 26 Dec 2021 00:23:22 +0000 - - https://blog.ahmza.com/posts/hugo-static-site-generator/ - HUGO is a static site generator. No idea what that is ? Check out this post to learn more ! - - - - You Need to Learn Linux 🐧 - https://blog.ahmza.com/posts/you-need-to-learn-linux/ - Fri, 17 Dec 2021 19:16:50 +0000 - - https://blog.ahmza.com/posts/you-need-to-learn-linux/ - Ever wanted to learn Linux ? Well no better time than now to learn - - - - Building a Docker Swarm With Pi's 👾 👾 👾 👾 - https://blog.ahmza.com/posts/building-a-docker-swarm-with-pis/ - Sun, 12 Dec 2021 17:23:32 +0000 - - https://blog.ahmza.com/posts/building-a-docker-swarm-with-pis/ - Pis are very capable computers, when banded together they&#39;re almost unstoppable - - - - Securing SSH 🤖 - https://blog.ahmza.com/posts/securing-ssh/ - Tue, 07 Dec 2021 22:41:02 +0000 - - https://blog.ahmza.com/posts/securing-ssh/ - Ever wanted to make your SSH connections more secure. Read this - - - - Setup an NGINX Reverse Proxy 🥸 - https://blog.ahmza.com/posts/setup-an-nginx-reverse-proxy/ - Wed, 01 Dec 2021 22:59:00 +0000 - - https://blog.ahmza.com/posts/setup-an-nginx-reverse-proxy/ - Learn to setup a quick and easy reverse proxy using NGINX - - - - Welcome 👋 - https://blog.ahmza.com/posts/welcome/ - Wed, 01 Dec 2021 13:36:08 +0000 - - https://blog.ahmza.com/posts/welcome/ - Hello World The mandatory hello world when you start something new. -I&rsquo;d like to say thank you for visiting my site and I hope that you gain something valuable from it. -A bit about me I&rsquo;m currently based in the UK in the early stages of my career. And like most people - possibly you - I am very interested in learning new technologies and techniques. -I get bored fairly easily and so I have to keep my self busy by learning new stuff. - - - - - contact - https://blog.ahmza.com/contact/ - Mon, 01 Jan 0001 00:00:00 +0000 - - https://blog.ahmza.com/contact/ - Contact - - - - - Tshirt - https://blog.ahmza.com/tshirt/ - Mon, 01 Jan 0001 00:00:00 +0000 - - https://blog.ahmza.com/tshirt/ - Tshirt - - - - diff --git a/public/posts/building-a-docker-swarm-with-pis/index.html b/public/posts/building-a-docker-swarm-with-pis/index.html deleted file mode 100644 index 814df79..0000000 --- a/public/posts/building-a-docker-swarm-with-pis/index.html +++ /dev/null @@ -1,220 +0,0 @@ -Building a Docker Swarm With Pi's 👾 👾 👾 👾 | ahmza's ramblings -

      Building a Docker Swarm With Pi's 👾 👾 👾 👾

      Pis are very capable computers, when banded together they're almost unstoppable
      Pi Docker Swarm

      Intro

      The Raspberry Pi from it’s first iteration has been a great hit. -Adopted by many as the computer of choice for projects, and for -very good reason. The Pi is a fully fledged computer that fits in -your pocket and the most recent edition has blown fans away with -the flagship model boasting an ARM64 CPU and 8GB of RAM.

      Now one Raspberry Pi 4 8GB is more than powerful enough for most -workloads and in some cases totally unnecessary, so you may even -get away with a single 4GB model. However taking into consideration -their relatively low price and power consumption why not go all out -and build a cluster.

      You can never have too many Raspberry Pis, just -not enough Ideas

      My excuse to build a Pi cluster is, I would like to migrate the -services currently running on a bare metal server that sucks -a lot of power to a low power solution. What better way to do that -than a Pi cluster.

      My Setup

      • 4 x Raspberry Pi 4 8GB
      • 4 x 32GB SD cards
      • 4 x PoE hats
      • 1 x 5 port PoE Switch

      Cluster

      Point of this post

      Hopefully after following this post you will have setup Docker -swarm on a cluster of Pis - stay even if you currently only have -one - and understand how to bend it to your will 🦾.

      Why Docker Swarm 🧐

      While we can manage each docker node - Raspberry Pi - individually -, Docker swarm enables us to manage all the devices from a single -main node making managing the cluster a lot easier.

      Think of Docker swarm as a set of 🤖 hands which will run tasks on -each individual node for us. These tasks can consist of:

      • Cluster Management
      • Deployment and Scaling across the cluster
      • Multi-host networking
      • load balancing
      • etc…

      Well why not Kubernetes

      Although Kubernetes is awesome, it adds a bunch of complexity that -is simply not needed in a home lab environment where we only have -a small cluster. As well as that, from my experience creating -docker-compose files is a lot easier than writing manifests. -Docker swarm can do everything I want it to and requires less -effort which is great if you’re like me 🥱 😂

      Required Stuff

      The links below are reccomendations/stuff I used

      This is without a doubt an expensive project, however in my eyes -it’s the cost of another server 😂 and the best part about this -project is you can add to the cluster over time spreding the cost -which is how I managed to purchase all the hardware. A suggestion -would be to buy equipment that allows you room to grow so an 8 port -PoE switch instead of a 4 port if you know you will scale to 8 -nodes

      If you build this then you can safely say another server is not -needed. This cluster should be more than capable to serve all your -home needs even if you only have 2 nodes. Put it this way, if you -have 4 8GB nodes then you have a combined total of:

      • 32GB of RAM
      • 16 physical CPU cores @ 1.5GHz

      Money Saving Tips

      • Just get 1-2 nodes to start
      • cut PoE and use normal power cables
      • Use Raspberry Pis with less memmory eg 4GB
      • Grab a really cheap case or make one using these
      • Use smaller SD Cards try not to go below 32GB (Reccomended 64GB If money saved elsewhere)

      BUILD TIME !!

      Pull yourself up by your bootstraps were jumping into this one -runnig 💨

      Image the SD Cards

      So interesting fact the CPUs used in the raspberry pi 4 use an ARM64 -archetecture. When looking for images of Raspbian you will only find -32bit variants which will work however will not make use of all the -hardware which is just a waste. 64bit images exist however are well -hidden, Dont fear 😨 you can download the latest images from the -raspberrypi.org index

      To write the cards I use the Raspberry Pi imager -. -once you have rpi-imager installed and you have the 64bit raspbian -image, open sudo rpi-imager and on the “CHOOSE OS” section go to -the bottom and select use custom image.

      We dont need to unzip the file as the tool is clever enough to -handle that for us

      Before removing the SD card, mount the boot partition - usually the -first partition, look for a file called cmdline.txt - and create an -empty file called ssh sudo touch ssh this basically enables -SSH on the Pis first boot allowing us to access the Pis in a totally -headless manner.

      Assemble the cluster

      So assembly is very dependant on the kit you bought, and more -often than not the stuff needed here comes with instructions or is -self explanitory. So go ahead and assemble the cluster 🛠

      There is an order of operations that I reccomend:

      • Install PoE hats onto the Pis
      • Install the SD Cards into the Pis
      • Assemble the case and install Pis
      • plug in ethernet cables

      **Now allow the Pis to boot for a few minutes so it can resize the

      Sort out the Network bits

      This is the easy part, there are two methods you can use to set a -static IP address, one is on your DHCP server and the other is on -the device itself. Personally I prefer to set static IPs on the -device itself so I will cover that here.

      To find the current ip of your Pis you can go to your DHCP server -and look for the DHCP leases for the Pis.

      there are naming conventions for naming primary and secondary -things but this is your cluster so be creative with it, I have my -primary node named Goob and the secondary nodes named Doris1 -Doris2 and Doris3 -reference

      SSH to the Pi then open and edit the following files

      • /etc/hosts
        • edit this line with your hostname: 127.0.1.1 goob
      • /etc/hostname
        • edit this file with your hostname: goob
      • /etc/dhcpcd.conf
        • knowing we will be using only static IPs here I delete -everything in the file add the following
        • interface eth0
          -static ip_address=10.10.10.20/24
          -static routers=10.10.10.1
          -static domain_name_servers=10.10.10.1
          -

      Now reboot the pi sudo shutdown -r now

      Once the Pis are back up log into each one and change the default -passwords you may also want to create a new user for yourself but -thats totally optional.

      Provision with Ansible

      you want to create an Ansible control node and that is as simple as -installing a package onto your machine. Ansible is built using python -which makes it easy to install as we can use the python pip package -manger. To check you have it installed do pip --version if -it’s not installed do the following

      curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py

      python get-pip.py --user

      once you have pip installed proceed to installing Ansible

      Docs

      pip install ansible

      Now that Ansible is installed we can create a runbok that defines the -steps Ansible needs to take on the remote machine to correctly -provision it. This playbook is written in yaml so get ready to make -sure your indents are correct 😬

      Creating the playbook -now you can copy what I have and it should work - after changing a -thing or two - which is fine however I encourage you to copy what I -have, read the Docs -and make any changes you feel are necessary.

      Check the git repo -for the most up to date yaml file im using.

      This script assumes you are using SSH keys, which you should but if -not you can skip the whole “Configure SSH” block, -I RECCOMEND YOU USE SSH KEYS - read this

      Create the deploy.yml

      ---
      -- hosts: piCluster
      -  become: yes
      -  tasks:
      -
      -    - name: Configure SSH
      -      block:
      -
      -        - name: Auth local SSH Keys
      -          ansible.posix.authorized_key:
      -            user: <pi_user>
      -            state: present
      -            key: "{{ item }}"
      -          with_file:
      -            - /home/<local_user>/.ssh/id_rsa.pub
      -            - ./pi_rsa.pub
      -
      -        - name: Copy SSH Pi Intercoms Private Key
      -          copy:
      -            src: ./pi_rsa
      -            dest: /home/<pi_user>/.ssh/id_rsa
      -            mode: '0600'
      -            owner: <pi_user>
      -            group: <pi_user>
      -
      -        - name: Copy SSH Pi Intercoms Public Key
      -          copy:
      -            src: ./pi_rsa.pub
      -            dest: /home/<pi_user>/.ssh/id_rsa.pub
      -            mode: '0644'
      -            owner: <pi_user>
      -            group: <pi_user>
      -
      -
      -    - name: Check for any updates and install them
      -      apt:
      -        update_cache: true
      -        upgrade: dist
      -
      -    - name: Install Required build dependencies
      -      apt:
      -        update_cache: true
      -        pkg:
      -          - python3
      -          - python3-pip
      -          - vim
      -          - curl
      -
      -
      -    - name: Check Docker is installed
      -      shell: "docker --version"
      -      register: docker_version
      -
      -    - name: Install Docker
      -      block:
      -
      -        - name: Download Docker script
      -          command: curl -fsSL https://get.docker.com -o get-docker.sh
      -
      -        - name: Run Docker install script
      -          command: sudo sh get-docker.sh
      -
      -        - name: Enable docker service
      -          service:
      -            name: "{{ item }}"
      -            enabled: true
      -            state: started
      -          loop:
      -            - docker
      -            - containerd
      -
      -        - name: Add user to docker group
      -          user:
      -            name: <pi_user>
      -            groups: docker
      -            append: yes
      -
      -      when: docker_version.stdout.find('Docker version')
      -
      -
      -    - name: check Docker compose is installed
      -      shell: "docker-compose --version"
      -      register: dc_version
      -
      -    - name: Install docker compose
      -      command: sudo pip3 -v install docker-compose
      -      when: dc_version.stdout.find('docker-compose version')
      -
      -
      -    - name: wait for network on boot
      -      command: raspi-config nonint do_boot_wait 0
      -
      -    - name: Reboot
      -      reboot:
      -

      The steps this playbook takes are as follows:

      1. Copy your SSH keys to the pi authorized_keys
      2. Copy same Pi ssh key between the Pis for intercommunication
      3. Check for and Install updates
      4. Install any build dependancies
      5. Check if Docker is Installed
        • Download the Docker Script
        • Install Docker from script
        • Enable the Docker service
        • Add user to Docker group
      6. Check if docker-compose is installed
        • Install docker-compose (This will take a while on each pi so be patient, grab a coffee)
      7. Change raspi config to wait for network before boot
      8. Reboot

      take some time to read through the playbook, read the docs and try to -understand whats going on. Change the usernames to your username.

      Make the hosts file in the same directory as the deploy.yml

      [piCluster]
      -10.10.10.20
      -10.10.10.21
      -10.10.10.22
      -
      • [piCluster] - specifies a group of hosts
      • 10.10.10.xx - specifies the Pis IP

      create the Pi Intercommunication keys

      ssh-keygen
      -Enter file in which to save the key (/home/ahmza/.ssh/id_rsa): .pi_rsa
      -
      • save the keys in the same directory the deploy.yml file is

      heres the command to run the playbook.

      ansible-playbook -i hosts -kK deploy.yml -c paramiko

      • ansible-playbook - the command to run the playbook
      • -i hosts - specifies the host/inventory file
      • -kK - asks you for password for the SSH connection(-k) and the sudo password(-K)
      • deploy.yml - the Ansible playbook
      • -c paramiko - Use the paramiko connection method, I found this works best with ssh keys

      You can do so much with Ansible, for example mount network shares etc, -if you can do it in the cli you can do it in Ansible !!

      Now that the Ansible script is done we can go ahead and actually -configure all the Pis into the cluster.

      Creating/Joining the swarm

      Creating and joining the cluster is easy - It is manual and tedious so -this is something you could impliment into the ansible playbook using -multiple host groups.

      Follow these steps to create the swarm:

      1. ssh to the main Pi, this will be the manager node.
      2. run docker swarm init
        • This will return a command and token. Make sure to copy them
      3. exit the main Pi
      4. ssh to one of the worker nodes
      5. paste and run the copied command
      6. do the same on the remaining worker nodes

      You should now have a correctly configured cluster !!

      Optional Step - Portainer

      Portainer is a webgui that will allow us to manage the cluster, it will -make deploying and destroying containers across the cluster a breeze. -I do understand that all of what portainer does can simply be accomplished -in the command line, however portainer just makes it less hastle to manage.

      Install Portainer

      Firstly we want to download the yaml file that will be used to deploy -the portainer contiainer on our cluster.

      curl -L https://downloads.portainer.io/portainer-agent-stack.yml -o portainer-agent-stack.yml

      Now we can actually deploy portainer to the cluster using the following -command:

      docker stack deploy -c portainer-agent-stack.yml portainer

      Once the stack is up and running navigate to:

      https://raspberry-ip:9443

      where raspberry-ip is the IP address of the manager node in the swarm.

      Optional Step - Private Registry

      If you intend to build any of your own docker images then it may be useful -to create a private repository to host any images that you need to run -across the cluster.

      to create this private repository create a file called docker-compose.yml -in a folder called repository or whatever and enter the following.

      
      -version: '3.9'
      -services:
      -  registry:
      -    image: registry:2
      -    ports:
      -      - 5000:5000
      -    volumes:
      -      - /home/<pi-user>/docker/registry/data:/var/lib/registry
      -

      Be sure to change pi-user to your pi user

      create a file /etc/docker/daemon.json and eter the following

      {
      -    "insecure-registries": ["localhost:5000", "<pi-address>:5000"]
      -}
      -

      where pi-address is the ip address of the main swarm node.

      restart the docker service with sudo systemctl restart docker

      now we need to deploy the registry to the stack like we did with portainer

      docker stack deploy -c docker-compose.yml registry

      and we should have a private registry setup that we can use to push our -custom docker images to.

      Conclusion

      Well done, you have successfully setup a docker swarm cluster on a bunch -of Pis and along the way you managed to learn a bit about SSH, Ansible, -docker-compose, yaml and networking on Pis. The next step would be to -setup a few containers but I’ll leave that to you, dont be affraid to -play around and even ruin the cluster, you can always rebuild it so have -fun 😊

      \ No newline at end of file diff --git a/public/posts/hugo-static-site-generator/index.html b/public/posts/hugo-static-site-generator/index.html deleted file mode 100644 index 1c48dd0..0000000 --- a/public/posts/hugo-static-site-generator/index.html +++ /dev/null @@ -1,48 +0,0 @@ -HUGO Static Site Generator | ahmza's ramblings -

      HUGO Static Site Generator

      HUGO is a static site generator. No idea what that is ? Check out this post to learn more !
      HUGO logo

      The HUGO logo

      Introduction

      Hugo is a static site generator, which basically means it’s a tool that -allows us to pre-compile all of our website into static HTML, CSS and -JS. The main benefit of using such methods to crate a site is speed. A -Static site takes a lot less time to load than a site that uses -databases for example.

      Disadvantages

      Some of the disadvantages I have come across are as follows:

      • A lot more backend work
      • Harder to manage content
      • Editing and creating content can be a pain

      This is to no fault of hugo itself but to the unnecessary complexity -in my infrastructure!! Deploying the site in my environment was a -challenge as I had to get the site files from gitlab and build a docker -image that would compile the site as well as create an image to be -deployed in my docker swarm. -I do feel I made this more complicated than it needed to be, however now -that I have it working the workflow is great.

      The content is manually managed meaning you have to create edit and -delete posts yourself. HUGO does a great job at making this as pleasant -of an experience as possible but coming from a CMS (Content Management -System) it is a lot more involved.

      Because there is no integrated webui or CMS for Hugo, the experience -you get when creating content will vary person to person depending on -the environment you use to create the content. When using a CMS I took -dragging and dropping images for granted where now I have to explicitly -define full paths to images which can get me out of the flow of writing -content, however it’s finding solutions for these challenges that makes -this interesting.

      Then Why?

      The main reason for switching to a static site generator is speed and -how lightweight the final product is, at the time of writing this the -total size of the content on this site including images is ~5mb which -is considerably smaller than a full CMS and database alone with no -content.

      Some advantages of static sites in general:

      • Security
      • Reliability
      • Scalability
      • Low Resource Requirement

      Although the pursuit of speed brought me to HUGO, here are a few things -that kept me:

      • Git
      • Markdown
      • Simplicity
      • Live Preview

      As mentioned before my initial reason for switching to a static site -generator was speed and how lightweight the final product is, at the -time of writing this the total size of the content on this site -including images is ~5mb which is considerably smaller than a full CMS -and database alone with no content.

      I have recently started to use git a lot more and I’m able to -implement a content versioning system that can follow me everywhere and -on any device very easily. It also means there is always a backup of my -site on gitlab and I don’t need to worry about backing up databases.

      Markdown makes life a lot easier, Its quick, easy and doesn’t require -me to right click or use buttons. Markdown is also very transferable, -scroll up to the top of this page and hit the “Suggest Changes” button -and you will see how a markdown file can be interpreted by not only -HUGO but gitlab too and so many other tools.

      Regarding themes, HUGO allows you to easily create your own, or just as -easily implement other peoples themes.

      Although at the start HUGO seemed difficult to me I managed to learn it -pretty quickly and appreciate the simplicity it brings to the table. I -wouldn’t say my workflow is perfect by any means but I feel HUGO makes -it easy to develop a smooth workflow.

      Live Preview allows you to start up a light weight web server locally -and has an auto refresh feature so whenever a change is made the web -page refreshes so you can see changes without manually refreshing.

      Conclusion

      This post is a quick intro to HUGO and why I choose to use it, However -there is another post on setting up a HUGO site from start to finish.

      Setting Up a HUGO Site

      \ No newline at end of file diff --git a/public/posts/index.html b/public/posts/index.html deleted file mode 100644 index 037c20c..0000000 --- a/public/posts/index.html +++ /dev/null @@ -1,13 +0,0 @@ -Posts | ahmza's ramblings -
      Bleed Purple

      Twitch Layoffs

      Mon 20 Mar 2023 The news was broken to all Twitch employees that there was going to be a mass layoff that would nuke 1/5th of Twitch’s workforce, Just over 400 employees. We were not given a date that this would happen we were just told that it would be by the end of the week or early the next week. -Fri 24 Mar 2023 The day started with an announcement that Twitch would layoff 1/5th of its workforce....

      <span title='2023-03-29 12:39:05 +0100 BST'>March 29, 2023</span>&nbsp;·&nbsp;2 min&nbsp;·&nbsp;366 words&nbsp;·&nbsp;ahmza
      HUGO Logo

      Setup a HUGO Site

      Introduction Hugo is a static site generator, a tool that allows us to pre-compile our website into static HTML, CSS and JS. The main benefit of using such methods is speed. A Static site takes a lot less time to load than a site that uses databases. -For more information on HUGO read my other post Hugo Static Site Generator Prerequisites Git Installing HUGO Official steps The HUGO binary is what we will use throughout the creation of our project to initially setup our site then create posts etc… This step will vary depending on your operating system and distribution....

      <span title='2022-12-31 22:03:52 +0000 UTC'>December 31, 2022</span>&nbsp;·&nbsp;5 min&nbsp;·&nbsp;993 words&nbsp;·&nbsp;ahmza
      Minecraft Loves Docker

      Minecraft Server on Docker ⛏ 🐳

      Introduction Minecraft is a great game and when it comes to multiplayer, a dedicated server is the way to go (here’s why1). Myself and a few others recently decided to start playing this game again, and I took the opportunity to deploy the server in my lab. -A Minecraft server does not require a ton of resources to run, However from my experience the more resources you can throw at it the better, especially when you start to introduce mods and more than a few players....

      <span title='2022-05-24 09:33:35 +0100 BST'>May 24, 2022</span>&nbsp;·&nbsp;5 min&nbsp;·&nbsp;965 words&nbsp;·&nbsp;ahmza
      Windows Loves Linux

      Setup WSL 🪟 ❤️ 🐧

      Introduction WSL stands for Windows Subsystem for Linux which means we have the Linux kernel inside of windows. This is huge news for developers or people who just want to try Linux. -Prerequisites Enable virtualisation in BIOS Setup Open Powershell in Administrator mode -wsl --install You may be required to restart the device, I Highly recommend you do -Go to the Microsoft store and search for a Linux distribution. I prefer to use the “Ubuntu” distro....

      <span title='2022-02-23 11:57:08 +0000 UTC'>February 23, 2022</span>&nbsp;·&nbsp;2 min&nbsp;·&nbsp;262 words&nbsp;·&nbsp;ahmza
      HUGO logo

      HUGO Static Site Generator

      Introduction Hugo is a static site generator, which basically means it’s a tool that allows us to pre-compile all of our website into static HTML, CSS and JS. The main benefit of using such methods to crate a site is speed. A Static site takes a lot less time to load than a site that uses databases for example. -Disadvantages Some of the disadvantages I have come across are as follows:...

      <span title='2021-12-26 00:23:22 +0000 UTC'>December 26, 2021</span>&nbsp;·&nbsp;4 min&nbsp;·&nbsp;687 words&nbsp;·&nbsp;ahmza
      \ No newline at end of file diff --git a/public/posts/index.xml b/public/posts/index.xml deleted file mode 100644 index 5f05938..0000000 --- a/public/posts/index.xml +++ /dev/null @@ -1,113 +0,0 @@ - - - - Posts on ahmza's ramblings - https://blog.ahmza.com/posts/ - Recent content in Posts on ahmza's ramblings - - ahmza's ramblings - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - - Hugo -- gohugo.io - en - Wed, 29 Mar 2023 12:39:05 +0100 - - Twitch Layoffs - https://blog.ahmza.com/posts/twitch-layoffs/ - Wed, 29 Mar 2023 12:39:05 +0100 - - https://blog.ahmza.com/posts/twitch-layoffs/ - Mon 20 Mar 2023 The news was broken to all Twitch employees that there was going to be a mass layoff that would nuke 1/5th of Twitch&rsquo;s workforce, Just over 400 employees. We were not given a date that this would happen we were just told that it would be by the end of the week or early the next week. -Fri 24 Mar 2023 The day started with an announcement that Twitch would layoff 1/5th of its workforce. - - - - Setup a HUGO Site - https://blog.ahmza.com/posts/setup-a-hugo-site/ - Sat, 31 Dec 2022 22:03:52 +0000 - - https://blog.ahmza.com/posts/setup-a-hugo-site/ - Always wanted to setup a static website. Look no further !! In this post we go over the basics of setting up a HUGO site - - - - Minecraft Server on Docker ⛏ 🐳 - https://blog.ahmza.com/posts/minecraft-server-on-docker/ - Tue, 24 May 2022 09:33:35 +0100 - - https://blog.ahmza.com/posts/minecraft-server-on-docker/ - Ever wanted to build a Minecraft server in docker !! Start here - - - - Setup WSL 🪟 ❤️ 🐧 - https://blog.ahmza.com/posts/setup-wsl/ - Wed, 23 Feb 2022 11:57:08 +0000 - - https://blog.ahmza.com/posts/setup-wsl/ - Introduction WSL stands for Windows Subsystem for Linux which means we have the Linux kernel inside of windows. This is huge news for developers or people who just want to try Linux. -Prerequisites Enable virtualisation in BIOS Setup Open Powershell in Administrator mode -wsl --install You may be required to restart the device, I Highly recommend you do -Go to the Microsoft store and search for a Linux distribution. I prefer to use the &ldquo;Ubuntu&rdquo; distro. - - - - HUGO Static Site Generator - https://blog.ahmza.com/posts/hugo-static-site-generator/ - Sun, 26 Dec 2021 00:23:22 +0000 - - https://blog.ahmza.com/posts/hugo-static-site-generator/ - HUGO is a static site generator. No idea what that is ? Check out this post to learn more ! - - - - You Need to Learn Linux 🐧 - https://blog.ahmza.com/posts/you-need-to-learn-linux/ - Fri, 17 Dec 2021 19:16:50 +0000 - - https://blog.ahmza.com/posts/you-need-to-learn-linux/ - Ever wanted to learn Linux ? Well no better time than now to learn - - - - Building a Docker Swarm With Pi's 👾 👾 👾 👾 - https://blog.ahmza.com/posts/building-a-docker-swarm-with-pis/ - Sun, 12 Dec 2021 17:23:32 +0000 - - https://blog.ahmza.com/posts/building-a-docker-swarm-with-pis/ - Pis are very capable computers, when banded together they&#39;re almost unstoppable - - - - Securing SSH 🤖 - https://blog.ahmza.com/posts/securing-ssh/ - Tue, 07 Dec 2021 22:41:02 +0000 - - https://blog.ahmza.com/posts/securing-ssh/ - Ever wanted to make your SSH connections more secure. Read this - - - - Setup an NGINX Reverse Proxy 🥸 - https://blog.ahmza.com/posts/setup-an-nginx-reverse-proxy/ - Wed, 01 Dec 2021 22:59:00 +0000 - - https://blog.ahmza.com/posts/setup-an-nginx-reverse-proxy/ - Learn to setup a quick and easy reverse proxy using NGINX - - - - Welcome 👋 - https://blog.ahmza.com/posts/welcome/ - Wed, 01 Dec 2021 13:36:08 +0000 - - https://blog.ahmza.com/posts/welcome/ - Hello World The mandatory hello world when you start something new. -I&rsquo;d like to say thank you for visiting my site and I hope that you gain something valuable from it. -A bit about me I&rsquo;m currently based in the UK in the early stages of my career. And like most people - possibly you - I am very interested in learning new technologies and techniques. -I get bored fairly easily and so I have to keep my self busy by learning new stuff. - - - - diff --git a/public/posts/minecraft-server-on-docker/index.html b/public/posts/minecraft-server-on-docker/index.html deleted file mode 100644 index cef923f..0000000 --- a/public/posts/minecraft-server-on-docker/index.html +++ /dev/null @@ -1,72 +0,0 @@ -Minecraft Server on Docker ⛏ 🐳 | ahmza's ramblings -

      Minecraft Server on Docker ⛏ 🐳

      Ever wanted to build a Minecraft server in docker !! Start here
      Minecraft Loves Docker

      Introduction

      Minecraft is a great game and when it comes to multiplayer, a dedicated -server is the way to go (here’s why1). Myself and a few others -recently decided to start playing this game again, and I took the -opportunity to deploy the server in my lab.

      A Minecraft server does not require a ton of resources to run, However -from my experience the more resources you can throw at it the better, -especially when you start to introduce mods and more than a few players.

      I run our server on my main PC within WSL and Docker. This allows me to -leverage the system resources in my PC 🦾 leaving the Pi Cluster -to handle the rest of the stuff in my lab. The only reason I opted to -go this route is that I don’t want our server to be limited by hardware -resources as well as the Minecraft server effecting the overall -performance of the Pis.

      Prerequisites

      • Docker
      • Docker Compose

      Requirements2

      Minimum (1-5 Players)

      • Intel Pentium 4 or AMD Athlon based CPU
      • 512 MB RAM
      • 2 GB Storage space
      • Intel Core or AMD K8 based CPU
      • 3 GB RAM
      • 16 GB Storage Space

      Optimal (20+ Players)

      • Intel i5/i7 or AMD Ryzen 5/7 Based CPU
      • 6 GB RAM
      • 35 GB Storage Space

      Building the Container

      Now we have the formalities sorted, we can get to work on creating the -docker container for Minecraft.

      1. Create a directory in which you will keep the Minecraft server files

        • mkdir minecraft-server
        • cd minecraft-server
      2. Create an environment file to be used by the Docker Container

        • The .env file allows us to specify variables which we can use -across the build process.
        • touch .env
        • Edit the file in a text editor, i.e. vim vim .env
          CONTAINER_NAME=minecraft-server
          -SERVER_MEM=4096 #change this to your desired value (in MB)
          -SERVER_JAR=minecraft_server.1.18.2.jar
          -
      3. Create the docker-compose.yml file

        • The docker-compose.yml file specifies the container that we -want to build, outlining the build context (Dockerfile), -setting the variables (from .env), configuring storage volumes -for persistence as well as ports and the container name.
        • touch docker-compose.yml
        • Edit the file in a text editor3, I.e. vim vim docker-compose.yml
          version: "3"
          -
          -services:
          -    minecraft-server:
          -        build:
          -            context: .
          -            args:
          -                SERVER_MEM: ${SERVER_MEM}
          -                SERVER_JAR: ${SERVER_JAR}
          -        volumes:
          -            - .server-data:/server
          -        ports:
          -            - 25565:25565
          -            - 25575:25575
          -        container_name: ${CONTAINER_NAME}
          -        restart: unless-stopped
          -
          -volumes:
          -    server-data:
          -
      4. Create the Dockerfile file

        • The Dockerfile builds the container. We take the 17-jre base -image apply our variables change the working directory to -/server and start the jar file, effectively starting the -Minecraft server.
        • touch Dockerfile
        • Edit the file in a text editor, i.e. vim vim Dockerfile
          FROM eclipse-temurin:17-jre
          -
          -ARG SERVER_MEM
          -ARG SERVER_JAR
          -
          -ENV SERVER_MEM=${SERVER_MEM}
          -ENV SERVER_JAR=${SERVER_JAR}
          -
          -WORKDIR /server
          -
          -CMD echo "Minecraft Server is starting\n" && java -Xms128M -Xmx${SERVER_MEM}M -jar ${SERVER_JAR} nogui
          -

      Setup the Server files

      We’re almost there, just a few steps left !!

      The curious among you may have realised when trying to start the -container that it fails with the error below:

      Minecraft Server is starting
      -
      -Error: Unable to access jarfile server.jar
      -

      This is because we have not downloaded the server jar file yet, that is -our next step.

      1. Navigate to one of the following sites:4
      2. Create a folder in the Minecraft-server folder called .server-data
        • mkdir .server-data
        • cd .server-data
      3. Download the jar file - This will depend on the option above so read the instructions
      4. Go back to the root minecraft-server folder
        • cd ..
      5. Run the container
        • docker compose up (use CTRL+C to exit)
        • Once the server unpacks all the files you will see this:
          minecraft-server  | Starting net.minecraft.server.Main
          -minecraft-server  | [18:05:50] [ServerMain/INFO]: You need to agree to the EULA in order to run the server. Go to eula.txt for more info.
          -minecraft-server exited with code 0
          -
      6. Accept the EULA
        • Go into the .server-data folder
          1. cd .server-data
        • Edit the file named eula.txt in a text editor i.e. vim vim eula.txt
          1. Simply change eula=false to eula=true
      7. While in the .server-data folder make any changes you want
        • Some files to note in here are
          • server.properties - properties like server name, game mode, world type etc…
          • ops.json - list of server operators (easier to set ingame)
          • whitelist.json - list of players allowed to join the server everyone else rejected access.
      8. Run the container
        • docker compose up -d (the -d means detatched so we can run the server in the background)
        • docker logs minecraft-server --follow Will show us the progress of the server startup (to exit out of this do CTRL+C)
        • If you see something like the following then you’re a winner 🥳
          [18:17:01] [Server thread/INFO]: Time elapsed: 25529 ms
          -[18:17:01] [Server thread/INFO]: Done (34.571s)! For help, type "help"
          -

      Conclusion

      Well done you have successfully setup a Minecraft server, now go play !! -There is a lot of cool stuff you can do with a Minecraft server for -example installing mods or creating scripts to manage the server, this -will be covered in the next post so keep an eye out for it !!


      1. Hosting your own dedicated server allows you to modify every aspect of the server as you see fit. I.E you can modify the server-properties, you can implement a whitelist not to mention being able to add any mods you want ↩︎

      2. Requirements Gathered from here https://minecraft.fandom.com/wiki/Server/Requirements/Dedicated#Unix_.28Linux.2C_BSD.2C_macOS.29 - ↩︎

      3. Yaml is very picky 😞 when it comes to formatting so if you encounter any errors double check your formatting !! ↩︎

      4. I have left Forge out as it is a more involved process plus Fabric is better 😜 ↩︎

      5. Right click the green link that says something like minecraft_server.x.xx.x.jar and copy the link address

        curl -o server.jar <link you copied here> ↩︎

      6. Select the Minecraft version, Fabric Loader Version and the Installer Version of your choice. I tend to go with the latest.

        Copy the curl command under CLI download ↩︎

      \ No newline at end of file diff --git a/public/posts/page/1/index.html b/public/posts/page/1/index.html deleted file mode 100644 index 27dd9dd..0000000 --- a/public/posts/page/1/index.html +++ /dev/null @@ -1,2 +0,0 @@ -https://blog.ahmza.com/posts/ - \ No newline at end of file diff --git a/public/posts/page/2/index.html b/public/posts/page/2/index.html deleted file mode 100644 index d593290..0000000 --- a/public/posts/page/2/index.html +++ /dev/null @@ -1,12 +0,0 @@ -Posts | ahmza's ramblings -
      learn-linux

      You Need to Learn Linux 🐧

      Introduction You need to learn Linux because there is no reason not to. If you are pursuing a career in IT, without a doubt you will come across Linux and having even basic knowledge is very helpful. Many people struggle with the OS simply because it’s fundamentally different compared to the other operating systems, but with a bit of time you can master the basics and unlock it’s true power....

      <span title='2021-12-17 19:16:50 +0000 UTC'>December 17, 2021</span>&nbsp;·&nbsp;3 min&nbsp;·&nbsp;598 words&nbsp;·&nbsp;ahmza
      Pi Docker Swarm

      Building a Docker Swarm With Pi's 👾 👾 👾 👾

      Intro The Raspberry Pi from it’s first iteration has been a great hit. Adopted by many as the computer of choice for projects, and for very good reason. The Pi is a fully fledged computer that fits in your pocket and the most recent edition has blown fans away with the flagship model boasting an ARM64 CPU and 8GB of RAM. -Now one Raspberry Pi 4 8GB is more than powerful enough for most workloads and in some cases totally unnecessary, so you may even get away with a single 4GB model....

      <span title='2021-12-12 17:23:32 +0000 UTC'>December 12, 2021</span>&nbsp;·&nbsp;11 min&nbsp;·&nbsp;2290 words&nbsp;·&nbsp;ahmza
      ssh-alt image

      Securing SSH 🤖

      Introduction SSH is a widely used protocol to access remote devices. The problem with SSH is at the authentication stage, Brute force attacks are one of the ways an SSH connection can be compromised. A malicious actor will constantly hammer the remote host with different passwords until it can gain access. With further configuration of SSH we can make the service a lot more secure. -Configure SSH Famous last words: Configuring SSH like many things in Linux is as simple as editing a few config files...

      <span title='2021-12-07 22:41:02 +0000 UTC'>December 7, 2021</span>&nbsp;·&nbsp;8 min&nbsp;·&nbsp;1702 words&nbsp;·&nbsp;ahmza
      abstracted reverse proxy diagram

      Setup an NGINX Reverse Proxy 🥸

      Introduction In this post we will go over setting up an NGINX reverse proxy to allow different web services to reach the outside world. We will also cover setting up auto renewing SSL certificates. -Why not just port forward the services, it does the same thing Right? Reverse proxies are a great way to expose web services to the outside world in a more secure and customisable manner. Some of the features that a reverse proxy provides are as follows:...

      <span title='2021-12-01 22:59:00 +0000 UTC'>December 1, 2021</span>&nbsp;·&nbsp;4 min&nbsp;·&nbsp;850 words&nbsp;·&nbsp;ahmza

      Welcome 👋

      Hello World The mandatory hello world when you start something new. -I’d like to say thank you for visiting my site and I hope that you gain something valuable from it. -A bit about me I’m currently based in the UK in the early stages of my career. And like most people - possibly you - I am very interested in learning new technologies and techniques. -I get bored fairly easily and so I have to keep my self busy by learning new stuff....

      <span title='2021-12-01 13:36:08 +0000 UTC'>December 1, 2021</span>&nbsp;·&nbsp;2 min&nbsp;·&nbsp;241 words&nbsp;·&nbsp;ahmza
      \ No newline at end of file diff --git a/public/posts/securing-ssh/index.html b/public/posts/securing-ssh/index.html deleted file mode 100644 index a33cdbe..0000000 --- a/public/posts/securing-ssh/index.html +++ /dev/null @@ -1,245 +0,0 @@ -Securing SSH 🤖 | ahmza's ramblings -

      Securing SSH 🤖

      Ever wanted to make your SSH connections more secure. Read this
      ssh-alt image

      Introduction

      SSH is a widely used protocol to access remote devices. The problem -with SSH is at the authentication stage, Brute force attacks are one of -the ways an SSH connection can be compromised. A malicious actor will -constantly hammer the remote host with different passwords until it can -gain access. With further configuration of SSH we can make the service -a lot more secure.

      Configure SSH

      Famous last words: Configuring SSH like many things in Linux is -as simple as editing a few config files

      Always be sure to create a backup file it’s very easy to end up -locking yourself out of a device.

      I would recommend practising on a machine that is not critical.

      Create SSH Keys

      SSH keys use public and private key encryption for authentication.

      To create a set of keys, on the client do:

      ssh-keygen
      -

      You will be asked where you want to save the keys, I recommend the
      default location
      for less hair pulling later.

      Enter file in which to save the key (/home/user/.ssh/id_rsa):
      -

      You will be asked to enter a password for the ssh keys, be sure to use -a strong password.

      Enter passphrase (empty for no passphrase):
      -

      Once that is done you will see a confirmation screen like the one below

      Output
      -Your identification has been saved in /home/user/.ssh/id_rsa
      -Your public key has been saved in /home/user/.ssh/id_rsa.pub
      -The key fingerprint is:
      -SHA256:tIurljnWJRBc1RnHUJQ5GtND7p9HWKnjV6zjE9AFR1Y user@host
      -The key's randomart image is:
      -+---[RSA 3072]----+
      -|   . .....oX=o.oE|
      -|    o     =oB  oo|
      -|     .  .  +.+ o.|
      -|    .  . .... o+ |
      -|     .  S   .+. +|
      -|      ....  ..o+.|
      -|     +.o.    .=o.|
      -|    * ..     .oo |
      -|   o.o.       .. |
      -+----[SHA256]-----+
      -

      Copy SSH Keys

      Quick note: user@host is the username on the remeote host -you would like to copy your public key to.

      ssh-copy-id user@host
      -

      If asked to confirm the connection to the remote host answer yes, this -happens when a new machine with an unknown identity wants to connect to -the client.

      Output
      -The authenticity of host 'host(host)' can't be established.
      -ECDSA key fingerprint is xx:xx:xx:xx:xx:xx:xx:xx.
      -Are you sure you want to continue connecting (yes/no)? yes
      -

      You will then be asked to enter a password for the user on the remote -host

      Output
      -/usr/bin/ssh-copy-id: INFO: attempting to log in with the new key(s), to filter out any that are already installed
      -/usr/bin/ssh-copy-id: INFO: 1 key(s) remain to be installed -- if you are prompted now it is to install the new keys
      -user@host's password:
      -

      If successful you should be able to access the device using the SSH key

      To verify this, SSH to the device and it should ask for the Keys’s -password not the users

      Enter passphrase for key '/home/user/.ssh/id_rsa':
      -

      Modify SSH Config

      create a backup

      sudo cp /etc/ssh/sshd_config /etc/ssh/sshd_config.bak
      -

      open the original file in a text editor

      sudo vim /etc/ssh/sshd_config
      -

      For a new user this might be daunting. Take your time and you will be -fine 😊

      Lines we want to modify

      Quick note: you may need to uncomment some lines as well as add a -few

      • Protocol 2 - add to line 15
      • Port 2222 - modify line 17
      • PermitRootLogin no - modify line 36
      • Max Auth Tries 5 - modify line 38
      • PasswordAuthentication no - modify line 60
      • PermitEmptyPasswords no -modify line 61
      • AllowUsers ahmza - add line 67
      • ClientAliveInterval 180 - modify line 104
      #       $OpenBSD: sshd_config,v 1.103 2018/04/09 20:41:22 tj Exp $
      -
      -# This is the sshd server system-wide configuration file.  See
      -# sshd_config(5) for more information.
      -
      -# This sshd was compiled with PATH=/usr/bin:/bin:/usr/sbin:/sbin
      -
      -# The strategy used for options in the default sshd_config shipped with
      -# OpenSSH is to specify options with their default value where
      -# possible, but leave them commented.  Uncommented options override the
      -# default value.
      -
      -Include /etc/ssh/sshd_config.d/*.conf
      -
      -Protocol 2
      -
      -Port 2222
      -#AddressFamily any
      -#ListenAddress 0.0.0.0
      -#ListenAddress ::
      -
      -#HostKey /etc/ssh/ssh_host_rsa_key
      -#HostKey /etc/ssh/ssh_host_ecdsa_key
      -#HostKey /etc/ssh/ssh_host_ed25519_key
      -
      -# Ciphers and keying
      -#RekeyLimit default none
      -
      -# Logging
      -#SyslogFacility AUTH
      -#LogLevel INFO
      -
      -# Authentication:
      -
      -#LoginGraceTime 2m
      -PermitRootLogin no
      -#StrictModes yes
      -MaxAuthTries 5
      -#MaxSessions 10
      -
      -#PubkeyAuthentication yes
      -
      -# Expect .ssh/authorized_keys2 to be disregarded by default in future.
      -#AuthorizedKeysFile     .ssh/authorized_keys .ssh/authorized_keys2
      -
      -#AuthorizedPrincipalsFile none
      -
      -#AuthorizedKeysCommand none
      -#AuthorizedKeysCommandUser nobody
      -
      -# For this to work you will also need host keys in /etc/ssh/ssh_known_hosts
      -#HostbasedAuthentication no
      -# Change to yes if you don't trust ~/.ssh/known_hosts for
      -# HostbasedAuthentication
      -#IgnoreUserKnownHosts no
      -# Don't read the user's ~/.rhosts and ~/.shosts files
      -#IgnoreRhosts yes
      -
      -# To disable tunneled clear text passwords, change to no here!
      -PasswordAuthentication no
      -PermitEmptyPasswords no
      -
      -AllowUsers ahmza
      -
      -# Change to yes to enable challenge-response passwords (beware issues with
      -# some PAM modules and threads)
      -ChallengeResponseAuthentication no
      -
      -# Kerberos options
      -#KerberosAuthentication no
      -#KerberosOrLocalPasswd yes
      -#KerberosTicketCleanup yes
      -#KerberosGetAFSToken no
      -
      -# GSSAPI options
      -#GSSAPIAuthentication no
      -#GSSAPICleanupCredentials yes
      -#GSSAPIStrictAcceptorCheck yes
      -#GSSAPIKeyExchange no
      -
      -# Set this to 'yes' to enable PAM authentication, account processing,
      -# and session processing. If this is enabled, PAM authentication will
      -# be allowed through the ChallengeResponseAuthentication and
      -# PasswordAuthentication.  Depending on your PAM configuration,
      -# PAM authentication via ChallengeResponseAuthentication may bypass
      -# the setting of "PermitRootLogin without-password".
      -# If you just want the PAM account and session checks to run without
      -# PAM authentication, then enable this but set PasswordAuthentication
      -# and ChallengeResponseAuthentication to 'no'.
      -UsePAM yes
      -
      -#AllowAgentForwarding yes
      -#AllowTcpForwarding yes
      -#GatewayPorts no
      -X11Forwarding yes
      -#X11DisplayOffset 10
      -#X11UseLocalhost yes
      -#PermitTTY yes
      -PrintMotd no
      -#PrintLastLog yes
      -#TCPKeepAlive yes
      -#PermitUserEnvironment no
      -#Compression delayed
      -ClientAliveInterval 180
      -#ClientAliveCountMax 3
      -#UseDNS no
      -#PidFile /var/run/sshd.pid
      -#MaxStartups 10:30:100
      -#PermitTunnel no
      -#ChrootDirectory none
      -#VersionAddendum none
      -
      -# no default banner path
      -#Banner none
      -
      -# Allow client to pass locale environment variables
      -AcceptEnv LANG LC_*
      -
      -# override default of no subsystems
      -Subsystem       sftp    /usr/lib/openssh/sftp-server
      -
      -# Example of overriding settings on a per-user basis
      -#Match User anoncvs
      -#       X11Forwarding no
      -#       AllowTcpForwarding no
      -#       PermitTTY no
      -#       ForceCommand cvs server
      -

      Now lets explain what we just did

      • Protocol 2 - released in 2006, SSH2 introduced improved -encryption algorithms.
      • Port 2222 - The port number can be whatever number you want. -Choose something other than 22 this will help hide your device from malicious actors
      • PermitRootLogin no - If the root account were to be compromised -then the attacker has full control of the system so we stop it from being able to log in.
      • MaxAuthTries 5 - After 5 failed attempts the remote host blocks -requests from that IP for a period of time.
      • PasswordAuthentication no - We have the SSH key installed so we -no longer need to have password authentication.
      • PermitEmptyPasswords no - We don’t want to allow empty passwords -to be used as authentication for obvious reasons.
      • AllowUsers username - Add the usernames of users you want to be -able to connect to the remote host and other users trying to connect -will be dropped.
      • Client Alive Interval 180 - Drop the connection after a certain -period of inactivity

      Check were able to connect

      restart sshd service

      sudo systemctl restart sshd
      -

      Keep the current SSH connection open and create a new session.

      If you are able to connect to the remote hosts then you are all set. If -not then you still have the initial connection to the remote host to -roll back the changes and troubleshoot.

      Success

      Setting up Fail2Ban

      Fail2Ban is an intrusion prevention tool. Although we are slowing -bots down with MaxAuthTries the attacker is still able to carry on -brute forcing. Which is what Fail2Ban is for, it actually blocks the -connections from that IP.

      Install Fail2Ban

      We will install Fail2Ban on the remote host -First upgrade any packages, then install Fail2Ban

      sudo apt update && sudo apt upgrade
      -sudo apt install fail2ban
      -

      Now we need to enable the service so it starts when the remote host -starts

      sudo systemctl enable --now fail2ban
      -

      Configure Fail2Ban

      The Fail2Ban config file we want to edit is called jail.local located in /etc/fail2ban/ -open jail.local in your editor of choice

      sudo vim /etc/fail2ban/jail.local
      -

      The config for Fail2Ban is a lot shorter than sshd so this should be -quick

      [DEFAULT]
      -    bantime = 8h
      -    ignoreip = 127.0.0.1 <ip addresses to be ignored>
      -    ignoreself = true
      -
      -[sshd]
      -    enabled = true
      -    port = 2222
      -    filter = sshd
      -    logpath = /var/log/auth.log
      -    maxretry = 3
      -    findtime = 10m
      -

      [Default] - Settings in here apply to all jails

      • bantime - how long the ban will last
      • ignoreip - IP addresses to ignore
      • ignoreself - stops from locking itself out

      [sshd] - this is the jail for sshd

      • enabled - decides weather the jail is active or not
      • port - the port number the service
      • filter - tells the jail which filter to use from /etc/fail2ban/filter.d
      • logpath - where the log you want fail2ban to read is
      • maxretry - Times the client can attempt a login before being banned
      • findtime - An amount of time which maxretry must occur to trigger a -ban for example in 10 minutes if 3 failed login attempts are made the -ban the IP

      Restart Fail2Ban to load the configuration

      sudo systemctl restart fail2ban
      -

      Testing Fail2Ban

      To test Fail2Ban lets create a test user and set a password for the -user

      sudo useradd test
      -sudo passwd test
      -

      open the sshd config

      sudo vim /etc/ssh/sshd_config
      -

      modify the line PasswordAuthentication to say yes and add the test user to AllowUsers

      PasswordAuthentication yes
      -AllowUsers user test
      -

      restart the sshd service

      sudo systemctl restart sshd
      -

      Attempt to login to the remote host using the test account using an -incorrect password. After 3 failed attempts it should say connection -refused.

      ssh test@host -p 2222
      -

      Fail2Ban should do something along the lines of … -

      log back in as your normal user, remove the test user and restore the -sshd config.

      To remove the user

      sudo userdel test
      -

      restore the /etc/ssh/sshd_config file

      sudo vim /etc/ssh/sshd_config
      -

      Set PasswordAuthentication back to no and remove test from AllowUsers

      PasswordAuthentication no
      -AllowUsers user
      -

      Conclusion

      well done, you managed to make it through all that !! At least now you -can be reassured that if them pesky brute-force attackers decide to -target your machine they wont have a fun time being in Jail 🤣 sorry -bad joke.

      By now you have managed to setup an ssh key for a client and copy it to -a remote host, re-configure the sshd config to lockdown authentication -and last but not least install and configure Fail2Ban to block pesky -attackers.

      \ No newline at end of file diff --git a/public/posts/setup-a-hugo-site/index.html b/public/posts/setup-a-hugo-site/index.html deleted file mode 100644 index 63495ba..0000000 --- a/public/posts/setup-a-hugo-site/index.html +++ /dev/null @@ -1,212 +0,0 @@ -Setup a HUGO Site | ahmza's ramblings -

      Setup a HUGO Site

      Always wanted to setup a static website. Look no further !! In this post we go over the basics of setting up a HUGO site
      HUGO Logo

      The HUGO logo

      Introduction

      Hugo is a static site generator, a tool that allows us to pre-compile our website into static HTML, CSS and JS. -The main benefit of using such methods is speed. -A Static site takes a lot less time to load than a site that uses databases.

      For more information on HUGO read my other post Hugo Static Site Generator

      Prerequisites

      • Git

      Installing HUGO

      Official steps

      The HUGO binary is what we will use throughout the creation of our project to initially setup our site then create posts etc… -This step will vary depending on your operating system and distribution. -I will show the steps for MacOS and Arch based Linux distros.

      MacOS

      brew install hugo
      -

      Arch

      sudo pacman -S hugo
      -

      Confirm Installation

      hugo version
      -

      Create your site

      This assumes a few steps for you, i.e the theme used. The settings in this guide will mimic the base config of my site

      hugo new site -f yml <your-sitename>
      -cd <your-sitename>
      -git init
      -git submodule add --depth=1 https://github.com/adityatelange/hugo-PaperMod.git themes/PaperMod
      -echo "theme: 'PaperMod'" >> config.yml
      -

      Create Content

      We will now begin adding new content to our website. Lets create our first post.

      Lets start by creating a template for our posts.

      vim archetypes/posts.md
      -

      Paste the following base template

      ---
      -title: {{ replace .TranslationBaseName "-" " " | title }}
      -date: {{ .Date }}
      -author: "<author>"
      -draft: true
      -weight: 
      -
      -tags: [""]
      -description: ""
      -canonicalURL: "{{ .Page | absURL }}"
      -
      -cover:
      -    image: "<image path/url>" # image path/url
      -    alt: "<alt text>" # alt text
      -    caption: "<text>" # display caption under cover
      -    relative: false # when using page bundles set this to true
      -
      ----
      -
      -## **Introduction**
      -
      -## **Conclusion**
      -

      If the posts folder does not exist, create it

      mkdir content/posts
      -

      Create and edit a post

      hugo new posts/<post-name>.md
      -vim content/posts/<post-name>.md
      -

      Start the server

      Now that we have created our site, installed a theme and created a post lets start the server.

      hugo server -D
      -

      The -D flag tells hugo server to build drafts. (notice how we have a draft: option in our posts template.) -Of course once you have finished a post you set draft to false like so draft: false

      You will be shown something like the following:

      ➜  hugo server -D
      -Start building sites …
      -hugo v0.109.0+extended darwin/arm64 BuildDate=unknown
      -
      -                   | EN
      --------------------+-----
      -  Pages            | 10
      -  Paginator pages  |  0
      -  Non-page files   |  0
      -  Static files     |  0
      -  Processed images |  0
      -  Aliases          |  2
      -  Sitemaps         |  1
      -  Cleaned          |  0
      -
      -Built in 12 ms
      -Watching for changes in /home/ahmza/prj/ahmza/{archetypes,assets,content,data,layouts,static,themes}
      -Watching for config changes in /home/ahmza/prj/ahmza/config.yml
      -Environment: "development"
      -Serving pages from memory
      -Running in Fast Render Mode. For full rebuilds on change: hugo server --disableFastRender
      -Web Server is available at http://localhost:1313/ (bind address 127.0.0.1)
      -Press Ctrl+C to stop
      -

      Notice the second line to the bottom. Web Server… This line gives you a localhost url that you can use in your browser to view your site locally.

      Configure Site

      Open the config.yml file in a text editor.

      vim config.yml
      -

      Important changes you need to make

      • baseURL - this is the URL your site will be accessed externally. In my case. https://blog.ahmza.com
      • title - is the title of your page.

      Here is my config.yml with bits redacted so you can fill them in

      baseURL: "<your sites URL>"
      -title: <your site title>
      -paginate: 5
      -theme: PaperMod
      -
      -enableRobotsTXT: true
      -buildDrafts: false
      -buildFuture: false
      -buildExpired: false
      -enableEmoji: true
      -
      -googleAnalytics: <Google Analytics Tag>
      -
      -minify:
      -  disableXML: true
      -  minifyOutput: true
      -
      -outputs:
      -  home:
      -    - HTML
      -    - RSS
      -    - JSON
      -
      -params:
      -  env: production # to enable google analytics, opengraph, twitter-cards and schema.
      -  title: <title>
      -  description: "<description>"
      -  keywords: [Blog, Portfolio, PaperMod]
      -  author: <author>
      -  images: ["<link or path of image for opengraph, twitter-cards>"] #Change this
      -  DateFormat: "January 2, 2006"
      -  defaultTheme: auto # dark, light
      -  disableThemeToggle: false
      -
      -  ShowReadingTime: true
      -  ShowShareButtons: false
      -  ShowPostNavLinks: false
      -  ShowBreadCrumbs: true
      -  ShowCodeCopyButtons: true
      -  ShowWordCount: true
      -  ShowRssButtonInSectionTermList: true
      -  UseHugoToc: false
      -  disableSpecial1stPost: false
      -  disableScrollToTop: false
      -  hideFooter: false
      -  comments: false
      -  hidemeta: false
      -  hideSummary: false
      -  showtoc: true
      -  tocopen: false
      -
      -  assets:
      -    # disableHLJS: true # to disable highlight.js
      -    # disableFingerprinting: true
      -    favicon: "/img/favicon.png"
      -    favicon16x16: "/img/favicon.png"
      -    favicon32x32: "/img/favicon.png"
      -    apple_touch_icon: "/img/favicon.png"
      -    safari_pinned_tab: "/img/favicon.png"
      -
      -  label:
      -    text: "<Home>"
      -    icon: /img/favicon.png
      -    iconHeight: 35
      -
      -  # profile-mode
      -  profileMode:
      -    enabled: true # needs to be explicitly set
      -    title: "Welcome \U0001F44B"
      -    subtitle: "<subtitle>"
      -    imageUrl: "/img/favicon.png"
      -    imageWidth: 120
      -    imageHeight: 120
      -    imageTitle: "my image"
      -    buttons:
      -      - name: posts
      -        url: posts
      -      - name: archive
      -        url: archives
      -      - name: tags
      -        url: tags
      -
      -  # home-info mode
      -  homeInfoParams:
      -    Title: "Welcome \U0001F44B"
      -    Content: "subtitle"
      -
      -  socialIcons:
      -    - name: LinkedIn
      -      url: "https://linkedin.com/in/"
      -    - name: gitlab
      -      url: "https://gitlab.com/"
      -
      -  cover:
      -    hidden: false # hide everywhere but not in structured data
      -    hiddenInList: false # hide on list pages and home
      -    hiddenInSingle: false # hide on single page
      -
      -  editPost:
      -    URL: "https://gitlab.com/<user>/<repo>/-/blob/main/content"
      -    Text: "Suggest Changes" # edit text
      -    appendFilePath: true # to append file path to Edit link
      -
      -  # for search
      -  # https://fusejs.io/api/options.html
      -  fuseOpts:
      -    isCaseSensitive: false
      -    shouldSort: true
      -    location: 0
      -    distance: 1000
      -    threshold: 0.4
      -    minMatchCharLength: 0
      -    keys: ["title", "permalink", "summary", "content"]
      -
      -menu:
      -  main:
      -    - identifier: posts
      -      name: posts
      -      url: /posts/
      -      weight: 1
      -    - identifier: archive
      -      name: archive
      -      url: /archives/
      -      weight: 10
      -    - identifier: tags
      -      name: tags
      -      url: /tags/
      -      weight: 20
      -    - identifier: search
      -      name: search
      -      url: /search/
      -      weight: 30
      -# Read: https://github.com/adityatelange/hugo-PaperMod/wiki/FAQs#using-hugos-syntax-highlighter-chroma
      -pygmentsUseClasses: true
      -markup:
      -  highlight:
      -    noClasses: false
      -    codeFences: true
      -    guessSyntax: true
      -    # lineNos: true
      -

      Run the server again

      Run the server and check out your hard work. Change settings make posts etc. Have fun !!

      hugo server -D
      -

      Publish your site

      Once you are happy with your site, you may want to publish it to the internet.

      In the next post Publishing your HUGO site -I will cover a basic method of publishing your site as well as a more complicated but automated workflow that I use.

      Conclusion

      Through this post you have learned to create your own HUGO site as well as create and edit posts. -We also learned about

      • archetypes
      • Mark posts as drafts (expand on this
      • The hugo built in server (still need to add this))
      • webp + webm (still need to add this)
      • shortcodes (still need to add this)
      \ No newline at end of file diff --git a/public/posts/setup-an-nginx-reverse-proxy/index.html b/public/posts/setup-an-nginx-reverse-proxy/index.html deleted file mode 100644 index cc353d5..0000000 --- a/public/posts/setup-an-nginx-reverse-proxy/index.html +++ /dev/null @@ -1,59 +0,0 @@ -Setup an NGINX Reverse Proxy 🥸 | ahmza's ramblings -

      Setup an NGINX Reverse Proxy 🥸

      Learn to setup a quick and easy reverse proxy using NGINX
      abstracted reverse proxy diagram

      Introduction

      In this post we will go over setting up an NGINX reverse proxy to -allow different web services to reach the outside world. We will -also cover setting up auto renewing SSL certificates.

      Why not just port forward the services, it does the same thing Right? -Reverse proxies are a great way to expose web services to the outside -world in a more secure and customisable manner. Some of the features -that a reverse proxy provides are as follows:

      • Host multiple services using the same HTTP/HTTPS ports
      • Hides the origin server
      • HTTPS TLS encryption
      • Caching
      • Compression

      Creating a Reverse Proxy

      Prerequisites

      • a server to act as the reverse proxy
      • a web server
      • a registered domain name
      • Have A records setup for the Domain name

      Install NGINX

      I’ll be using the apt package manager as I’m on Ubuntu server, -this may differ for you

      Update packages, then install NGINX

      sudo apt update
      -sudo apt install nginx
      -

      Now we want to enable NGINX so the program will start when -the server boots

      sudo systemctl enable --now nginx
      -

      Firewall

      Quick Note: now is a good time to port forward ports 80 and 443 -from the router to the reverse proxy

      Ubuntu server comes with a firewall (ufw), so be sure to allow access -to NGINX and enable it.

      The reverse proxy handles both HTTP and HTTPS so allow “Nginx Full”

      sudo ufw allow 'Nginx full'
      -

      If you are using SSH allow it through

      sudo ufw allow 'OpenSSH'
      -

      Configure NGINX

      Unlink the default NGINX config

      sudo unlink /etc/nginx/sites-enabled/default
      -

      Create NGINX Config

      Create a config file in /etc/nginx/site-available

      Quick Note: use whichever text editor you want, I’m using vim

      sudo vim /etc/nginx/sites-available/blog.conf
      -
      server {
      -    listen 80;
      -    server_name blog.example.com;
      -    location / {
      -        proxy_pass http://ip-of-server:port;
      -    }
      -}
      -
      • server_name is the domain name you want use this can include -sub-domains
      • proxy_pass is the IP address of the web server

      Enable NGINX Config

      To activate a config file we need to link the file from the -sites-available folder to sites-enabled.

      Pro Tip: make sure to use full paths when creating symlinks

      sudo ln -s /etc/nginx/sites-available/blog.conf /etc/nginx/sites-enabled/blog.conf
      -

      Check the config, this is an important step as it warns you of any errors before -reloading NGINX

      sudo nginx -t
      -

      If the output looks simmiler to below then you’re good to go !!

      nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
      -nginx: configuration file /etc/nginx/nginx.conf test is successful
      -

      Now restart the NGINX service

      sudo systemctl restart nginx
      -

      you should now have a working reverse proxy !!

      Setting up SSL

      Prerequisites

      • Make sure HTTP and HTTPS are port forwarded to the reverse proxy
      • Make sure server_name is set in the config file you created

      Installing Certbot

      Certbot is a tool that requests an SSL certificate and makes sure it -is renewed when needed. -Install Certbot as well as the python NGINX plug-in

      sudo apt install certbot python3-certbot-nginx
      -

      Quick Note: double check firewall rules

      Request SSL Certificate

      Now all we need to do is request the certificate !!

      sudo certbot --nginx -d blog.example.com
      -
      • –nginx specifies we are using NGINX, this will update the config -file we created to allow the use of SSL
      • -d is the domain name you want to use

      If this is the first time running Certbot you will be asked to enter -an email as well as agree to terms and services.

      If the certificate request is successful you will be prompted with

      Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.
      -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      -1: No redirect - Make no further changes to the webserver configuration.
      -2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
      -new sites, or if you're confident your site works on HTTPS. You can undo this
      -change by editing your web server's configuration.
      -- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
      -Select the appropriate number [1-2] then [enter] (press 'c' to cancel):
      -

      If you want all traffic to be SSL encrypted choose option 2 -That’s it we have SSL certificates installed. You will need a new -certificate for each different domain name or subdomain.

      Verify Auto Renewal

      All we need to do now is make sure that Certbot can automatically renew -certificates.

      sudo certbot renew --dry-run
      -

      If you see no errors then you are ready to go.

      Conclusion

      By following this you have hopefully managed to setup an NGINX -Reverse proxy to handle incoming HTTP/HTTPS requests as well as -configured automatically renewing SSL certificates.

      This posts barely scratches the surface of what NGINX can do, I would -highly recommend reading more into this great piece of software !!

      My reverse proxy handling non existent traffic

      Give it a few months and this blog will …

      \ No newline at end of file diff --git a/public/posts/setup-wsl/index.html b/public/posts/setup-wsl/index.html deleted file mode 100644 index ea44687..0000000 --- a/public/posts/setup-wsl/index.html +++ /dev/null @@ -1,29 +0,0 @@ -Setup WSL 🪟 ❤️ 🐧 | ahmza's ramblings -

      Setup WSL 🪟 ❤️ 🐧

      Windows Loves Linux

      Introduction

      WSL stands for Windows Subsystem for Linux which means we have the -Linux kernel inside of windows. This is huge news for developers or people -who just want to try Linux.

      Prerequisites

      • Enable virtualisation in BIOS

      Setup

      Open Powershell in Administrator mode

      wsl --install
      -

      You may be required to restart the device, I Highly recommend you do

      Go to the Microsoft store and search for a Linux distribution. I prefer -to use the “Ubuntu” distro.

      Microsoft Store

      Once that is installed, go ahead and run the distribution, after it -finishes setting itself up it will ask you for a username and password. -These credentials are separate from the host system so you can make them -whatever you want.

      And that’s it you have WSL and a Linux distribution setup, now go and do -something awesome.

      Optional

      I use the windows terminal app to run the Ubuntu distribution, it makes -customising the environment a lot easier. To download it head over to the -Microsoft store and search for Windows Terminal and download it.

      Microsoft Store

      When you login to WSL it will not default to your home directory which gets -very annoying. So to fix that go to Windows Terminal Settings (Be sure to -look around there are some cool features) look for Ubuntu or your -distributions name and change the Starting directory to

      \\wsl$\Ubuntu\home\ahmza
      -

      Be sure to change “Ubuntu” to your distributions name

      Be sure to change “ahmza” to your username

      winterm-settings

      Conclusion

      Well done you have managed to setup WSL and use Linux inside of windows. -No go and enjoy the freedom of Linux !!

      \ No newline at end of file diff --git a/public/posts/twitch-layoffs/index.html b/public/posts/twitch-layoffs/index.html deleted file mode 100644 index d0006e5..0000000 --- a/public/posts/twitch-layoffs/index.html +++ /dev/null @@ -1,20 +0,0 @@ -Twitch Layoffs | ahmza's ramblings -

      Twitch Layoffs

      Bleed Purple

      Bleed Purple

      Mon 20 Mar 2023

      The news was broken to all Twitch employees that there was going to be a mass layoff that would nuke 1/5th of Twitch’s workforce, -Just over 400 employees. We were not given a date that this would happen we were just told that it would be by the end of the week -or early the next week.

      Fri 24 Mar 2023

      The day started with an announcement that Twitch would layoff 1/5th of its workforce. The anticipation of this moment through the -whole week left hundreds of us with a sick feeling in our stomachs. They had split the layoffs up between APAC, EMEA, And AMER. -APAC on the chopping block first. We saw people loose access and numbers from our #general slack channel dither. Each Region had -a 5 hour window where people would get dropped in waves. You were lucky to get dropped straight away instead of be part of the last -wave of people and have hopes that you might just be one of the people to survive.

      Luckily I was one of the folk that was able to keep their jobs this time. But 1/5th of the workforce has surely affected every person -that works at twitch. We all lost somebody we worked with or reported to and so morale has tanked this past week, and you can see it. -The #general channel is almost a bone yard.

      In my team the GSOC we lost our technicians, these amazing folk made our lives - the engineers - much easier as we no longer needed -to worry about emails and phone calls. Now that the Techs have gone this workload has been thrown back at us and it has shaken up -the way we got used to working. Our workflows have been disrupted and thus productivity has dropped massively. But not only when -it comes to work will we miss these people, The two Technicians that I worked with made the shift lively and I already miss our -interactions.

      Conclusion

      If you’re reading this and you are a recruiter then please talk into account ex-twitch employees effected by this tragic event.

      Shout outs to:

      \ No newline at end of file diff --git a/public/posts/welcome/index.html b/public/posts/welcome/index.html deleted file mode 100644 index 72052a3..0000000 --- a/public/posts/welcome/index.html +++ /dev/null @@ -1,27 +0,0 @@ -Welcome 👋 | ahmza's ramblings -

      Welcome 👋

      Hello World

      The mandatory hello world when you start something new.

      I’d like to say thank you for visiting my site and I hope that you -gain something valuable from it.

      A bit about me

      I’m currently based in the UK in the early stages of my career. And -like most people - possibly you - I am very interested in learning -new technologies and techniques.

      I get bored fairly easily and so I have to keep my self busy by -learning new stuff. The reason this site exists is because I wanted -to learn how web servers work and long the way I learned a lot of -other stuff too.

      I feel If you are interested in something then definitely go ahead -and try to learn it I’m sure you will learn a lot more than you -expect. Like a lot of people say

      Its about the Journey as much as it is the destination

      I have always tinkered and naturally gained an interest for -technology, I don’t limit myself to one part of tech I try to dabble -a bit in everything. I love photography as you operate the camera and -in certain situations have to learn to develop film 😂 but I also get -to incorporate the creative side.

      Check out my photography focused site here photos.ahmza.com

      If you would like to learn more about me then feel free to contact me -on any of my social media.

      \ No newline at end of file diff --git a/public/posts/you-need-to-learn-linux/index.html b/public/posts/you-need-to-learn-linux/index.html deleted file mode 100644 index b0f3090..0000000 --- a/public/posts/you-need-to-learn-linux/index.html +++ /dev/null @@ -1,50 +0,0 @@ -You Need to Learn Linux 🐧 | ahmza's ramblings -

      You Need to Learn Linux 🐧

      Ever wanted to learn Linux ? Well no better time than now to learn
      learn-linux

      Introduction

      You need to learn Linux because there is no reason not to. If you -are pursuing a career in IT, without a doubt you will come across -Linux and having even basic knowledge is very helpful. Many people -struggle with the OS simply because it’s fundamentally different -compared to the other operating systems, but with a bit of time you -can master the basics and unlock it’s true power.

      But Why

      Linux is everywhere, from data centres to your smart toaster. So -if you are interesting in anything IT related then it’s a great asset -to have.

      Linux is great for power users because it allows you to customise all -aspects of your workflow to make it yours. The amount of -customisability is mind blowing and an endless rabbit hole which is -awesome as there is always something you could implement to improve -your workflow.

      Another great aspect of the customisability is the crazy number of -options you can choose from to theme and tailor the Linux desktop -experience to your liking. For some great and inspiring examples -checkout r/unixporn -. This -is what drove me to switch to Linux and Arch specifically.

      Linux is very Light weight (Depending on Distribution) and much -faster than competing operating systems simply because more often -than not the distributions of Linux are not filled with bloatware. -The most extreme examples of this are distros like Arch or something -like LFS (Linux From Scratch) where you get a completely bare bones -installation of Linux and are required to install everything from -Network Managers, to the Desktop Environment, although this can seem -pointless at the start as you use more and more distros you will find -things you like and don’t on each and something like Arch allows you -to choose every bit of software that is installed and come up with -something completely custom. Plus then you can say I use Arch BTW

      How can you start

      Install Linux as your main OS

      This is the full send option.

      A great Distribution that I recommend is Manjaro with KDE Plasma -as it offers a heavily customisable desktop environment KDE Plasma -and Manjaro itself is a great as it’s Arch based but does not require -you to start from step 0.

      MacOS Terminal

      MacOS is actually UNIX based and so if you have an apple -Mac/MacBook all you need is the Terminal application. I used this on -my work machine and it’s a great alternative to the full send option. -However I do not recommended this if you don’t own one of these devices -already due to cost 💸

      Windows WSL

      The Windows Subsystem for Linux is another great option to get started -with Linux, it installs the Linux Kernel in windows and allows you -to play around in a real Linux environment.

      Virtual Machines

      If there is a specific Distribution of Linux you want to try then -this is a great option. However if you want to simply get to know -Linux then choose the MacOS terminal or WSL methods as they are -a lot lighter on system resources

      Conclusion

      Why are you still reading go and get stuck in with Linux 💨

      As with anything learning Linux is a journey and will take time. -Enjoy the experience of learning it and uncovering it’s hidden powers -because it is well worth it. I have linked some great resources for -other great Linux related content that helped me.

      DT youtube Channel

      r/unixporn

      Arch Wiki -(Although specific to Arch -this is a great knowledge base, also useful for Manjaro as it’s Arch based)

      \ No newline at end of file diff --git a/public/robots.txt b/public/robots.txt deleted file mode 100644 index b271380..0000000 --- a/public/robots.txt +++ /dev/null @@ -1,3 +0,0 @@ -User-agent: * -Disallow: -Sitemap: https://blog.ahmza.com/sitemap.xml diff --git a/public/search/index.html b/public/search/index.html deleted file mode 100644 index 046f513..0000000 --- a/public/search/index.html +++ /dev/null @@ -1,5 +0,0 @@ -Search | ahmza's ramblings -
      \ No newline at end of file diff --git a/public/sitemap.xml b/public/sitemap.xml deleted file mode 100644 index baa6391..0000000 --- a/public/sitemap.xml +++ /dev/null @@ -1,123 +0,0 @@ - - - - https://blog.ahmza.com/ - 2023-03-29T12:39:05+01:00 - - https://blog.ahmza.com/tags/career/ - 2023-03-29T12:39:05+01:00 - - https://blog.ahmza.com/posts/ - 2023-03-29T12:39:05+01:00 - - https://blog.ahmza.com/tags/ - 2023-03-29T12:39:05+01:00 - - https://blog.ahmza.com/tags/twitch/ - 2023-03-29T12:39:05+01:00 - - https://blog.ahmza.com/posts/twitch-layoffs/ - 2023-03-29T12:39:05+01:00 - - https://blog.ahmza.com/tags/blog/ - 2022-12-31T22:03:52+00:00 - - https://blog.ahmza.com/tags/hugo/ - 2022-12-31T22:03:52+00:00 - - https://blog.ahmza.com/posts/setup-a-hugo-site/ - 2022-12-31T22:03:52+00:00 - - https://blog.ahmza.com/tags/web-development/ - 2022-12-31T22:03:52+00:00 - - https://blog.ahmza.com/tags/website/ - 2022-12-31T22:03:52+00:00 - - https://blog.ahmza.com/tags/arm/ - 2022-05-24T09:33:35+01:00 - - https://blog.ahmza.com/tags/docker/ - 2022-05-24T09:33:35+01:00 - - https://blog.ahmza.com/tags/games/ - 2022-05-24T09:33:35+01:00 - - https://blog.ahmza.com/posts/minecraft-server-on-docker/ - 2022-05-24T09:33:35+01:00 - - https://blog.ahmza.com/tags/linux/ - 2022-02-23T11:57:08+00:00 - - https://blog.ahmza.com/posts/setup-wsl/ - 2022-02-23T11:57:08+00:00 - - https://blog.ahmza.com/tags/windows/ - 2022-02-23T11:57:08+00:00 - - https://blog.ahmza.com/tags/wsl/ - 2022-02-23T11:57:08+00:00 - - https://blog.ahmza.com/posts/hugo-static-site-generator/ - 2021-12-26T00:23:22+00:00 - - https://blog.ahmza.com/posts/you-need-to-learn-linux/ - 2021-12-17T19:16:50+00:00 - - https://blog.ahmza.com/posts/building-a-docker-swarm-with-pis/ - 2021-12-12T17:23:32+00:00 - - https://blog.ahmza.com/tags/docker-swarm/ - 2021-12-12T17:23:32+00:00 - - https://blog.ahmza.com/tags/homelab/ - 2021-12-12T17:23:32+00:00 - - https://blog.ahmza.com/tags/pi4/ - 2021-12-12T17:23:32+00:00 - - https://blog.ahmza.com/tags/raspberry-pi/ - 2021-12-12T17:23:32+00:00 - - https://blog.ahmza.com/tags/remoteaccess/ - 2021-12-07T22:41:02+00:00 - - https://blog.ahmza.com/posts/securing-ssh/ - 2021-12-07T22:41:02+00:00 - - https://blog.ahmza.com/tags/ssh/ - 2021-12-07T22:41:02+00:00 - - https://blog.ahmza.com/tags/networking/ - 2021-12-01T22:59:00+00:00 - - https://blog.ahmza.com/tags/nginx/ - 2021-12-01T22:59:00+00:00 - - https://blog.ahmza.com/tags/reverseproxy/ - 2021-12-01T22:59:00+00:00 - - https://blog.ahmza.com/posts/setup-an-nginx-reverse-proxy/ - 2021-12-01T22:59:00+00:00 - - https://blog.ahmza.com/tags/misc/ - 2021-12-01T13:36:08+00:00 - - https://blog.ahmza.com/tags/welcome/ - 2021-12-01T13:36:08+00:00 - - https://blog.ahmza.com/posts/welcome/ - 2021-12-01T13:36:08+00:00 - - https://blog.ahmza.com/archives/ - - https://blog.ahmza.com/categories/ - - https://blog.ahmza.com/contact/ - - https://blog.ahmza.com/search/ - - https://blog.ahmza.com/tshirt/ - - diff --git a/public/tags/arm/index.html b/public/tags/arm/index.html deleted file mode 100644 index 097e4ac..0000000 --- a/public/tags/arm/index.html +++ /dev/null @@ -1,7 +0,0 @@ -ARM | ahmza's ramblings -
      Minecraft Loves Docker

      Minecraft Server on Docker ⛏ 🐳

      Introduction Minecraft is a great game and when it comes to multiplayer, a dedicated server is the way to go (here’s why1). Myself and a few others recently decided to start playing this game again, and I took the opportunity to deploy the server in my lab. -A Minecraft server does not require a ton of resources to run, However from my experience the more resources you can throw at it the better, especially when you start to introduce mods and more than a few players....

      <span title='2022-05-24 09:33:35 +0100 BST'>May 24, 2022</span>&nbsp;·&nbsp;5 min&nbsp;·&nbsp;965 words&nbsp;·&nbsp;ahmza
      \ No newline at end of file diff --git a/public/tags/arm/index.xml b/public/tags/arm/index.xml deleted file mode 100644 index cc1c771..0000000 --- a/public/tags/arm/index.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - ARM on ahmza's ramblings - https://blog.ahmza.com/tags/arm/ - Recent content in ARM on ahmza's ramblings - - ahmza's ramblings - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - - Hugo -- gohugo.io - en - Tue, 24 May 2022 09:33:35 +0100 - - Minecraft Server on Docker ⛏ 🐳 - https://blog.ahmza.com/posts/minecraft-server-on-docker/ - Tue, 24 May 2022 09:33:35 +0100 - - https://blog.ahmza.com/posts/minecraft-server-on-docker/ - Ever wanted to build a Minecraft server in docker !! Start here - - - - diff --git a/public/tags/arm/page/1/index.html b/public/tags/arm/page/1/index.html deleted file mode 100644 index 52e8fc4..0000000 --- a/public/tags/arm/page/1/index.html +++ /dev/null @@ -1,2 +0,0 @@ -https://blog.ahmza.com/tags/arm/ - \ No newline at end of file diff --git a/public/tags/blog/index.html b/public/tags/blog/index.html deleted file mode 100644 index be68146..0000000 --- a/public/tags/blog/index.html +++ /dev/null @@ -1,8 +0,0 @@ -blog | ahmza's ramblings -
      HUGO Logo

      Setup a HUGO Site

      Introduction Hugo is a static site generator, a tool that allows us to pre-compile our website into static HTML, CSS and JS. The main benefit of using such methods is speed. A Static site takes a lot less time to load than a site that uses databases. -For more information on HUGO read my other post Hugo Static Site Generator Prerequisites Git Installing HUGO Official steps The HUGO binary is what we will use throughout the creation of our project to initially setup our site then create posts etc… This step will vary depending on your operating system and distribution....

      <span title='2022-12-31 22:03:52 +0000 UTC'>December 31, 2022</span>&nbsp;·&nbsp;5 min&nbsp;·&nbsp;993 words&nbsp;·&nbsp;ahmza
      HUGO logo

      HUGO Static Site Generator

      Introduction Hugo is a static site generator, which basically means it’s a tool that allows us to pre-compile all of our website into static HTML, CSS and JS. The main benefit of using such methods to crate a site is speed. A Static site takes a lot less time to load than a site that uses databases for example. -Disadvantages Some of the disadvantages I have come across are as follows:...

      <span title='2021-12-26 00:23:22 +0000 UTC'>December 26, 2021</span>&nbsp;·&nbsp;4 min&nbsp;·&nbsp;687 words&nbsp;·&nbsp;ahmza
      \ No newline at end of file diff --git a/public/tags/blog/index.xml b/public/tags/blog/index.xml deleted file mode 100644 index 3e70b49..0000000 --- a/public/tags/blog/index.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - blog on ahmza's ramblings - https://blog.ahmza.com/tags/blog/ - Recent content in blog on ahmza's ramblings - - ahmza's ramblings - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - - Hugo -- gohugo.io - en - Sat, 31 Dec 2022 22:03:52 +0000 - - Setup a HUGO Site - https://blog.ahmza.com/posts/setup-a-hugo-site/ - Sat, 31 Dec 2022 22:03:52 +0000 - - https://blog.ahmza.com/posts/setup-a-hugo-site/ - Always wanted to setup a static website. Look no further !! In this post we go over the basics of setting up a HUGO site - - - - HUGO Static Site Generator - https://blog.ahmza.com/posts/hugo-static-site-generator/ - Sun, 26 Dec 2021 00:23:22 +0000 - - https://blog.ahmza.com/posts/hugo-static-site-generator/ - HUGO is a static site generator. No idea what that is ? Check out this post to learn more ! - - - - diff --git a/public/tags/blog/page/1/index.html b/public/tags/blog/page/1/index.html deleted file mode 100644 index 2d24e8d..0000000 --- a/public/tags/blog/page/1/index.html +++ /dev/null @@ -1,2 +0,0 @@ -https://blog.ahmza.com/tags/blog/ - \ No newline at end of file diff --git a/public/tags/career/index.html b/public/tags/career/index.html deleted file mode 100644 index 37b462c..0000000 --- a/public/tags/career/index.html +++ /dev/null @@ -1,7 +0,0 @@ -career | ahmza's ramblings -
      Bleed Purple

      Twitch Layoffs

      Mon 20 Mar 2023 The news was broken to all Twitch employees that there was going to be a mass layoff that would nuke 1/5th of Twitch’s workforce, Just over 400 employees. We were not given a date that this would happen we were just told that it would be by the end of the week or early the next week. -Fri 24 Mar 2023 The day started with an announcement that Twitch would layoff 1/5th of its workforce....

      <span title='2023-03-29 12:39:05 +0100 BST'>March 29, 2023</span>&nbsp;·&nbsp;2 min&nbsp;·&nbsp;366 words&nbsp;·&nbsp;ahmza
      \ No newline at end of file diff --git a/public/tags/career/index.xml b/public/tags/career/index.xml deleted file mode 100644 index 333707c..0000000 --- a/public/tags/career/index.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - career on ahmza's ramblings - https://blog.ahmza.com/tags/career/ - Recent content in career on ahmza's ramblings - - ahmza's ramblings - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - - Hugo -- gohugo.io - en - Wed, 29 Mar 2023 12:39:05 +0100 - - Twitch Layoffs - https://blog.ahmza.com/posts/twitch-layoffs/ - Wed, 29 Mar 2023 12:39:05 +0100 - - https://blog.ahmza.com/posts/twitch-layoffs/ - Mon 20 Mar 2023 The news was broken to all Twitch employees that there was going to be a mass layoff that would nuke 1/5th of Twitch&rsquo;s workforce, Just over 400 employees. We were not given a date that this would happen we were just told that it would be by the end of the week or early the next week. -Fri 24 Mar 2023 The day started with an announcement that Twitch would layoff 1/5th of its workforce. - - - - diff --git a/public/tags/career/page/1/index.html b/public/tags/career/page/1/index.html deleted file mode 100644 index 5a6904e..0000000 --- a/public/tags/career/page/1/index.html +++ /dev/null @@ -1,2 +0,0 @@ -https://blog.ahmza.com/tags/career/ - \ No newline at end of file diff --git a/public/tags/docker-swarm/index.html b/public/tags/docker-swarm/index.html deleted file mode 100644 index 715d396..0000000 --- a/public/tags/docker-swarm/index.html +++ /dev/null @@ -1,7 +0,0 @@ -Docker Swarm | ahmza's ramblings -
      Pi Docker Swarm

      Building a Docker Swarm With Pi's 👾 👾 👾 👾

      Intro The Raspberry Pi from it’s first iteration has been a great hit. Adopted by many as the computer of choice for projects, and for very good reason. The Pi is a fully fledged computer that fits in your pocket and the most recent edition has blown fans away with the flagship model boasting an ARM64 CPU and 8GB of RAM. -Now one Raspberry Pi 4 8GB is more than powerful enough for most workloads and in some cases totally unnecessary, so you may even get away with a single 4GB model....

      <span title='2021-12-12 17:23:32 +0000 UTC'>December 12, 2021</span>&nbsp;·&nbsp;11 min&nbsp;·&nbsp;2290 words&nbsp;·&nbsp;ahmza
      \ No newline at end of file diff --git a/public/tags/docker-swarm/index.xml b/public/tags/docker-swarm/index.xml deleted file mode 100644 index 56f6270..0000000 --- a/public/tags/docker-swarm/index.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - Docker Swarm on ahmza's ramblings - https://blog.ahmza.com/tags/docker-swarm/ - Recent content in Docker Swarm on ahmza's ramblings - - ahmza's ramblings - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - - Hugo -- gohugo.io - en - Sun, 12 Dec 2021 17:23:32 +0000 - - Building a Docker Swarm With Pi's 👾 👾 👾 👾 - https://blog.ahmza.com/posts/building-a-docker-swarm-with-pis/ - Sun, 12 Dec 2021 17:23:32 +0000 - - https://blog.ahmza.com/posts/building-a-docker-swarm-with-pis/ - Pis are very capable computers, when banded together they&#39;re almost unstoppable - - - - diff --git a/public/tags/docker-swarm/page/1/index.html b/public/tags/docker-swarm/page/1/index.html deleted file mode 100644 index 878bc0b..0000000 --- a/public/tags/docker-swarm/page/1/index.html +++ /dev/null @@ -1,2 +0,0 @@ -https://blog.ahmza.com/tags/docker-swarm/ - \ No newline at end of file diff --git a/public/tags/docker/index.html b/public/tags/docker/index.html deleted file mode 100644 index 52cd6f8..0000000 --- a/public/tags/docker/index.html +++ /dev/null @@ -1,8 +0,0 @@ -Docker | ahmza's ramblings -
      Minecraft Loves Docker

      Minecraft Server on Docker ⛏ 🐳

      Introduction Minecraft is a great game and when it comes to multiplayer, a dedicated server is the way to go (here’s why1). Myself and a few others recently decided to start playing this game again, and I took the opportunity to deploy the server in my lab. -A Minecraft server does not require a ton of resources to run, However from my experience the more resources you can throw at it the better, especially when you start to introduce mods and more than a few players....

      <span title='2022-05-24 09:33:35 +0100 BST'>May 24, 2022</span>&nbsp;·&nbsp;5 min&nbsp;·&nbsp;965 words&nbsp;·&nbsp;ahmza
      Pi Docker Swarm

      Building a Docker Swarm With Pi's 👾 👾 👾 👾

      Intro The Raspberry Pi from it’s first iteration has been a great hit. Adopted by many as the computer of choice for projects, and for very good reason. The Pi is a fully fledged computer that fits in your pocket and the most recent edition has blown fans away with the flagship model boasting an ARM64 CPU and 8GB of RAM. -Now one Raspberry Pi 4 8GB is more than powerful enough for most workloads and in some cases totally unnecessary, so you may even get away with a single 4GB model....

      <span title='2021-12-12 17:23:32 +0000 UTC'>December 12, 2021</span>&nbsp;·&nbsp;11 min&nbsp;·&nbsp;2290 words&nbsp;·&nbsp;ahmza
      \ No newline at end of file diff --git a/public/tags/docker/index.xml b/public/tags/docker/index.xml deleted file mode 100644 index 263e65a..0000000 --- a/public/tags/docker/index.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - Docker on ahmza's ramblings - https://blog.ahmza.com/tags/docker/ - Recent content in Docker on ahmza's ramblings - - ahmza's ramblings - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - - Hugo -- gohugo.io - en - Tue, 24 May 2022 09:33:35 +0100 - - Minecraft Server on Docker ⛏ 🐳 - https://blog.ahmza.com/posts/minecraft-server-on-docker/ - Tue, 24 May 2022 09:33:35 +0100 - - https://blog.ahmza.com/posts/minecraft-server-on-docker/ - Ever wanted to build a Minecraft server in docker !! Start here - - - - Building a Docker Swarm With Pi's 👾 👾 👾 👾 - https://blog.ahmza.com/posts/building-a-docker-swarm-with-pis/ - Sun, 12 Dec 2021 17:23:32 +0000 - - https://blog.ahmza.com/posts/building-a-docker-swarm-with-pis/ - Pis are very capable computers, when banded together they&#39;re almost unstoppable - - - - diff --git a/public/tags/docker/page/1/index.html b/public/tags/docker/page/1/index.html deleted file mode 100644 index 9ad8935..0000000 --- a/public/tags/docker/page/1/index.html +++ /dev/null @@ -1,2 +0,0 @@ -https://blog.ahmza.com/tags/docker/ - \ No newline at end of file diff --git a/public/tags/games/index.html b/public/tags/games/index.html deleted file mode 100644 index 72f2392..0000000 --- a/public/tags/games/index.html +++ /dev/null @@ -1,7 +0,0 @@ -Games | ahmza's ramblings -
      Minecraft Loves Docker

      Minecraft Server on Docker ⛏ 🐳

      Introduction Minecraft is a great game and when it comes to multiplayer, a dedicated server is the way to go (here’s why1). Myself and a few others recently decided to start playing this game again, and I took the opportunity to deploy the server in my lab. -A Minecraft server does not require a ton of resources to run, However from my experience the more resources you can throw at it the better, especially when you start to introduce mods and more than a few players....

      <span title='2022-05-24 09:33:35 +0100 BST'>May 24, 2022</span>&nbsp;·&nbsp;5 min&nbsp;·&nbsp;965 words&nbsp;·&nbsp;ahmza
      \ No newline at end of file diff --git a/public/tags/games/index.xml b/public/tags/games/index.xml deleted file mode 100644 index 048ef09..0000000 --- a/public/tags/games/index.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - Games on ahmza's ramblings - https://blog.ahmza.com/tags/games/ - Recent content in Games on ahmza's ramblings - - ahmza's ramblings - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - - Hugo -- gohugo.io - en - Tue, 24 May 2022 09:33:35 +0100 - - Minecraft Server on Docker ⛏ 🐳 - https://blog.ahmza.com/posts/minecraft-server-on-docker/ - Tue, 24 May 2022 09:33:35 +0100 - - https://blog.ahmza.com/posts/minecraft-server-on-docker/ - Ever wanted to build a Minecraft server in docker !! Start here - - - - diff --git a/public/tags/games/page/1/index.html b/public/tags/games/page/1/index.html deleted file mode 100644 index c8d0d33..0000000 --- a/public/tags/games/page/1/index.html +++ /dev/null @@ -1,2 +0,0 @@ -https://blog.ahmza.com/tags/games/ - \ No newline at end of file diff --git a/public/tags/homelab/index.html b/public/tags/homelab/index.html deleted file mode 100644 index 726ab43..0000000 --- a/public/tags/homelab/index.html +++ /dev/null @@ -1,9 +0,0 @@ -Homelab | ahmza's ramblings -
      Pi Docker Swarm

      Building a Docker Swarm With Pi's 👾 👾 👾 👾

      Intro The Raspberry Pi from it’s first iteration has been a great hit. Adopted by many as the computer of choice for projects, and for very good reason. The Pi is a fully fledged computer that fits in your pocket and the most recent edition has blown fans away with the flagship model boasting an ARM64 CPU and 8GB of RAM. -Now one Raspberry Pi 4 8GB is more than powerful enough for most workloads and in some cases totally unnecessary, so you may even get away with a single 4GB model....

      <span title='2021-12-12 17:23:32 +0000 UTC'>December 12, 2021</span>&nbsp;·&nbsp;11 min&nbsp;·&nbsp;2290 words&nbsp;·&nbsp;ahmza
      ssh-alt image

      Securing SSH 🤖

      Introduction SSH is a widely used protocol to access remote devices. The problem with SSH is at the authentication stage, Brute force attacks are one of the ways an SSH connection can be compromised. A malicious actor will constantly hammer the remote host with different passwords until it can gain access. With further configuration of SSH we can make the service a lot more secure. -Configure SSH Famous last words: Configuring SSH like many things in Linux is as simple as editing a few config files...

      <span title='2021-12-07 22:41:02 +0000 UTC'>December 7, 2021</span>&nbsp;·&nbsp;8 min&nbsp;·&nbsp;1702 words&nbsp;·&nbsp;ahmza
      abstracted reverse proxy diagram

      Setup an NGINX Reverse Proxy 🥸

      Introduction In this post we will go over setting up an NGINX reverse proxy to allow different web services to reach the outside world. We will also cover setting up auto renewing SSL certificates. -Why not just port forward the services, it does the same thing Right? Reverse proxies are a great way to expose web services to the outside world in a more secure and customisable manner. Some of the features that a reverse proxy provides are as follows:...

      <span title='2021-12-01 22:59:00 +0000 UTC'>December 1, 2021</span>&nbsp;·&nbsp;4 min&nbsp;·&nbsp;850 words&nbsp;·&nbsp;ahmza
      \ No newline at end of file diff --git a/public/tags/homelab/index.xml b/public/tags/homelab/index.xml deleted file mode 100644 index 3bc7c95..0000000 --- a/public/tags/homelab/index.xml +++ /dev/null @@ -1,43 +0,0 @@ - - - - Homelab on ahmza's ramblings - https://blog.ahmza.com/tags/homelab/ - Recent content in Homelab on ahmza's ramblings - - ahmza's ramblings - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - - Hugo -- gohugo.io - en - Sun, 12 Dec 2021 17:23:32 +0000 - - Building a Docker Swarm With Pi's 👾 👾 👾 👾 - https://blog.ahmza.com/posts/building-a-docker-swarm-with-pis/ - Sun, 12 Dec 2021 17:23:32 +0000 - - https://blog.ahmza.com/posts/building-a-docker-swarm-with-pis/ - Pis are very capable computers, when banded together they&#39;re almost unstoppable - - - - Securing SSH 🤖 - https://blog.ahmza.com/posts/securing-ssh/ - Tue, 07 Dec 2021 22:41:02 +0000 - - https://blog.ahmza.com/posts/securing-ssh/ - Ever wanted to make your SSH connections more secure. Read this - - - - Setup an NGINX Reverse Proxy 🥸 - https://blog.ahmza.com/posts/setup-an-nginx-reverse-proxy/ - Wed, 01 Dec 2021 22:59:00 +0000 - - https://blog.ahmza.com/posts/setup-an-nginx-reverse-proxy/ - Learn to setup a quick and easy reverse proxy using NGINX - - - - diff --git a/public/tags/homelab/page/1/index.html b/public/tags/homelab/page/1/index.html deleted file mode 100644 index e50859c..0000000 --- a/public/tags/homelab/page/1/index.html +++ /dev/null @@ -1,2 +0,0 @@ -https://blog.ahmza.com/tags/homelab/ - \ No newline at end of file diff --git a/public/tags/hugo/index.html b/public/tags/hugo/index.html deleted file mode 100644 index 251ec9c..0000000 --- a/public/tags/hugo/index.html +++ /dev/null @@ -1,8 +0,0 @@ -HUGO | ahmza's ramblings -
      HUGO Logo

      Setup a HUGO Site

      Introduction Hugo is a static site generator, a tool that allows us to pre-compile our website into static HTML, CSS and JS. The main benefit of using such methods is speed. A Static site takes a lot less time to load than a site that uses databases. -For more information on HUGO read my other post Hugo Static Site Generator Prerequisites Git Installing HUGO Official steps The HUGO binary is what we will use throughout the creation of our project to initially setup our site then create posts etc… This step will vary depending on your operating system and distribution....

      <span title='2022-12-31 22:03:52 +0000 UTC'>December 31, 2022</span>&nbsp;·&nbsp;5 min&nbsp;·&nbsp;993 words&nbsp;·&nbsp;ahmza
      HUGO logo

      HUGO Static Site Generator

      Introduction Hugo is a static site generator, which basically means it’s a tool that allows us to pre-compile all of our website into static HTML, CSS and JS. The main benefit of using such methods to crate a site is speed. A Static site takes a lot less time to load than a site that uses databases for example. -Disadvantages Some of the disadvantages I have come across are as follows:...

      <span title='2021-12-26 00:23:22 +0000 UTC'>December 26, 2021</span>&nbsp;·&nbsp;4 min&nbsp;·&nbsp;687 words&nbsp;·&nbsp;ahmza
      \ No newline at end of file diff --git a/public/tags/hugo/index.xml b/public/tags/hugo/index.xml deleted file mode 100644 index eefa5ed..0000000 --- a/public/tags/hugo/index.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - HUGO on ahmza's ramblings - https://blog.ahmza.com/tags/hugo/ - Recent content in HUGO on ahmza's ramblings - - ahmza's ramblings - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - - Hugo -- gohugo.io - en - Sat, 31 Dec 2022 22:03:52 +0000 - - Setup a HUGO Site - https://blog.ahmza.com/posts/setup-a-hugo-site/ - Sat, 31 Dec 2022 22:03:52 +0000 - - https://blog.ahmza.com/posts/setup-a-hugo-site/ - Always wanted to setup a static website. Look no further !! In this post we go over the basics of setting up a HUGO site - - - - HUGO Static Site Generator - https://blog.ahmza.com/posts/hugo-static-site-generator/ - Sun, 26 Dec 2021 00:23:22 +0000 - - https://blog.ahmza.com/posts/hugo-static-site-generator/ - HUGO is a static site generator. No idea what that is ? Check out this post to learn more ! - - - - diff --git a/public/tags/hugo/page/1/index.html b/public/tags/hugo/page/1/index.html deleted file mode 100644 index b658ea3..0000000 --- a/public/tags/hugo/page/1/index.html +++ /dev/null @@ -1,2 +0,0 @@ -https://blog.ahmza.com/tags/hugo/ - \ No newline at end of file diff --git a/public/tags/index.html b/public/tags/index.html deleted file mode 100644 index 431db0c..0000000 --- a/public/tags/index.html +++ /dev/null @@ -1,5 +0,0 @@ -Tags | ahmza's ramblings -
      \ No newline at end of file diff --git a/public/tags/index.xml b/public/tags/index.xml deleted file mode 100644 index a4a3e28..0000000 --- a/public/tags/index.xml +++ /dev/null @@ -1,223 +0,0 @@ - - - - Tags on ahmza's ramblings - https://blog.ahmza.com/tags/ - Recent content in Tags on ahmza's ramblings - - ahmza's ramblings - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - - Hugo -- gohugo.io - en - Wed, 29 Mar 2023 12:39:05 +0100 - - career - https://blog.ahmza.com/tags/career/ - Wed, 29 Mar 2023 12:39:05 +0100 - - https://blog.ahmza.com/tags/career/ - - - - - twitch - https://blog.ahmza.com/tags/twitch/ - Wed, 29 Mar 2023 12:39:05 +0100 - - https://blog.ahmza.com/tags/twitch/ - - - - - blog - https://blog.ahmza.com/tags/blog/ - Sat, 31 Dec 2022 22:03:52 +0000 - - https://blog.ahmza.com/tags/blog/ - - - - - HUGO - https://blog.ahmza.com/tags/hugo/ - Sat, 31 Dec 2022 22:03:52 +0000 - - https://blog.ahmza.com/tags/hugo/ - - - - - web development - https://blog.ahmza.com/tags/web-development/ - Sat, 31 Dec 2022 22:03:52 +0000 - - https://blog.ahmza.com/tags/web-development/ - - - - - website - https://blog.ahmza.com/tags/website/ - Sat, 31 Dec 2022 22:03:52 +0000 - - https://blog.ahmza.com/tags/website/ - - - - - ARM - https://blog.ahmza.com/tags/arm/ - Tue, 24 May 2022 09:33:35 +0100 - - https://blog.ahmza.com/tags/arm/ - - - - - Docker - https://blog.ahmza.com/tags/docker/ - Tue, 24 May 2022 09:33:35 +0100 - - https://blog.ahmza.com/tags/docker/ - - - - - Games - https://blog.ahmza.com/tags/games/ - Tue, 24 May 2022 09:33:35 +0100 - - https://blog.ahmza.com/tags/games/ - - - - - linux - https://blog.ahmza.com/tags/linux/ - Wed, 23 Feb 2022 11:57:08 +0000 - - https://blog.ahmza.com/tags/linux/ - - - - - windows - https://blog.ahmza.com/tags/windows/ - Wed, 23 Feb 2022 11:57:08 +0000 - - https://blog.ahmza.com/tags/windows/ - - - - - wsl - https://blog.ahmza.com/tags/wsl/ - Wed, 23 Feb 2022 11:57:08 +0000 - - https://blog.ahmza.com/tags/wsl/ - - - - - Docker Swarm - https://blog.ahmza.com/tags/docker-swarm/ - Sun, 12 Dec 2021 17:23:32 +0000 - - https://blog.ahmza.com/tags/docker-swarm/ - - - - - Homelab - https://blog.ahmza.com/tags/homelab/ - Sun, 12 Dec 2021 17:23:32 +0000 - - https://blog.ahmza.com/tags/homelab/ - - - - - Pi4 - https://blog.ahmza.com/tags/pi4/ - Sun, 12 Dec 2021 17:23:32 +0000 - - https://blog.ahmza.com/tags/pi4/ - - - - - Raspberry Pi - https://blog.ahmza.com/tags/raspberry-pi/ - Sun, 12 Dec 2021 17:23:32 +0000 - - https://blog.ahmza.com/tags/raspberry-pi/ - - - - - RemoteAccess - https://blog.ahmza.com/tags/remoteaccess/ - Tue, 07 Dec 2021 22:41:02 +0000 - - https://blog.ahmza.com/tags/remoteaccess/ - - - - - SSH - https://blog.ahmza.com/tags/ssh/ - Tue, 07 Dec 2021 22:41:02 +0000 - - https://blog.ahmza.com/tags/ssh/ - - - - - Networking - https://blog.ahmza.com/tags/networking/ - Wed, 01 Dec 2021 22:59:00 +0000 - - https://blog.ahmza.com/tags/networking/ - - - - - NGINX - https://blog.ahmza.com/tags/nginx/ - Wed, 01 Dec 2021 22:59:00 +0000 - - https://blog.ahmza.com/tags/nginx/ - - - - - ReverseProxy - https://blog.ahmza.com/tags/reverseproxy/ - Wed, 01 Dec 2021 22:59:00 +0000 - - https://blog.ahmza.com/tags/reverseproxy/ - - - - - misc - https://blog.ahmza.com/tags/misc/ - Wed, 01 Dec 2021 13:36:08 +0000 - - https://blog.ahmza.com/tags/misc/ - - - - - welcome - https://blog.ahmza.com/tags/welcome/ - Wed, 01 Dec 2021 13:36:08 +0000 - - https://blog.ahmza.com/tags/welcome/ - - - - - diff --git a/public/tags/linux/index.html b/public/tags/linux/index.html deleted file mode 100644 index 56377f6..0000000 --- a/public/tags/linux/index.html +++ /dev/null @@ -1,9 +0,0 @@ -linux | ahmza's ramblings -
      Windows Loves Linux

      Setup WSL 🪟 ❤️ 🐧

      Introduction WSL stands for Windows Subsystem for Linux which means we have the Linux kernel inside of windows. This is huge news for developers or people who just want to try Linux. -Prerequisites Enable virtualisation in BIOS Setup Open Powershell in Administrator mode -wsl --install You may be required to restart the device, I Highly recommend you do -Go to the Microsoft store and search for a Linux distribution. I prefer to use the “Ubuntu” distro....

      <span title='2022-02-23 11:57:08 +0000 UTC'>February 23, 2022</span>&nbsp;·&nbsp;2 min&nbsp;·&nbsp;262 words&nbsp;·&nbsp;ahmza
      learn-linux

      You Need to Learn Linux 🐧

      Introduction You need to learn Linux because there is no reason not to. If you are pursuing a career in IT, without a doubt you will come across Linux and having even basic knowledge is very helpful. Many people struggle with the OS simply because it’s fundamentally different compared to the other operating systems, but with a bit of time you can master the basics and unlock it’s true power....

      <span title='2021-12-17 19:16:50 +0000 UTC'>December 17, 2021</span>&nbsp;·&nbsp;3 min&nbsp;·&nbsp;598 words&nbsp;·&nbsp;ahmza
      \ No newline at end of file diff --git a/public/tags/linux/index.xml b/public/tags/linux/index.xml deleted file mode 100644 index 279f007..0000000 --- a/public/tags/linux/index.xml +++ /dev/null @@ -1,37 +0,0 @@ - - - - linux on ahmza's ramblings - https://blog.ahmza.com/tags/linux/ - Recent content in linux on ahmza's ramblings - - ahmza's ramblings - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - - Hugo -- gohugo.io - en - Wed, 23 Feb 2022 11:57:08 +0000 - - Setup WSL 🪟 ❤️ 🐧 - https://blog.ahmza.com/posts/setup-wsl/ - Wed, 23 Feb 2022 11:57:08 +0000 - - https://blog.ahmza.com/posts/setup-wsl/ - Introduction WSL stands for Windows Subsystem for Linux which means we have the Linux kernel inside of windows. This is huge news for developers or people who just want to try Linux. -Prerequisites Enable virtualisation in BIOS Setup Open Powershell in Administrator mode -wsl --install You may be required to restart the device, I Highly recommend you do -Go to the Microsoft store and search for a Linux distribution. I prefer to use the &ldquo;Ubuntu&rdquo; distro. - - - - You Need to Learn Linux 🐧 - https://blog.ahmza.com/posts/you-need-to-learn-linux/ - Fri, 17 Dec 2021 19:16:50 +0000 - - https://blog.ahmza.com/posts/you-need-to-learn-linux/ - Ever wanted to learn Linux ? Well no better time than now to learn - - - - diff --git a/public/tags/linux/page/1/index.html b/public/tags/linux/page/1/index.html deleted file mode 100644 index 92e8683..0000000 --- a/public/tags/linux/page/1/index.html +++ /dev/null @@ -1,2 +0,0 @@ -https://blog.ahmza.com/tags/linux/ - \ No newline at end of file diff --git a/public/tags/misc/index.html b/public/tags/misc/index.html deleted file mode 100644 index e38bc29..0000000 --- a/public/tags/misc/index.html +++ /dev/null @@ -1,9 +0,0 @@ -misc | ahmza's ramblings -

      Welcome 👋

      Hello World The mandatory hello world when you start something new. -I’d like to say thank you for visiting my site and I hope that you gain something valuable from it. -A bit about me I’m currently based in the UK in the early stages of my career. And like most people - possibly you - I am very interested in learning new technologies and techniques. -I get bored fairly easily and so I have to keep my self busy by learning new stuff....

      <span title='2021-12-01 13:36:08 +0000 UTC'>December 1, 2021</span>&nbsp;·&nbsp;2 min&nbsp;·&nbsp;241 words&nbsp;·&nbsp;ahmza
      \ No newline at end of file diff --git a/public/tags/misc/index.xml b/public/tags/misc/index.xml deleted file mode 100644 index e923a5a..0000000 --- a/public/tags/misc/index.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - misc on ahmza's ramblings - https://blog.ahmza.com/tags/misc/ - Recent content in misc on ahmza's ramblings - - ahmza's ramblings - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - - Hugo -- gohugo.io - en - Wed, 01 Dec 2021 13:36:08 +0000 - - Welcome 👋 - https://blog.ahmza.com/posts/welcome/ - Wed, 01 Dec 2021 13:36:08 +0000 - - https://blog.ahmza.com/posts/welcome/ - Hello World The mandatory hello world when you start something new. -I&rsquo;d like to say thank you for visiting my site and I hope that you gain something valuable from it. -A bit about me I&rsquo;m currently based in the UK in the early stages of my career. And like most people - possibly you - I am very interested in learning new technologies and techniques. -I get bored fairly easily and so I have to keep my self busy by learning new stuff. - - - - diff --git a/public/tags/misc/page/1/index.html b/public/tags/misc/page/1/index.html deleted file mode 100644 index 276ee34..0000000 --- a/public/tags/misc/page/1/index.html +++ /dev/null @@ -1,2 +0,0 @@ -https://blog.ahmza.com/tags/misc/ - \ No newline at end of file diff --git a/public/tags/networking/index.html b/public/tags/networking/index.html deleted file mode 100644 index f98dccd..0000000 --- a/public/tags/networking/index.html +++ /dev/null @@ -1,7 +0,0 @@ -Networking | ahmza's ramblings -
      abstracted reverse proxy diagram

      Setup an NGINX Reverse Proxy 🥸

      Introduction In this post we will go over setting up an NGINX reverse proxy to allow different web services to reach the outside world. We will also cover setting up auto renewing SSL certificates. -Why not just port forward the services, it does the same thing Right? Reverse proxies are a great way to expose web services to the outside world in a more secure and customisable manner. Some of the features that a reverse proxy provides are as follows:...

      <span title='2021-12-01 22:59:00 +0000 UTC'>December 1, 2021</span>&nbsp;·&nbsp;4 min&nbsp;·&nbsp;850 words&nbsp;·&nbsp;ahmza
      \ No newline at end of file diff --git a/public/tags/networking/index.xml b/public/tags/networking/index.xml deleted file mode 100644 index cfb57f2..0000000 --- a/public/tags/networking/index.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - Networking on ahmza's ramblings - https://blog.ahmza.com/tags/networking/ - Recent content in Networking on ahmza's ramblings - - ahmza's ramblings - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - - Hugo -- gohugo.io - en - Wed, 01 Dec 2021 22:59:00 +0000 - - Setup an NGINX Reverse Proxy 🥸 - https://blog.ahmza.com/posts/setup-an-nginx-reverse-proxy/ - Wed, 01 Dec 2021 22:59:00 +0000 - - https://blog.ahmza.com/posts/setup-an-nginx-reverse-proxy/ - Learn to setup a quick and easy reverse proxy using NGINX - - - - diff --git a/public/tags/networking/page/1/index.html b/public/tags/networking/page/1/index.html deleted file mode 100644 index 676a66a..0000000 --- a/public/tags/networking/page/1/index.html +++ /dev/null @@ -1,2 +0,0 @@ -https://blog.ahmza.com/tags/networking/ - \ No newline at end of file diff --git a/public/tags/nginx/index.html b/public/tags/nginx/index.html deleted file mode 100644 index 0bc0dab..0000000 --- a/public/tags/nginx/index.html +++ /dev/null @@ -1,7 +0,0 @@ -NGINX | ahmza's ramblings -
      abstracted reverse proxy diagram

      Setup an NGINX Reverse Proxy 🥸

      Introduction In this post we will go over setting up an NGINX reverse proxy to allow different web services to reach the outside world. We will also cover setting up auto renewing SSL certificates. -Why not just port forward the services, it does the same thing Right? Reverse proxies are a great way to expose web services to the outside world in a more secure and customisable manner. Some of the features that a reverse proxy provides are as follows:...

      <span title='2021-12-01 22:59:00 +0000 UTC'>December 1, 2021</span>&nbsp;·&nbsp;4 min&nbsp;·&nbsp;850 words&nbsp;·&nbsp;ahmza
      \ No newline at end of file diff --git a/public/tags/nginx/index.xml b/public/tags/nginx/index.xml deleted file mode 100644 index 9d197f5..0000000 --- a/public/tags/nginx/index.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - NGINX on ahmza's ramblings - https://blog.ahmza.com/tags/nginx/ - Recent content in NGINX on ahmza's ramblings - - ahmza's ramblings - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - - Hugo -- gohugo.io - en - Wed, 01 Dec 2021 22:59:00 +0000 - - Setup an NGINX Reverse Proxy 🥸 - https://blog.ahmza.com/posts/setup-an-nginx-reverse-proxy/ - Wed, 01 Dec 2021 22:59:00 +0000 - - https://blog.ahmza.com/posts/setup-an-nginx-reverse-proxy/ - Learn to setup a quick and easy reverse proxy using NGINX - - - - diff --git a/public/tags/nginx/page/1/index.html b/public/tags/nginx/page/1/index.html deleted file mode 100644 index faaec9a..0000000 --- a/public/tags/nginx/page/1/index.html +++ /dev/null @@ -1,2 +0,0 @@ -https://blog.ahmza.com/tags/nginx/ - \ No newline at end of file diff --git a/public/tags/pi4/index.html b/public/tags/pi4/index.html deleted file mode 100644 index c2c7c75..0000000 --- a/public/tags/pi4/index.html +++ /dev/null @@ -1,7 +0,0 @@ -Pi4 | ahmza's ramblings -
      Pi Docker Swarm

      Building a Docker Swarm With Pi's 👾 👾 👾 👾

      Intro The Raspberry Pi from it’s first iteration has been a great hit. Adopted by many as the computer of choice for projects, and for very good reason. The Pi is a fully fledged computer that fits in your pocket and the most recent edition has blown fans away with the flagship model boasting an ARM64 CPU and 8GB of RAM. -Now one Raspberry Pi 4 8GB is more than powerful enough for most workloads and in some cases totally unnecessary, so you may even get away with a single 4GB model....

      <span title='2021-12-12 17:23:32 +0000 UTC'>December 12, 2021</span>&nbsp;·&nbsp;11 min&nbsp;·&nbsp;2290 words&nbsp;·&nbsp;ahmza
      \ No newline at end of file diff --git a/public/tags/pi4/index.xml b/public/tags/pi4/index.xml deleted file mode 100644 index 086d494..0000000 --- a/public/tags/pi4/index.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - Pi4 on ahmza's ramblings - https://blog.ahmza.com/tags/pi4/ - Recent content in Pi4 on ahmza's ramblings - - ahmza's ramblings - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - - Hugo -- gohugo.io - en - Sun, 12 Dec 2021 17:23:32 +0000 - - Building a Docker Swarm With Pi's 👾 👾 👾 👾 - https://blog.ahmza.com/posts/building-a-docker-swarm-with-pis/ - Sun, 12 Dec 2021 17:23:32 +0000 - - https://blog.ahmza.com/posts/building-a-docker-swarm-with-pis/ - Pis are very capable computers, when banded together they&#39;re almost unstoppable - - - - diff --git a/public/tags/pi4/page/1/index.html b/public/tags/pi4/page/1/index.html deleted file mode 100644 index 1a2a7fe..0000000 --- a/public/tags/pi4/page/1/index.html +++ /dev/null @@ -1,2 +0,0 @@ -https://blog.ahmza.com/tags/pi4/ - \ No newline at end of file diff --git a/public/tags/raspberry-pi/index.html b/public/tags/raspberry-pi/index.html deleted file mode 100644 index ce91400..0000000 --- a/public/tags/raspberry-pi/index.html +++ /dev/null @@ -1,7 +0,0 @@ -Raspberry Pi | ahmza's ramblings -
      Pi Docker Swarm

      Building a Docker Swarm With Pi's 👾 👾 👾 👾

      Intro The Raspberry Pi from it’s first iteration has been a great hit. Adopted by many as the computer of choice for projects, and for very good reason. The Pi is a fully fledged computer that fits in your pocket and the most recent edition has blown fans away with the flagship model boasting an ARM64 CPU and 8GB of RAM. -Now one Raspberry Pi 4 8GB is more than powerful enough for most workloads and in some cases totally unnecessary, so you may even get away with a single 4GB model....

      <span title='2021-12-12 17:23:32 +0000 UTC'>December 12, 2021</span>&nbsp;·&nbsp;11 min&nbsp;·&nbsp;2290 words&nbsp;·&nbsp;ahmza
      \ No newline at end of file diff --git a/public/tags/raspberry-pi/index.xml b/public/tags/raspberry-pi/index.xml deleted file mode 100644 index d19a73b..0000000 --- a/public/tags/raspberry-pi/index.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - Raspberry Pi on ahmza's ramblings - https://blog.ahmza.com/tags/raspberry-pi/ - Recent content in Raspberry Pi on ahmza's ramblings - - ahmza's ramblings - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - - Hugo -- gohugo.io - en - Sun, 12 Dec 2021 17:23:32 +0000 - - Building a Docker Swarm With Pi's 👾 👾 👾 👾 - https://blog.ahmza.com/posts/building-a-docker-swarm-with-pis/ - Sun, 12 Dec 2021 17:23:32 +0000 - - https://blog.ahmza.com/posts/building-a-docker-swarm-with-pis/ - Pis are very capable computers, when banded together they&#39;re almost unstoppable - - - - diff --git a/public/tags/raspberry-pi/page/1/index.html b/public/tags/raspberry-pi/page/1/index.html deleted file mode 100644 index de86761..0000000 --- a/public/tags/raspberry-pi/page/1/index.html +++ /dev/null @@ -1,2 +0,0 @@ -https://blog.ahmza.com/tags/raspberry-pi/ - \ No newline at end of file diff --git a/public/tags/remoteaccess/index.html b/public/tags/remoteaccess/index.html deleted file mode 100644 index 58fed33..0000000 --- a/public/tags/remoteaccess/index.html +++ /dev/null @@ -1,7 +0,0 @@ -RemoteAccess | ahmza's ramblings -
      ssh-alt image

      Securing SSH 🤖

      Introduction SSH is a widely used protocol to access remote devices. The problem with SSH is at the authentication stage, Brute force attacks are one of the ways an SSH connection can be compromised. A malicious actor will constantly hammer the remote host with different passwords until it can gain access. With further configuration of SSH we can make the service a lot more secure. -Configure SSH Famous last words: Configuring SSH like many things in Linux is as simple as editing a few config files...

      <span title='2021-12-07 22:41:02 +0000 UTC'>December 7, 2021</span>&nbsp;·&nbsp;8 min&nbsp;·&nbsp;1702 words&nbsp;·&nbsp;ahmza
      \ No newline at end of file diff --git a/public/tags/remoteaccess/index.xml b/public/tags/remoteaccess/index.xml deleted file mode 100644 index cef0417..0000000 --- a/public/tags/remoteaccess/index.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - RemoteAccess on ahmza's ramblings - https://blog.ahmza.com/tags/remoteaccess/ - Recent content in RemoteAccess on ahmza's ramblings - - ahmza's ramblings - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - - Hugo -- gohugo.io - en - Tue, 07 Dec 2021 22:41:02 +0000 - - Securing SSH 🤖 - https://blog.ahmza.com/posts/securing-ssh/ - Tue, 07 Dec 2021 22:41:02 +0000 - - https://blog.ahmza.com/posts/securing-ssh/ - Ever wanted to make your SSH connections more secure. Read this - - - - diff --git a/public/tags/remoteaccess/page/1/index.html b/public/tags/remoteaccess/page/1/index.html deleted file mode 100644 index 32ab3fd..0000000 --- a/public/tags/remoteaccess/page/1/index.html +++ /dev/null @@ -1,2 +0,0 @@ -https://blog.ahmza.com/tags/remoteaccess/ - \ No newline at end of file diff --git a/public/tags/reverseproxy/index.html b/public/tags/reverseproxy/index.html deleted file mode 100644 index 3d3fa38..0000000 --- a/public/tags/reverseproxy/index.html +++ /dev/null @@ -1,7 +0,0 @@ -ReverseProxy | ahmza's ramblings -
      abstracted reverse proxy diagram

      Setup an NGINX Reverse Proxy 🥸

      Introduction In this post we will go over setting up an NGINX reverse proxy to allow different web services to reach the outside world. We will also cover setting up auto renewing SSL certificates. -Why not just port forward the services, it does the same thing Right? Reverse proxies are a great way to expose web services to the outside world in a more secure and customisable manner. Some of the features that a reverse proxy provides are as follows:...

      <span title='2021-12-01 22:59:00 +0000 UTC'>December 1, 2021</span>&nbsp;·&nbsp;4 min&nbsp;·&nbsp;850 words&nbsp;·&nbsp;ahmza
      \ No newline at end of file diff --git a/public/tags/reverseproxy/index.xml b/public/tags/reverseproxy/index.xml deleted file mode 100644 index 0edee36..0000000 --- a/public/tags/reverseproxy/index.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - ReverseProxy on ahmza's ramblings - https://blog.ahmza.com/tags/reverseproxy/ - Recent content in ReverseProxy on ahmza's ramblings - - ahmza's ramblings - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - - Hugo -- gohugo.io - en - Wed, 01 Dec 2021 22:59:00 +0000 - - Setup an NGINX Reverse Proxy 🥸 - https://blog.ahmza.com/posts/setup-an-nginx-reverse-proxy/ - Wed, 01 Dec 2021 22:59:00 +0000 - - https://blog.ahmza.com/posts/setup-an-nginx-reverse-proxy/ - Learn to setup a quick and easy reverse proxy using NGINX - - - - diff --git a/public/tags/reverseproxy/page/1/index.html b/public/tags/reverseproxy/page/1/index.html deleted file mode 100644 index 122cbd1..0000000 --- a/public/tags/reverseproxy/page/1/index.html +++ /dev/null @@ -1,2 +0,0 @@ -https://blog.ahmza.com/tags/reverseproxy/ - \ No newline at end of file diff --git a/public/tags/ssh/index.html b/public/tags/ssh/index.html deleted file mode 100644 index d555319..0000000 --- a/public/tags/ssh/index.html +++ /dev/null @@ -1,7 +0,0 @@ -SSH | ahmza's ramblings -
      ssh-alt image

      Securing SSH 🤖

      Introduction SSH is a widely used protocol to access remote devices. The problem with SSH is at the authentication stage, Brute force attacks are one of the ways an SSH connection can be compromised. A malicious actor will constantly hammer the remote host with different passwords until it can gain access. With further configuration of SSH we can make the service a lot more secure. -Configure SSH Famous last words: Configuring SSH like many things in Linux is as simple as editing a few config files...

      <span title='2021-12-07 22:41:02 +0000 UTC'>December 7, 2021</span>&nbsp;·&nbsp;8 min&nbsp;·&nbsp;1702 words&nbsp;·&nbsp;ahmza
      \ No newline at end of file diff --git a/public/tags/ssh/index.xml b/public/tags/ssh/index.xml deleted file mode 100644 index bec1e5e..0000000 --- a/public/tags/ssh/index.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - SSH on ahmza's ramblings - https://blog.ahmza.com/tags/ssh/ - Recent content in SSH on ahmza's ramblings - - ahmza's ramblings - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - - Hugo -- gohugo.io - en - Tue, 07 Dec 2021 22:41:02 +0000 - - Securing SSH 🤖 - https://blog.ahmza.com/posts/securing-ssh/ - Tue, 07 Dec 2021 22:41:02 +0000 - - https://blog.ahmza.com/posts/securing-ssh/ - Ever wanted to make your SSH connections more secure. Read this - - - - diff --git a/public/tags/ssh/page/1/index.html b/public/tags/ssh/page/1/index.html deleted file mode 100644 index 1cad957..0000000 --- a/public/tags/ssh/page/1/index.html +++ /dev/null @@ -1,2 +0,0 @@ -https://blog.ahmza.com/tags/ssh/ - \ No newline at end of file diff --git a/public/tags/twitch/index.html b/public/tags/twitch/index.html deleted file mode 100644 index b3e3374..0000000 --- a/public/tags/twitch/index.html +++ /dev/null @@ -1,7 +0,0 @@ -twitch | ahmza's ramblings -
      Bleed Purple

      Twitch Layoffs

      Mon 20 Mar 2023 The news was broken to all Twitch employees that there was going to be a mass layoff that would nuke 1/5th of Twitch’s workforce, Just over 400 employees. We were not given a date that this would happen we were just told that it would be by the end of the week or early the next week. -Fri 24 Mar 2023 The day started with an announcement that Twitch would layoff 1/5th of its workforce....

      <span title='2023-03-29 12:39:05 +0100 BST'>March 29, 2023</span>&nbsp;·&nbsp;2 min&nbsp;·&nbsp;366 words&nbsp;·&nbsp;ahmza
      \ No newline at end of file diff --git a/public/tags/twitch/index.xml b/public/tags/twitch/index.xml deleted file mode 100644 index 2f135b3..0000000 --- a/public/tags/twitch/index.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - twitch on ahmza's ramblings - https://blog.ahmza.com/tags/twitch/ - Recent content in twitch on ahmza's ramblings - - ahmza's ramblings - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - - Hugo -- gohugo.io - en - Wed, 29 Mar 2023 12:39:05 +0100 - - Twitch Layoffs - https://blog.ahmza.com/posts/twitch-layoffs/ - Wed, 29 Mar 2023 12:39:05 +0100 - - https://blog.ahmza.com/posts/twitch-layoffs/ - Mon 20 Mar 2023 The news was broken to all Twitch employees that there was going to be a mass layoff that would nuke 1/5th of Twitch&rsquo;s workforce, Just over 400 employees. We were not given a date that this would happen we were just told that it would be by the end of the week or early the next week. -Fri 24 Mar 2023 The day started with an announcement that Twitch would layoff 1/5th of its workforce. - - - - diff --git a/public/tags/twitch/page/1/index.html b/public/tags/twitch/page/1/index.html deleted file mode 100644 index af057d5..0000000 --- a/public/tags/twitch/page/1/index.html +++ /dev/null @@ -1,2 +0,0 @@ -https://blog.ahmza.com/tags/twitch/ - \ No newline at end of file diff --git a/public/tags/web-development/index.html b/public/tags/web-development/index.html deleted file mode 100644 index b1ce070..0000000 --- a/public/tags/web-development/index.html +++ /dev/null @@ -1,8 +0,0 @@ -web development | ahmza's ramblings -
      HUGO Logo

      Setup a HUGO Site

      Introduction Hugo is a static site generator, a tool that allows us to pre-compile our website into static HTML, CSS and JS. The main benefit of using such methods is speed. A Static site takes a lot less time to load than a site that uses databases. -For more information on HUGO read my other post Hugo Static Site Generator Prerequisites Git Installing HUGO Official steps The HUGO binary is what we will use throughout the creation of our project to initially setup our site then create posts etc… This step will vary depending on your operating system and distribution....

      <span title='2022-12-31 22:03:52 +0000 UTC'>December 31, 2022</span>&nbsp;·&nbsp;5 min&nbsp;·&nbsp;993 words&nbsp;·&nbsp;ahmza
      HUGO logo

      HUGO Static Site Generator

      Introduction Hugo is a static site generator, which basically means it’s a tool that allows us to pre-compile all of our website into static HTML, CSS and JS. The main benefit of using such methods to crate a site is speed. A Static site takes a lot less time to load than a site that uses databases for example. -Disadvantages Some of the disadvantages I have come across are as follows:...

      <span title='2021-12-26 00:23:22 +0000 UTC'>December 26, 2021</span>&nbsp;·&nbsp;4 min&nbsp;·&nbsp;687 words&nbsp;·&nbsp;ahmza
      \ No newline at end of file diff --git a/public/tags/web-development/index.xml b/public/tags/web-development/index.xml deleted file mode 100644 index f1d4ce9..0000000 --- a/public/tags/web-development/index.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - web development on ahmza's ramblings - https://blog.ahmza.com/tags/web-development/ - Recent content in web development on ahmza's ramblings - - ahmza's ramblings - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - - Hugo -- gohugo.io - en - Sat, 31 Dec 2022 22:03:52 +0000 - - Setup a HUGO Site - https://blog.ahmza.com/posts/setup-a-hugo-site/ - Sat, 31 Dec 2022 22:03:52 +0000 - - https://blog.ahmza.com/posts/setup-a-hugo-site/ - Always wanted to setup a static website. Look no further !! In this post we go over the basics of setting up a HUGO site - - - - HUGO Static Site Generator - https://blog.ahmza.com/posts/hugo-static-site-generator/ - Sun, 26 Dec 2021 00:23:22 +0000 - - https://blog.ahmza.com/posts/hugo-static-site-generator/ - HUGO is a static site generator. No idea what that is ? Check out this post to learn more ! - - - - diff --git a/public/tags/web-development/page/1/index.html b/public/tags/web-development/page/1/index.html deleted file mode 100644 index 2b456df..0000000 --- a/public/tags/web-development/page/1/index.html +++ /dev/null @@ -1,2 +0,0 @@ -https://blog.ahmza.com/tags/web-development/ - \ No newline at end of file diff --git a/public/tags/website/index.html b/public/tags/website/index.html deleted file mode 100644 index 950be38..0000000 --- a/public/tags/website/index.html +++ /dev/null @@ -1,8 +0,0 @@ -website | ahmza's ramblings -
      HUGO Logo

      Setup a HUGO Site

      Introduction Hugo is a static site generator, a tool that allows us to pre-compile our website into static HTML, CSS and JS. The main benefit of using such methods is speed. A Static site takes a lot less time to load than a site that uses databases. -For more information on HUGO read my other post Hugo Static Site Generator Prerequisites Git Installing HUGO Official steps The HUGO binary is what we will use throughout the creation of our project to initially setup our site then create posts etc… This step will vary depending on your operating system and distribution....

      <span title='2022-12-31 22:03:52 +0000 UTC'>December 31, 2022</span>&nbsp;·&nbsp;5 min&nbsp;·&nbsp;993 words&nbsp;·&nbsp;ahmza
      HUGO logo

      HUGO Static Site Generator

      Introduction Hugo is a static site generator, which basically means it’s a tool that allows us to pre-compile all of our website into static HTML, CSS and JS. The main benefit of using such methods to crate a site is speed. A Static site takes a lot less time to load than a site that uses databases for example. -Disadvantages Some of the disadvantages I have come across are as follows:...

      <span title='2021-12-26 00:23:22 +0000 UTC'>December 26, 2021</span>&nbsp;·&nbsp;4 min&nbsp;·&nbsp;687 words&nbsp;·&nbsp;ahmza
      \ No newline at end of file diff --git a/public/tags/website/index.xml b/public/tags/website/index.xml deleted file mode 100644 index 213a3d5..0000000 --- a/public/tags/website/index.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - website on ahmza's ramblings - https://blog.ahmza.com/tags/website/ - Recent content in website on ahmza's ramblings - - ahmza's ramblings - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - - Hugo -- gohugo.io - en - Sat, 31 Dec 2022 22:03:52 +0000 - - Setup a HUGO Site - https://blog.ahmza.com/posts/setup-a-hugo-site/ - Sat, 31 Dec 2022 22:03:52 +0000 - - https://blog.ahmza.com/posts/setup-a-hugo-site/ - Always wanted to setup a static website. Look no further !! In this post we go over the basics of setting up a HUGO site - - - - HUGO Static Site Generator - https://blog.ahmza.com/posts/hugo-static-site-generator/ - Sun, 26 Dec 2021 00:23:22 +0000 - - https://blog.ahmza.com/posts/hugo-static-site-generator/ - HUGO is a static site generator. No idea what that is ? Check out this post to learn more ! - - - - diff --git a/public/tags/website/page/1/index.html b/public/tags/website/page/1/index.html deleted file mode 100644 index 370eac0..0000000 --- a/public/tags/website/page/1/index.html +++ /dev/null @@ -1,2 +0,0 @@ -https://blog.ahmza.com/tags/website/ - \ No newline at end of file diff --git a/public/tags/welcome/index.html b/public/tags/welcome/index.html deleted file mode 100644 index 5108215..0000000 --- a/public/tags/welcome/index.html +++ /dev/null @@ -1,9 +0,0 @@ -welcome | ahmza's ramblings -

      Welcome 👋

      Hello World The mandatory hello world when you start something new. -I’d like to say thank you for visiting my site and I hope that you gain something valuable from it. -A bit about me I’m currently based in the UK in the early stages of my career. And like most people - possibly you - I am very interested in learning new technologies and techniques. -I get bored fairly easily and so I have to keep my self busy by learning new stuff....

      <span title='2021-12-01 13:36:08 +0000 UTC'>December 1, 2021</span>&nbsp;·&nbsp;2 min&nbsp;·&nbsp;241 words&nbsp;·&nbsp;ahmza
      \ No newline at end of file diff --git a/public/tags/welcome/index.xml b/public/tags/welcome/index.xml deleted file mode 100644 index 9cba67a..0000000 --- a/public/tags/welcome/index.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - welcome on ahmza's ramblings - https://blog.ahmza.com/tags/welcome/ - Recent content in welcome on ahmza's ramblings - - ahmza's ramblings - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - - Hugo -- gohugo.io - en - Wed, 01 Dec 2021 13:36:08 +0000 - - Welcome 👋 - https://blog.ahmza.com/posts/welcome/ - Wed, 01 Dec 2021 13:36:08 +0000 - - https://blog.ahmza.com/posts/welcome/ - Hello World The mandatory hello world when you start something new. -I&rsquo;d like to say thank you for visiting my site and I hope that you gain something valuable from it. -A bit about me I&rsquo;m currently based in the UK in the early stages of my career. And like most people - possibly you - I am very interested in learning new technologies and techniques. -I get bored fairly easily and so I have to keep my self busy by learning new stuff. - - - - diff --git a/public/tags/welcome/page/1/index.html b/public/tags/welcome/page/1/index.html deleted file mode 100644 index 0af6967..0000000 --- a/public/tags/welcome/page/1/index.html +++ /dev/null @@ -1,2 +0,0 @@ -https://blog.ahmza.com/tags/welcome/ - \ No newline at end of file diff --git a/public/tags/windows/index.html b/public/tags/windows/index.html deleted file mode 100644 index 16c985e..0000000 --- a/public/tags/windows/index.html +++ /dev/null @@ -1,9 +0,0 @@ -windows | ahmza's ramblings -
      Windows Loves Linux

      Setup WSL 🪟 ❤️ 🐧

      Introduction WSL stands for Windows Subsystem for Linux which means we have the Linux kernel inside of windows. This is huge news for developers or people who just want to try Linux. -Prerequisites Enable virtualisation in BIOS Setup Open Powershell in Administrator mode -wsl --install You may be required to restart the device, I Highly recommend you do -Go to the Microsoft store and search for a Linux distribution. I prefer to use the “Ubuntu” distro....

      <span title='2022-02-23 11:57:08 +0000 UTC'>February 23, 2022</span>&nbsp;·&nbsp;2 min&nbsp;·&nbsp;262 words&nbsp;·&nbsp;ahmza
      \ No newline at end of file diff --git a/public/tags/windows/index.xml b/public/tags/windows/index.xml deleted file mode 100644 index 331a61e..0000000 --- a/public/tags/windows/index.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - windows on ahmza's ramblings - https://blog.ahmza.com/tags/windows/ - Recent content in windows on ahmza's ramblings - - ahmza's ramblings - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - - Hugo -- gohugo.io - en - Wed, 23 Feb 2022 11:57:08 +0000 - - Setup WSL 🪟 ❤️ 🐧 - https://blog.ahmza.com/posts/setup-wsl/ - Wed, 23 Feb 2022 11:57:08 +0000 - - https://blog.ahmza.com/posts/setup-wsl/ - Introduction WSL stands for Windows Subsystem for Linux which means we have the Linux kernel inside of windows. This is huge news for developers or people who just want to try Linux. -Prerequisites Enable virtualisation in BIOS Setup Open Powershell in Administrator mode -wsl --install You may be required to restart the device, I Highly recommend you do -Go to the Microsoft store and search for a Linux distribution. I prefer to use the &ldquo;Ubuntu&rdquo; distro. - - - - diff --git a/public/tags/windows/page/1/index.html b/public/tags/windows/page/1/index.html deleted file mode 100644 index 663632b..0000000 --- a/public/tags/windows/page/1/index.html +++ /dev/null @@ -1,2 +0,0 @@ -https://blog.ahmza.com/tags/windows/ - \ No newline at end of file diff --git a/public/tags/wsl/index.html b/public/tags/wsl/index.html deleted file mode 100644 index 300aa8f..0000000 --- a/public/tags/wsl/index.html +++ /dev/null @@ -1,9 +0,0 @@ -wsl | ahmza's ramblings -
      Windows Loves Linux

      Setup WSL 🪟 ❤️ 🐧

      Introduction WSL stands for Windows Subsystem for Linux which means we have the Linux kernel inside of windows. This is huge news for developers or people who just want to try Linux. -Prerequisites Enable virtualisation in BIOS Setup Open Powershell in Administrator mode -wsl --install You may be required to restart the device, I Highly recommend you do -Go to the Microsoft store and search for a Linux distribution. I prefer to use the “Ubuntu” distro....

      <span title='2022-02-23 11:57:08 +0000 UTC'>February 23, 2022</span>&nbsp;·&nbsp;2 min&nbsp;·&nbsp;262 words&nbsp;·&nbsp;ahmza
      \ No newline at end of file diff --git a/public/tags/wsl/index.xml b/public/tags/wsl/index.xml deleted file mode 100644 index 2829903..0000000 --- a/public/tags/wsl/index.xml +++ /dev/null @@ -1,28 +0,0 @@ - - - - wsl on ahmza's ramblings - https://blog.ahmza.com/tags/wsl/ - Recent content in wsl on ahmza's ramblings - - ahmza's ramblings - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - http://blog.ahmza.com/content/images/2021/11/Padlock-1.png - - Hugo -- gohugo.io - en - Wed, 23 Feb 2022 11:57:08 +0000 - - Setup WSL 🪟 ❤️ 🐧 - https://blog.ahmza.com/posts/setup-wsl/ - Wed, 23 Feb 2022 11:57:08 +0000 - - https://blog.ahmza.com/posts/setup-wsl/ - Introduction WSL stands for Windows Subsystem for Linux which means we have the Linux kernel inside of windows. This is huge news for developers or people who just want to try Linux. -Prerequisites Enable virtualisation in BIOS Setup Open Powershell in Administrator mode -wsl --install You may be required to restart the device, I Highly recommend you do -Go to the Microsoft store and search for a Linux distribution. I prefer to use the &ldquo;Ubuntu&rdquo; distro. - - - - diff --git a/public/tags/wsl/page/1/index.html b/public/tags/wsl/page/1/index.html deleted file mode 100644 index 8df100c..0000000 --- a/public/tags/wsl/page/1/index.html +++ /dev/null @@ -1,2 +0,0 @@ -https://blog.ahmza.com/tags/wsl/ - \ No newline at end of file diff --git a/public/tshirt/index.html b/public/tshirt/index.html deleted file mode 100644 index 61b5fa3..0000000 --- a/public/tshirt/index.html +++ /dev/null @@ -1,5 +0,0 @@ -Tshirt | ahmza's ramblings -

      Tshirt

      You Scanned me :D

      well done you successfully scanned my t-shirt.

      You Don’t get anything for doing so but here have a pop cat (touch his mouth):

      Catto

      \ No newline at end of file diff --git a/public/webm/clap.webm b/public/webm/clap.webm deleted file mode 100644 index 3db470e..0000000 Binary files a/public/webm/clap.webm and /dev/null differ diff --git a/public/webm/do-it.webm b/public/webm/do-it.webm deleted file mode 100644 index 70b07b9..0000000 Binary files a/public/webm/do-it.webm and /dev/null differ diff --git a/public/webm/i-know-kung-fu.webm b/public/webm/i-know-kung-fu.webm deleted file mode 100644 index 4467ecb..0000000 Binary files a/public/webm/i-know-kung-fu.webm and /dev/null differ diff --git a/public/webm/i-love-it.webm b/public/webm/i-love-it.webm deleted file mode 100644 index dd5a865..0000000 Binary files a/public/webm/i-love-it.webm and /dev/null differ diff --git a/public/webm/matrix-jump-fail.webm b/public/webm/matrix-jump-fail.webm deleted file mode 100644 index 4f7a338..0000000 Binary files a/public/webm/matrix-jump-fail.webm and /dev/null differ diff --git a/public/webm/mha-power.webm b/public/webm/mha-power.webm deleted file mode 100644 index 9efb227..0000000 Binary files a/public/webm/mha-power.webm and /dev/null differ diff --git a/public/webm/proud.webm b/public/webm/proud.webm deleted file mode 100644 index 38759c3..0000000 Binary files a/public/webm/proud.webm and /dev/null differ diff --git a/public/webm/thats-a-big-one.webm b/public/webm/thats-a-big-one.webm deleted file mode 100644 index a8d8c82..0000000 Binary files a/public/webm/thats-a-big-one.webm and /dev/null differ diff --git a/public/webm/this-is-fine.webm b/public/webm/this-is-fine.webm deleted file mode 100644 index d3079d3..0000000 Binary files a/public/webm/this-is-fine.webm and /dev/null differ diff --git a/public/webm/wasnt-so-bad.webm b/public/webm/wasnt-so-bad.webm deleted file mode 100644 index 70ac22b..0000000 Binary files a/public/webm/wasnt-so-bad.webm and /dev/null differ diff --git a/public/webm/you-shall-not-pass.webm b/public/webm/you-shall-not-pass.webm deleted file mode 100644 index 981d39a..0000000 Binary files a/public/webm/you-shall-not-pass.webm and /dev/null differ diff --git a/public/webp/posts/learn-linux/feature-anim.aseprite b/public/webp/posts/learn-linux/feature-anim.aseprite deleted file mode 100755 index 59c64a6..0000000 Binary files a/public/webp/posts/learn-linux/feature-anim.aseprite and /dev/null differ diff --git a/public/webp/posts/learn-linux/feature-anim.webp b/public/webp/posts/learn-linux/feature-anim.webp deleted file mode 100644 index c232ffb..0000000 Binary files a/public/webp/posts/learn-linux/feature-anim.webp and /dev/null differ diff --git a/public/webp/posts/mc-docker/feature-anim.aseprite b/public/webp/posts/mc-docker/feature-anim.aseprite deleted file mode 100755 index e1449b8..0000000 Binary files a/public/webp/posts/mc-docker/feature-anim.aseprite and /dev/null differ diff --git a/public/webp/posts/mc-docker/feature-anim.webp b/public/webp/posts/mc-docker/feature-anim.webp deleted file mode 100644 index ef2c55c..0000000 Binary files a/public/webp/posts/mc-docker/feature-anim.webp and /dev/null differ diff --git a/public/webp/posts/pi-docker-swarm/feature-anim.aseprite b/public/webp/posts/pi-docker-swarm/feature-anim.aseprite deleted file mode 100755 index 23dbb06..0000000 Binary files a/public/webp/posts/pi-docker-swarm/feature-anim.aseprite and /dev/null differ diff --git a/public/webp/posts/pi-docker-swarm/feature-anim.webp b/public/webp/posts/pi-docker-swarm/feature-anim.webp deleted file mode 100644 index 08c26c8..0000000 Binary files a/public/webp/posts/pi-docker-swarm/feature-anim.webp and /dev/null differ diff --git a/public/webp/posts/reverse-proxy/feature-anim.aseprite b/public/webp/posts/reverse-proxy/feature-anim.aseprite deleted file mode 100755 index d9a1559..0000000 Binary files a/public/webp/posts/reverse-proxy/feature-anim.aseprite and /dev/null differ diff --git a/public/webp/posts/reverse-proxy/feature-anim.webp b/public/webp/posts/reverse-proxy/feature-anim.webp deleted file mode 100644 index 487c235..0000000 Binary files a/public/webp/posts/reverse-proxy/feature-anim.webp and /dev/null differ diff --git a/public/webp/posts/secure-ssh/feature-anim.aseprite b/public/webp/posts/secure-ssh/feature-anim.aseprite deleted file mode 100755 index fc710f3..0000000 Binary files a/public/webp/posts/secure-ssh/feature-anim.aseprite and /dev/null differ diff --git a/public/webp/posts/secure-ssh/feature-anim.webp b/public/webp/posts/secure-ssh/feature-anim.webp deleted file mode 100644 index d4311cc..0000000 Binary files a/public/webp/posts/secure-ssh/feature-anim.webp and /dev/null differ diff --git a/public/webp/posts/twitch-layoffs/feature-anim.webp b/public/webp/posts/twitch-layoffs/feature-anim.webp deleted file mode 100644 index 10eaa02..0000000 Binary files a/public/webp/posts/twitch-layoffs/feature-anim.webp and /dev/null differ diff --git a/public/webp/posts/wsl/feature-anim.aseprite b/public/webp/posts/wsl/feature-anim.aseprite deleted file mode 100755 index 4c30b03..0000000 Binary files a/public/webp/posts/wsl/feature-anim.aseprite and /dev/null differ diff --git a/public/webp/posts/wsl/feature-anim.webp b/public/webp/posts/wsl/feature-anim.webp deleted file mode 100644 index 0304b4a..0000000 Binary files a/public/webp/posts/wsl/feature-anim.webp and /dev/null differ diff --git a/public/webp/posts/wsl/ubuntu.webp b/public/webp/posts/wsl/ubuntu.webp deleted file mode 100644 index 8cfd77a..0000000 Binary files a/public/webp/posts/wsl/ubuntu.webp and /dev/null differ diff --git a/public/webp/posts/wsl/winterm-settings.webp b/public/webp/posts/wsl/winterm-settings.webp deleted file mode 100644 index fc6b9e8..0000000 Binary files a/public/webp/posts/wsl/winterm-settings.webp and /dev/null differ diff --git a/public/webp/posts/wsl/winterm.webp b/public/webp/posts/wsl/winterm.webp deleted file mode 100644 index 38e6020..0000000 Binary files a/public/webp/posts/wsl/winterm.webp and /dev/null differ diff --git a/public/webp/tshirt/cat.webp b/public/webp/tshirt/cat.webp deleted file mode 100644 index 8bab535..0000000 Binary files a/public/webp/tshirt/cat.webp and /dev/null differ