1. 6

    the proc file system is great for all kinds of stuff: like determining where a process is in reading a file:

    https://gitlab.com/snippets/1757653

    Super useful when you have a process reading a massive file with no indication of progress.

    1. 3

      cp /proc/$pid/fd/$fd /tmp/important.conf is a classic sysadmin trick that I’ve actually used precisely one time to great applause (okay, extremely moderate appreciation).

      1. 1

        I recently found that one could actually see all the fd’s a process is using and now I am seeing this it’s so cool. I read a lot about “use strace, use ptrace” when do you actually use these? I work on small C projects and don’t really know when should I be using them.

        1. 2

          A few times recently I’ve wanted to know why a process wasn’t working properly. Looking at my bash history, I have run strace startx and strace openssl s_client -host rout.nz -port 443. If I remember correctly, I wanted to see the log output from startx which wasn’t being written to disk properly, and I wanted to see where openssl was looking for certificates.

          Both times I’m pretty sure I ran strace then grepped for things like open(, read(3 and write(3. There are probably better ways of doing this, but they worked for me both times.

      1. 3

        any crustaceans heading there? (assuming tickets…)

        1. 2

          yup, I will.

          1. 2

            yes! It will be my 11th congress

            1. 2

              If I manage to get a ticket, yes.

              I really want to iterate, even though it’s a way longer drive for me, Leipzig congress center is way way way better than Hamburg’s. I hope it will stay in Leipzig forever.

              1. 1

                I was sloppy and missed the ticket window last year, going to try harder this year (and prebooked hotel) - was pretty satisfied with Hamburg (much less so Berlin - the grumpy tone in some of the various queues the final year there was very discerning) so slightly hyped if Leipzig is even nicer.

                1. 1

                  I dunno, Leipzig is a bit too large for my taste. I liked the fact that I could easily run into people I know in Berlin and to some extend in Hamburg too, but it is impossible in Leipzig. It lost a bit of the “family gathering” vibe for me..

                  1. 1

                    according to Wikipedia, the Hamburg location had 12´000 visitors and 15´000 for Leipzig. Does not sound like a big difference

                    1. 1

                      a venue at capacity with 12000 people is something else than a entire fair ground with even more halls to use. The size difference between Hamburg and Leipzig is quite substantial.

                2. 2

                  If i can get a ticket yes.

                  1. 1

                    yes…

                1. 3

                  Jeebus, how were these engineers hired?!

                  Around 10:00 AM, someone asked when we were going to start the switch, and Mike chimed in helpfully, “We’ve already started reprovisioning the v3 servers.” We had so little capacity that we had decided to reimage all our existing servers and then reprovision them in the new software stack. This was clever from the perspective of reducing our costs, but the optimism it entailed was tinged with madness.

                  They literally had no rollback plan. None at all.

                  1. 2

                    While I’m usually a lot more conservative in my ops work, upon occasion it makes sense to take a no-prisoners approach.

                    In glorious people’s startup it takes more courage to rollback than to deploy! O_O

                    1. 1

                      It’s like the kids say nowadays, YOLO.

                    1. 4

                      I use Leuchtturm notebook: http://www.amazon.com/Leuchtturm-Medium-Notebook-Squared-LBL12/dp/B002CV5H4Y

                      The pages are numbered, and comes with a blank index at the beginning. Its pretty awesome.

                      As for my “random note during the day”, I use Remember the Milk on my phone https://www.rememberthemilk.com. They have a single icon widget that lets you instantly jot down anything that gets added to a list for future review.

                      1. 2

                        Thanks, this looks like exactly the kind of notebook for me.

                      1. 2

                        Unfortunately, long weekends and holidays are when infrastructure, websites, etc are the most vulnerable. Often there is a skeleton crew left, and often they come from the bottom of the engineering totem pole.

                        The ability to firefight is both hampered technically and logistically. I feel sorry for however much time Linode wasted escalating to the senior NOC network engineers.

                        1. 1

                          I can’t even begin to describe how much of a loss this has been. We honestly had (and have) developers who think that changing all the line-ending whitespace was really important. Or that whether there are some “legacy” K&R-style prototypes actually matters. These people go around committing non-functional changes, which makes source management (and specifically patching and merging) really painful, and which, unfortunately, also often breaks things accidentally. What’s worse is that sometimes they don’t even bother trying to compile it, much less test it. I wish I was making this up; I wish more that I had made these people go away a long time ago.

                          Unfortunately these people exist everywhere. They seek to make themselves look busy/important, while changing the code to make themselves feel more comfortable. Its the Peter Principle in code.