The idea So everything started off with the idea that I can somehow fake uptime of a machine by updating the time against a “corrupted” NTP that will lie about the time. Since there isn’t such a thing as a lying NTP server I decided to create one.
This will be an exercise in reverse engineering a protocol, some Linux command line tricks, bitstring manipulation in Elixir, and some various other tricks.
In software, it is common to represent time as a time-stamp string. It is usually specified by a time format string. Some standards use the format %Y%m%d%H%M%S meaning that we print the year, the month, the day, the hours, the minutes and the seconds. The current time as I write this blog post would be … Continue reading Parsing time stamps faster with SIMD instructions
This post is about how to add Dialyzer to an existing Elixir project to get the benefits today without being overwhelmed fixing all the legacy problems.