Skip to content

u/cycle2

In this archive from Feb 2009 to Aug 2023

0
posts
498
comments
0
media
1.4k
score

If the bot closes and opens the file continuously during its run, a janky way of doing this would be to write a cronjob that just overwrites it with shuffled contents. Otherwise, the best way would be to modify the bot's source code. There's no special magic you can use that will cause the open() syscall to modify the contents.

1 points

What made you interested in switching to Linux/working with it?

I was 13 at the time and was getting into building computers and basic server administration. Windows was everywhere. I started stumbling across screenshots of old GNOME and KDE desktops, became intrigued, got immersed in a subculture of memes surrounding Microsoft hate, then went down a rabbit hole of learning about Unix, BSD, and thought it would be cool to not use Windows. Linux was free with somewhat decent hardware support (RIP hotplug) so that's what I went with. This commercial from IBM then came out and it kind of blew up.

How long have you been using Linux?

20 years.

What has become your distro of choice? why?

Arch for personal use. It just...works? It's set up exactly the way I would expect a modern distro to be (bless PKGBUILDs). RHEL (or its clones) for enterprise servers because it's what I started using at my first job.

How has the experience of using Linux been?

This is accurate.

How do you communicate with the community, or its members?

Reddit, IRC, GitHub, and co-workers (some of which are authors and contributors of well-known open source projects).

What are some terms that a newcomer can learn in order to bridge the gap between seasoned members and newcomers?

Terms aren't important. It's having a fundamental understanding of how operating systems work; e.g. CPU scheduling, memory management, processes, etc.

What are some resources that someone who is trying to join the community can use to better understand the community?

How to Ask Questions the Smart Way

Anything thoughts or advice to add for newcomers?

First, don't get discouraged. You're going to come across a lot of angry and impatient people, and they're not worth your time. You're also going to come across concepts and software projects that make your brain hurt (some for good reasons, others not so much). Second, don't blindly copy paste commands into your terminal. Understand what they're doing first. Third, brush your teeth.

4 points

That sounds like pretty bad design for the standards, it feels like it lacks in backwards compatibility if I have to upgrade to connect to IPv6 addresses.

Because IPv4 is gross and attempting to add backward compatibility for it into the IPv6 header would be absolutely terrible. Here's the real problem: IPv4 was never built to be forward compatible. With all the spaghetti scenarios of trying to get IPv4 to speak to IPv6, it's easier to scrap it altogether. You never stated you didn't have an IPv4 address though (only that it "no longer works"). Is that the case? It's very rare for an ISP to not support dual-stack.

7 points

While I've personally not had the chance to use it yet, it sounds systemd-nspawn would work for what you're wanting to do. It uses containerization, much like Docker, except it makes running multiple processes easy (whereas Docker is typically meant for isolating one process at a time). It works a bit like chroot jails, only a bit beefier.

3 points

OpenSSL will display it in hex (typically separated using colons) if it's over a certain length. You can just convert it yourself to decimal - just remove the colons. In fact, you don't even have to use OpenSSL. For example, the M2Crypto Python module will return the decimal every time.

1 points

Rsyslog processes directives from top to bottom, and will continue until there's no directive left unless you use a stop. So, let's say you wanted to log everything to /var/log/everything, and then you only wanted to log kernel level messages to a remote, it would look something like:

*.* /var/log/everything
kern.* <remote address>

Because we're not specifying a stop anywhere after that first directive, the message will be used against the next one without affecting the previous directive.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.