Posts by deavmi@gleasonator.com
 (DIR) Post #AiYerejSKxOsmP3tsO by deavmi@gleasonator.com
       2024-06-03T17:53:16.166315Z
       
       0 likes, 0 repeats
       
       POV: You wanted to read a file in OCaml and wanted a mutable buffer returned.The πΈπ“π‘œπ“†π“Šπ‘’π“ƒπ“‰ solution:#ocaml
       
 (DIR) Post #AiaRBuY2EYgca5P6MC by deavmi@gleasonator.com
       2024-06-04T14:29:27.854664Z
       
       0 likes, 0 repeats
       
       Hehe, this ought to confuse them#ocaml
       
 (DIR) Post #AiablbRxiS87JgDmRU by deavmi@gleasonator.com
       2024-06-04T16:27:59.274777Z
       
       0 likes, 0 repeats
       
       Exception handling is actually fun in OCaml, why? You guessed it, you can pattern match the exception types and then extract whatever from their actual definition.Updated the function I wrote yesterday to also close the file-descriptor once done.I could place more checks in as the open() may succeed but a read() may not and in such a case the file-descriptor would remain open. Another catch would be needed to wrap the read such that the fd name binding is still in scope and can be Unix.close()'d.The last improvement was needing to have the compiler not complain about what I returned. You need to return the same type of data everywhere - nothing better than a variant (tagged union) to solve that. The result/Result.t (latter forwards to the former) aids with that by having two distinct types that wrap a piece of data of any type (both union members have a single polymorphic type parameter).Anyways, long ramblings, it works :).#ocaml
       
 (DIR) Post #Aiac4MhmlEoz5XZL4S by deavmi@gleasonator.com
       2024-06-04T16:31:23.215284Z
       
       0 likes, 0 repeats
       
       d
       
 (DIR) Post #AienemtOkbUmrNPW1w by deavmi@gleasonator.com
       2024-06-06T17:00:03.098338Z
       
       0 likes, 0 repeats
       
       You can learn a lot by just playing around. Today I learnt that the :: operator's implementation for list types ('a list) is to evaluate the right-hand side first and only then evaluate the left-hand side.This lead to an interesting bug which is only noticeable when you realise that order of operations#ocaml
       
 (DIR) Post #AirSLBBzfrby18XnxQ by deavmi@gleasonator.com
       2024-06-12T19:32:26.642831Z
       
       0 likes, 0 repeats
       
       Taco-land is a little slow on receiving my latest and greatest DNS records 😀️
       
 (DIR) Post #AirSSNDVMlpFKygJEW by deavmi@gleasonator.com
       2024-06-12T19:33:46.152128Z
       
       1 likes, 0 repeats
       
       @pernia Lovely
       
 (DIR) Post #AisaVhkgT1OWgbGBDU by deavmi@gleasonator.com
       2024-06-13T08:38:42.384551Z
       
       0 likes, 0 repeats
       
       There's a joke out there that schizophrenic people believe there are people "living in their walls". Now, they may not be in "the walls" persay but they very much are trying to get into your machine (does a firewall count?).Not today, I have incredibly strong security (a.k.a. PasswordAuthentication no)#homelab
       
 (DIR) Post #AiuexQ8kKUFgIxuFP6 by deavmi@gleasonator.com
       2024-06-14T08:37:56.735275Z
       
       0 likes, 0 repeats
       
       It's worth mentioning some of the tools-of-the-trade that I find quite useful whenever I end up doing some recreational system-admin work.Today's tool is DNSChecker.org. It will send recursive queries to a fixed list of DNS server (or custom ones if you so please) and then return the result.It also has a handy feature to query every 20 seconds or more and to check against a given condition. i.e. Is the resolved result equal to a given record value.#dns
       
 (DIR) Post #AivgVmQqFWhSOrHIEC by deavmi@gleasonator.com
       2024-06-14T20:30:05.291393Z
       
       0 likes, 0 repeats
       
       Watching people (or machines) try to access your network is like sitting atop a hill on your property waiting for a criminal to trespass. It's sort of weird because you know they're doing something wrong but for some reason you also want to know how they will scheme about doing so.Was staring at the authoritative resolution requests for my *.deavmi.assigned.network. zone and found these aMuSing ReQueSts. This isn't the first time I have seen these but it is funny.#dns #homelab
       
 (DIR) Post #AjBiXPIci40EbDl1No by deavmi@gleasonator.com
       2024-06-22T14:08:11.185563Z
       
       1 likes, 0 repeats
       
       @cjd @MidnightRider Agreed, in ZA we have had so much shit burnt. Destruction ain't nice.
       
 (DIR) Post #AjCJ3H24ZuDgZnViRE by deavmi@gleasonator.com
       2024-06-22T20:57:18.778374Z
       
       0 likes, 1 repeats
       
       Looks like the bots crawling the web are looking for LuCi web interfaces to connect to and (presumably) run some commands on. I would guess this requires your LuCi to have no password associated with it. Normally it is username and password protected.For those who are unaware, thee LuCi web interface is a web UI for controlling UCI (I believe) which is the configuration tool that routers running the open-source OpenWRT (would really recommend) firmware have.#openwrt #webthingz #ipv6
       
 (DIR) Post #AjDxWHfpSoBoHtSDUO by deavmi@gleasonator.com
       2024-06-23T16:05:27.621822Z
       
       1 likes, 0 repeats
       
       🌐 I have spent the past year teaching myself a lot of hands on networking (as compared to network programming) in order to improve my knowledge on setting up complex networks.The reason for doing this was to improve my knowledge on routing, which I already had quite a bit of but wanted to learn more, especially things like OSPFv3 (as I am using it for IPv6 route distribution). There were other things I had never played with however, such as link binding and VLAN switching - I had enough equipment that I saved up for to be able to play with all of these things every night, sitting cross legged on the floor configuring my switch and router.πŸ‹ Along with the networking knowledge, I also spent a lot of time learning Docker. From spending an immense time creating my own Docker images rather than using the ones readily available on DockerHub.A lot of the reason for this was having more control, esepcially considering being able to manipulate UIDs/GIDs more easily to ensure they match across file system boundaries. The other reason was that some of things I deployed didn't have a usable image available, so I had to create my own ones.❓ But really, why? I mean the initial reason was that I wanted to upgrade my home network which ran quite a few services that others made use of but also my personal website. I wanted something more stable than my current network which was held together by toothpicks-and-glue (which isn't a bad thing, nothing is ever perfect - and imperfect setups are how you learn).πŸͺ΅ I put this cool rack together with my dad as well, so I had a reason to finally populate it with all my networking gear and Raspberry PisπŸ’… Also, I am now IPv6-only (NAT64/DNS64 isn't cheating if you have someone else hosting it) so I won't be accepting any packets from you IPv4 plebs#homelab #routeros #mikrotik #linux #networking #routing #IKnowNobodyReadsTheseHashtagsButIAmUsingThemForReach
       
 (DIR) Post #AjG6YqFXAbcg0PMwe8 by deavmi@gleasonator.com
       2024-06-24T16:56:09.679090Z
       
       0 likes, 0 repeats
       
       OCaml is nice because its usable - be like OCaml :)#ocaml
       
 (DIR) Post #AjIDYivjTHXbIfuxW4 by deavmi@gleasonator.com
       2024-06-25T17:23:59.799662Z
       
       0 likes, 0 repeats
       
       Had to switch to the new Docker Compose, known as docker-compose-v2 (I guess). This one seems to be a plugin for the docker command than a separate Python-based program.It has cool terminal art which I wanted to show off but the real reason I had to switch was to be able to do bond.create_host_path and set it to false because it kept creating a directory where a Unix Domain socket would eventually be placed and that's what I wanted.#docker
       
 (DIR) Post #AkYviD18GiigctHeue by deavmi@gleasonator.com
       2024-08-02T16:45:45.330114Z
       
       0 likes, 0 repeats
       
       Been on the look for an affordable VLAN-capable switch but not necessarily one that is as expensive as the more advanced per-port configurable ones.Came across this one () which has cool DIP switches (very cool actually) but also purports to have "AI VLAN", "AI QoS"...."AI is wen basic smart stuf"
       
 (DIR) Post #AmllwLFCgmK92ck5Oi by deavmi@gleasonator.com
       2024-10-07T17:12:12.355901Z
       
       0 likes, 0 repeats
       
       Jeff Bozo forced me to setup a robots.txt; which is a good thing.Now to wait 24 hours to wait for the 'zonbot to refresh the robots.txt (or lack thereof at the last time it checked)
       
 (DIR) Post #Amlmh7SFm9tLst9SMK by deavmi@gleasonator.com
       2024-10-07T17:20:40.325726Z
       
       2 likes, 1 repeats
       
       Trying to SSH into someone's machine with varying username's is like a home intruder who is slightly slow and is taking his time to open up your door."No sir, user oracle, is not home nor does he live at this address.
       
 (DIR) Post #AmlmukTY0a0kfbFvBw by deavmi@gleasonator.com
       2024-10-07T17:23:06.799767Z
       
       0 likes, 0 repeats
       
       @martijn 😒
       
 (DIR) Post #AqW4HGQeNm2snRmka0 by deavmi@gleasonator.com
       2025-01-27T18:50:38.649780Z
       
       0 likes, 0 repeats
       
       Heyo all