eupolicy.social is one of the many independent Mastodon servers you can use to participate in the fediverse.
This Mastodon server is a friendly and respectful discussion space for people working in areas related to EU policy. When you request to create an account, please tell us something about you.

Server stats:

196
active users

#techpost

0 posts0 participants0 posts today
Paul SomeoneElse<a href="https://snac.d34d.net?t=openbsd" class="mention hashtag" rel="nofollow noopener" target="_blank">#OpenBSD</a><br><br><a href="https://snac.d34d.net?t=techpost" class="mention hashtag" rel="nofollow noopener" target="_blank">#techpost</a><br><br>One of my problems with using relayd for tls is that I lose the origin IP in my httpd logs.<br><br>(background:)<br>I am adding IPs to my PF blocklist because I don't like my server getting spidered/crawled.<br>Specifically repeatedly hitting dynamic links that are not valid.<br><br>So I find the bad hit in my httpd log, and then use the time stamp to find<br>the origin IP in the relayd log.<br><br>I can probably add more info to either the httpd log or the relayd log<br>to mitigate this. Or I can script some tools to help me.<br><br>I was meaning to script some log stuff anyways just to get an idea<br>of how often it happens. Also writing helper code to look for<br>stuff in log files is fun for me. I was thinking for ease I would wait<br>until they "roll" and access the .gz versions. Then I don't have to<br>do "last line accessed" kind of record keeping. But I am more thinking<br>I WILL access the live logs, because doing that "last line accessed"<br>record keeping is also a fun exercise.<br>
Paul SomeoneElse<a href="https://snac.d34d.net?t=subtoot" class="mention hashtag" rel="nofollow noopener" target="_blank">#subtoot</a> <a href="https://snac.d34d.net?t=techpost" class="mention hashtag" rel="nofollow noopener" target="_blank">#techpost</a><br><br>The best thing about HTML syntax is that it is an example of how lisp parenthesis are really great.<br><br>This is a subtoot of at least two current and separate posts.<br>
Paul SomeoneElse<p><a href="https://mastodon.sdf.org/tags/techpost" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>techpost</span></a> </p><p>I use the word(s) pattern a lot when describing code where 'word' is some specific name so I don't want the plural 's' to confuse that. Writing thing(s) lets me talk about a group of thing instances using the plural w/o making the name confusing to myself.</p><p>I also obsess over whether to name something with the plural outright. This comes up a lot in table names. I tend to want to use the singular unless there's a reason not to.</p>
Paul SomeoneElse<p><a href="https://mastodon.sdf.org/tags/techpost" class="mention hashtag" rel="nofollow noopener" target="_blank">#<span>techpost</span></a></p><p>I don't believe in making custom Exception types for everything, and I don't like the craze of adding types to everything in python.</p><p>Like if you do this in the middle of a function:<br>var1: str = "my string"</p><p>I will think: "there is this great language go ..."</p><p>I do like pydantic, and using types in certain places, and _some_ function definitions.</p><p>Or I guess this typing stuff is good as a guardrail that we hit and bounce away from.</p>
Amber :neodog_box:<p><span>kitsunes.club is playing that old game... <br><br>99,999 inbound jobs on the queue, 99,999 inbound jobs.<br>Take one down and process it, 101,203 inbound jobs on the queue.<br><br></span><a href="https://transfem.social/tags/shitpost" rel="nofollow noopener" target="_blank">#shitpost</a> <a href="https://transfem.social/tags/techpost" rel="nofollow noopener" target="_blank">#techpost</a></p>
Amber<p><span>my experience after finding out despite putting in fedora installer CDT (America/Chicago) that GNOME changed my timezone to EDT (America/New York)<br><br></span><a href="https://transfem.social/tags/techpost" rel="nofollow noopener" target="_blank">#techpost</a> <a href="https://transfem.social/tags/shitpost" rel="nofollow noopener" target="_blank">#shitpost</a></p>
Amber<p><span>rm -rf? no it’s rm -fr. Stands for "for real", I want my files removed for real. <br><br></span><a href="https://transfem.social/tags/shitpost" rel="nofollow noopener" target="_blank">#shitpost</a> <a href="https://transfem.social/tags/techpost" rel="nofollow noopener" target="_blank">#techpost</a></p>
Amber<p>Okay, sysadmins (especially *nix) what are your favorite online tools that helped you learn syntax of things on your system? I'll start first, I never really understood cron syntax that well despite reading into it until one day hearing about <a href="https://crontab.guru/" rel="nofollow noopener" target="_blank">https://crontab.guru/</a> which just made it click for me. For my regular expressions this was also mostly true, I had a lot of difficulty understanding them without being able to play with them in <a href="https://regex101.com/" rel="nofollow noopener" target="_blank">https://regex101.com/</a><span>. It's less about knowing the exact syntax and more about having a visualization of what it does in my opinion. If anyone else has cool online resources like these that they'd like to share please do. (I'm going to just start my own tag for these types of posts) <br><br></span><a href="https://transfem.social/tags/techpost" rel="nofollow noopener" target="_blank">#techpost</a></p>