chayleaf@lemmy.mltoSelfhosted@lemmy.world•What are the most paranoid network/OS security measures you've implemented in your homelab?English
1·
9 months agoI know about it, but it kinda defeats the purpose (the purpose being police raid protection)
I know about it, but it kinda defeats the purpose (the purpose being police raid protection)
a couple notes
let
before you assign them, it’s good practice and you can enforce it by enabling strict mode - put
at the beginning of your function (or the entire script). Of course it’s only needed in browsers, strict mode is usually enabled by default in most tools. ;reversedWord
value matters, so you can do it at the end as opposed to on every iteration. Your code right now works in O(N^2) - with every new character in the string its speed decreases exponentially, but it should work in O(N) - a linear time. If you couldn’t create reversedWord
at the end, you could still initialize it with an empty string and append some text with +=
on every iteration, that still works in O(N) time as you don’t have to recreate the entire string on every iteration.
there’s not much to know about it, I use Cloudflare simply because its routing is better than direct IP connections for many places on Earth. I can’t fully use Cloudflare anyway because I host many non-web services.