gchristensen changed the topic of #nixos-chat to: NixOS but much less topical || https://logs.nix.samueldr.com/nixos-chat
<qyliss> Useful discovery: systemd.directives(7)
<samueldr> oof
<samueldr> ooh*
<qyliss> No longer must I guess which man page a systemd directive is listed in
<gchristensen> qyliss: aoeunthaonsethasonthesnaothesuntaoheutao WOW yeS!
<ashkitten> gchristensen: is that dvorak keymash?
<gchristensen> yeah
<ashkitten> nice
<samueldr> but on a qwerty keyboard to confuse people
<gchristensen> hah!
<ashkitten> im glad i can recognize different keymash patterns for various layouts
<worldofpeace> ashkitten: same
<gchristensen> one day I will learn how to keymash in qwerty on dvorak
wildtrees has quit [Quit: Leaving]
<worldofpeace> oops, uploaded that to the wrong channel 🤣
<worldofpeace> carry on
<gchristensen> fwiw I don't see anything here
<worldofpeace> oh, I guess if someone is using matrix they wil see it
<gchristensen> hehe
<samueldr> pro-tip: gcc ./demo is not analogous to gdb ./demo and may confuse the heck out of you
das_j has quit [Remote host closed the connection]
ajs124 has quit [Remote host closed the connection]
ajs124 has joined #nixos-chat
das_j has joined #nixos-chat
buckley310 has quit [Quit: The Lounge - https://thelounge.chat]
buckley310 has joined #nixos-chat
<colemickens> Do people ever talk about regretting or removing home-manager or do most people stick with it?
<samueldr> do you or are you not a convert yet? (I'm not using home-manager fyi)
drakonis has quit [Ping timeout: 252 seconds]
endformationage has quit [Ping timeout: 240 seconds]
buckley310 has quit [Quit: The Lounge - https://thelounge.chat]
buckley310 has joined #nixos-chat
<makefu> colemickens: for me it simply became part of the nixos system configuration. there is no reason why to remove it. at work i am using home-manager to get at least a bit of sane system management on a centOS host
Jackneill has joined #nixos-chat
<talyz> qyliss: wow, that's great! :D
__monty__ has joined #nixos-chat
waleee-cl has joined #nixos-chat
psyanticy has joined #nixos-chat
<gchristensen> spacex launch in 1min https://www.youtube.com/watch?v=1KmBDCiL7MU
<Taneb> gchristensen: more and more it's getting "SpaceX is launching again, I guess"
<gchristensen> heh
<Taneb> Which I suppose is SpaceX's mission statement
<__monty__> Nice landing.
<yorick> > SpaceX’s two fairing recovery vessels, “Ms. Tree” and “Ms. Chief,”
<{^_^}> error: syntax error, unexpected $undefined, expecting ')', at (string):277:7
<yorick> thanks
drakonis has joined #nixos-chat
<gchristensen> Taneb: growing up next to cape canaveral I find them pretty emotional still ;_;
<sphalerite> > “nix should totally support oriented quotation marks”
<{^_^}> error: syntax error, unexpected $undefined, at (string):277:1
<sphalerite> > „or the German variant“
<{^_^}> error: syntax error, unexpected $undefined, at (string):277:1
<sphalerite> > « or the French one »
<{^_^}> error: syntax error, unexpected $undefined, at (string):277:1
<gchristensen> sgtm
<sphalerite> > »or the other German one«
<{^_^}> error: syntax error, unexpected $undefined, at (string):277:1
<sphalerite> _none_ of them are supported?
<gchristensen> > let how-about = ​the zero width space for a quote marker?​; in how-about
<{^_^}> error: syntax error, unexpected $undefined, at (string):277:17
<sphalerite> > do non-breaking spaces count as whitespace?
<{^_^}> error: syntax error, unexpected $undefined, expecting ')', at (string):277:3
<sphalerite> > concatStringsSep " " [1 2 3]
<{^_^}> error: syntax error, unexpected $undefined, expecting ')', at (string):277:17
<sphalerite> > concatStringsSep " " [1 2 3]
<{^_^}> cannot coerce an integer to a string, at (string):277:1
<sphalerite> RFC time I guess.
<gchristensen> let ​= "hi"; in ​
<gchristensen> > let ​= "hi"; in ​
<{^_^}> error: syntax error, unexpected $undefined, at (string):277:5
<gchristensen> good
drakonis has quit [Ping timeout: 252 seconds]
wildtrees has joined #nixos-chat
endformationage has joined #nixos-chat
<samueldr> nah, unexpected undefined is annoying me to no end, see, [] and {} are written with Alt Gr on my layout
<samueldr> Alt Gr + Spance is a non-breakable space
<samueldr> I often use space near those symbols
<samueldr> hand coordination is not hte best
<gchristensen> anyone know how the heck I can do convert an integeter timestamp to a time_t in C? :| (reproducible builds related)
<gchristensen> I'm seeing a bunch of C++ options but I'm not in C++
<__monty__> C needs a hoogle.
<gchristensen> haha yeah
<gchristensen> the exact thing I'm wanting to do is replace gmtime(&time) with gmtime(12341234)
<samueldr> gchristensen: maybe look at the source code for libfaketime?
<samueldr> it seems C enough, and likely to do int to time_t?
<gchristensen> oh boy
<samueldr> looking, but not sure
<Taneb> Does time_t foo = 12341234; gmtime(&foo); work?
<gchristensen> let's see!
<gchristensen> okay here comes a nice patch
<gchristensen> quality patching: sed -i -e "s#time_t stamp#time_t stable_stamp = $SOURCE_DATE_EPOCH; time_t stamp#" -e "s#gmtime (\&stamp)#gmtime (\&stable_stamp)#" doc/mkdefsinc.c
<tilpner> gchristensen: Shouldn't that be an actual patch, to fail loudly if it ever stops applying?
philipp[m] has joined #nixos-chat
<gchristensen> probably
<gchristensen> "what are the benefits of a self-verifying test program?" -- on a webinar about UEFI testing
<gchristensen> tilpner: yes I 100% agree :) I'll switch to that
<tilpner> gchristensen++
<{^_^}> gchristensen's karma got increased to 199
<tilpner> You're so close to getting a second t-shirt from yourself
<gchristensen> lol
<gchristensen> man I should really follow-up and do that
<tilpner> The verification part sounds tedious
<ashkitten> samueldr: have i asked you about ofono before?
<ashkitten> i can't remember now
<samueldr> I don't know if you did
<ashkitten> i see there's a nixos module in nixpkgs for it
<ashkitten> is that enough to get telephony working?
<samueldr> I don't know yet about it much
<samueldr> I guess it depends on if ofono is setup to work with the hw
<philipp[m]> \o/ Finally managed to get this room working again.
<jtojnar> ashkitten I was trying to make it work with ofono-phonesim but did not figure out how does it works
<ashkitten> samueldr: does that mean configuration or writing support?
<samueldr> both I guess
<philipp[m]> For anybody using emacs/tramp and sometimes has trouble with it parsing remote ports: There is an un(der) documented method calle scpx.
<philipp[m]> It does what scp does but calls /bin/sh for it.
<gchristensen> dang, it still uses bad dates.
<gchristensen> okay, giving up for now.
<ashkitten> jtojnar: is that phone simulation or phone sim card
<ashkitten> idk what ofono-phonesim is
<samueldr> ashkitten: I'm not yet at that point in my work, once I'll be I think it'll be quite quick to know
<ashkitten> that's good
<ashkitten> i hope it goes smoothly! what are you currently working on with nixos-mobile?
<samueldr> working on boot / early boot stuff
<jtojnar> ashkitten IIRC it is a misnomer and it is used to test real modems
<samueldr> some of the coming work will be easier if I can just boot into an older generation when things fail
<ashkitten> definitely
<ashkitten> jtojnar: oh huh
<jtojnar> I read something about creating virtual HSF devices or something so it might work for simulation too
<jtojnar> but did not crack it yet
<ashkitten> also, do we have plasma mobile packaged?
<jtojnar> also related, I patched ofono to be able to load modem-manager-gui module but did not test it
<samueldr> ashkitten: not yet
<samueldr> there was some early exploratory work though IIRC
<ashkitten> gotcha
<gchristensen> love that gnupg doesn't build reproducibly
Jackneill has quit [Remote host closed the connection]
<ashkitten> samueldr: ah, the latest cosmo announcement posted 2 hours ago says they are in fact working on an in-house ota updater
<samueldr> eek
<samueldr> hopefully it's not *that* in-house
<samueldr> and relies on better known OTA installers, IIRC lineageos has one?
<gchristensen> if it is super in-house, I feel confident you will be able to make it in-your-own-house
<samueldr> because it would be a shame if they accidentally made it in a bad way
<ashkitten> i don't know, but it can't be worse than trusting digitime
<samueldr> sure
<ashkitten> doesn't really matter too much as i can't see myself using android on that thing
<gchristensen> if anyone wants to try their hand at this, I'm tired: https://github.com/NixOS/nixpkgs/pull/78781
<{^_^}> #78781 (by grahamc, 23 seconds ago, open): gnugp22: try to fix dates (r13y)
<ashkitten> i wish numeronyms would go away
<gchristensen> o0k
<ashkitten> they're so confusing and i10e (inaccessible)
<infinisil> > numeronym "ashkitten"
<{^_^}> "a7n"
<ashkitten> i didn't realize what r13y was for like
<ashkitten> an entire year
<gchristensen> that is impressive, I think I only registered it 51 weeks ago =)
<cransom> fun story from a different life. a friend was at a matrix (yes, the movie) themed company. their windows domain controller was called neo. the boss decided one day that it should really be named ne0 and didn't tell anyone. it took down the domain for a day until someone figured it out.
<gchristensen> cransom: :o :D
<jtojnar> gchristensen would https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=806494 not work?
<ashkitten> gchristensen: idk, maybe not an entire year. i have no sense of time
<ashkitten> but i didn't get what it was until like a month or 2 ago
<gchristensen> jtojnar: let's try it!
<gchristensen> jtojnar: though 1.4 vs 2.2, so not sure
<samueldr> there may be an updated patch there
<samueldr> not sure if you're used to the way debian does their thing
<gchristensen> doesn't seem they need the patch anymore
<jtojnar> samueldr++
<{^_^}> samueldr's karma got increased to 157
<gchristensen> yeah, yatm already uses SOURCE_DATE_EPOCH in 2.2
<ashkitten> i've seen a lot of my friends complain about numeronyms being an accessibility issue, too. so it's definitely not just me
<samueldr> basically debian has clones of every project they patch, with the added debian folder where the build instructions and patches reside
<samueldr> yeah, poor discoverability is a type of accessibility issue (in the overloaded accessbility word)
<gchristensen> yeah
* samueldr can't type right today
<gchristensen> > numeronym "numeronym"
<{^_^}> "n7m"
<gchristensen> > numeronym "show results"
<{^_^}> "s10s"
<gchristensen> ashkitten: in your honor: https://twitter.com/grhmc/status/1222584635210772482
<ashkitten> aaaaa
<jtojnar> like on GitHub
<gchristensen> jtojnar: yeah
<gchristensen> I thought I was short-circuiting that, though, jtojnar, by forcing the generating program to print SOURCE_DATE_EPOCH-based date
<gchristensen> > map numeronym [ "feedback" "from" "people" "who" "find" "numeronyms" "inaccessible" ]
<{^_^}> [ <CODE> <CODE> <CODE> <CODE> <CODE> <CODE> <CODE> ]
<samueldr> jtojnar: anyway it looks like they rewrote history for the debian/master branch
<gchristensen> > :p map numeronym [ "feedback" "from" "people" "who" "find" "numeronyms" "inaccessible" ]
<{^_^}> [ "f6k" "f2m" "p4e" "w1o" "f2d" "n8s" "i10e" ]
<samueldr> (or I didn't go back far enough)
<samueldr> didn't go back far enough
<samueldr> dang relative dates mixed with non-relative dates throwing me off
<samueldr> literally mixed up with no rhyme or reason :|
<gchristensen> heh.
<gchristensen> samueldr: how human-readable!"
<samueldr> sure, I can read it
<samueldr> but I don't understand 3 years ago
<gchristensen> and friendly
<samueldr> especially if they do it the debian way where it can be what I would describe farther in the past
<samueldr> I saw, this month, a commit from 2018 listed as "a year ago" :(
<gchristensen> :|
<samueldr> I thought computers were good at maths
endformationage has quit [Ping timeout: 240 seconds]
<gchristensen> its two-bit math skills aren't so praiseworthy
<jtojnar> numeronyms are not any less accessible than any other abbreviations or acronyms, I would say that the same rules should apply to them
<jtojnar> (use sparingly, in places where they make sense from context, or were introduced, and do not make your own)
<gchristensen> I find the common numeronyms to be quite nice, actually, since they are easy to search the internetfor
<gchristensen> oh cool, samueldr, will try
<jtojnar> > numeronym "common sense"
<{^_^}> "c10e"
<samueldr> looks like they simply moved the patch around
<joepie91> > numeronym "no"
<{^_^}> "n0o"
<samueldr> > numeronym "color scents"
<{^_^}> "c10s"
<joepie91> > numeronym n
<{^_^}> undefined variable 'n' at (string):277:11
<joepie91> errr
<samueldr> oops, sense ends in e
<joepie91> > numeronym "n"
<{^_^}> "n-1n"
<gchristensen> lol
<joepie91> a QA tester walks into a bar... :P
<tilpner> > numeronym ""
<{^_^}> negative start position in 'substring', at (string):156:102
<joepie91> wrong results are much more fun than errors :D
<tilpner> Yes, I was hoping for "-2"
<gchristensen> > numeronym pkgs.gnupg22.meta.longDescription
<{^_^}> "T596\n"
<gchristensen> now there is a numeronym for the ages
<samueldr> I like how it ends with \n
<samueldr> > numeronym " "
<gchristensen> haha yes
<{^_^}> " -1 "
<tilpner> > numeronym "​"
<{^_^}> " -1 "
<gchristensen> > numeronym "​​"
<{^_^}> " 0 "
<gchristensen> tilpner: =)
<samueldr> > numeronym "💩"
<{^_^}> "©-1©"
<gchristensen> oh very nicely done
<samueldr> the good ol' bag of bytes is a string type
<tilpner> > nuneronym
<{^_^}> undefined variable 'nuneronym' at (string):277:1
<tilpner> "n̵̨̧̧̡̧̡̢̛̛͖̭̰̟̗̖͔̦͓̱̖̫̭̳̲̰͉͇̺̱̣̙̺̲̭̦̪̘̗̫̳͔̺͇̥̰̤̞̬̘̝̙͈̳̯̳͍̰̜̜͔̮̜̺͕͈̺̘̤̋̆͆͌̄͑̈̽͂̆̈́̔͋̎̓̇̀̊͌̇̈̾̿̾̒͒͗̒̓͒͗̈́͗̃̍̅̾̓͘͜͜͝ͅǐ̵̛̉́̌̏̽̉̈́̍́̈́̃̓̅̇̿͐̍̓̌̏̽̉͗́̈̍̓͌͌̆̇͂̓̈́̓̆̉͗̊̅̏̍̈́́̾̈̈́͊̿̓̋̉̽͊̎͂̔͂̐̋͆̋̒̾̽̎̄̅̌͗̅͘̕͘̚̕͝͝͠͝
<tilpner> ̨̧̛̛̛̳͕͙̟̮̦̹̈́́͌̈́͊͆̂̽̒͒̏͗͒̍̈́̓͗̿́̋̄͐̎̽͑̌͐̔͑̀́̑͂̅͑͂̔̓̑̿͑̈̇̌̏̒̇̽̉̽̇́̃͋̓͌́̃̐̓͆̈́̑̆̆̏̂͋̅̐̍̿̀̽̒̽̉͛̀̍̊̽͛̐̎͂̍̈́̓͌͆̑̋͆͌̽͑́̋̀́̄̄̀̿͗̐̈̀̔̓͊̐̿̽͛̒̽͌̀̍̿͒̾̾̔̋͒̄̈͆̒͋͊͊̎̍̈́̌͂͋̀̄̀̽̃̓̈̔̂̋̅́͐̿͂̅̌̅̍̓̚̚̕̕̚͘͘̚͘͘̕͘͘͠͝͝͝͝͝͝͝͠͠͠
<tilpner> ̨̢̧̡̧̡̢̨̡̨̧̧̡̢̨̪̠͕͈̯̺̺̞̠̝̦̪̦̰̥͚̮̮͕̲̜̫̗̞̬͓̩̣̟͕̼̞͇͓͉͉̬͕̘̙̦͖̥͇̻̯̟̬̲̣͖̞̗̲̱̬͈͉̖͉̫̻͔̹͎̫̰͓͖̪͚̝̱̦̼͍͎̪̹̹̲̞̟̱͎̙̹̼̺̬̭͎̻̰͔̯̼͚͓̟̦̝̝͙̥̣̳̮̮͙͕̭̙̻̲͎̬̬̮̗̰̯̙͕̲̜̥̙͚͙̘̮͕̘̹̺̘̜̯̱͓̠̦͈̗̻̳̤̪̖̫͇͍̜̜͎̝̤̣̟̞̦͔̲͕̳̞͚̮̤̜͍͜͜͜͜͜ͅͅͅͅͅͅ
<tilpner> ̡̨̧̞͕̰͖̺̣̼̰̯̥͍̟̹͖̮̮̦̤̝̥͓̼̻̟̻͖͜ͅẋ̴̡̨̨̨̢̢̢̢̢̡̢̡̢̛͎̲̱̻̙͔̲̳̦͙̮̟̲̲͓͚̤̲̞̰̪̖̯̙̺̖̦̤̯̗͖͓͙̮͖̼̟̫̮̬̦̬̲̥̠̮̦̦̝̯̮̙̮̠͎̗̲͎̬̺̱͕͈͔͔̩͓̬̹͖͎̤̭̱̙͔̬̼̥͓͙̘̫̘͔͓̠̘͉̦͈̼̅̌̉̇̈́̿̈̄̓̈́͗͐̐̾̔̃̄͐̈̏̅̀̆̒̆̏̔̂̂͛͐͌̏͌̓̊̎̿̇͆̿͊͆̕͘͘̚̚͜͜͜͜͜͝͝͠ͅͅͅ
<samueldr> tilpner: oops?
<tilpner> ̢̧̢̢̧̭̝͕̹̦̬͎̬͕͙̖̫̭̦̖͉͕̹͙͖̻̭̭̦͖͕͉̰̗͔̲͙̠̪̞̯̱͓̹̘̲̙̙͜"
<tilpner> > numeronym
<{^_^}> <LAMBDA>
<tilpner> "n̵̨̧̧̡̧̡̢̛̛͖̭̰̟̗̖͔̦͓̱̖̫̭̳̲̰͉͇̺̱̣̙̺̲̭̦̪̘̗̫̳͔̺͇̥̰̤̞̬̘̝̙͈̳̯̳͍̰̜̜͔̮̜̺͕͈̺̘̤̋̆͆͌̄͑̈̽͂̆̈́̔͋̎̓̇̀̊͌̇̈̾̿̾̒͒͗̒̓͒͗̈́͗̃̍̅̾̓͘͜͜͝ͅǐ̵̛̉́̌̏̽̉̈́̍́̈́̃̓̅̇̿͐̍̓̌̏̽̉͗́̈̍̓͌͌̆̇͂̓̈́̓̆̉͗̊̅̏̍̈́́̾̈̈́͊̿̓̋̉̽͊̎͂̔͂̐̋͆̋̒̾̽̎̄̅̌͗̅͘̕͘̚̕͝͝͠͝
<tilpner> ̨̧̛̛̛̳͕͙̟̮̦̹̈́́͌̈́͊͆̂̽̒͒̏͗͒̍̈́̓͗̿́̋̄͐̎̽͑̌͐̔͑̀́̑͂̅͑͂̔̓̑̿͑̈̇̌̏̒̇̽̉̽̇́̃͋̓͌́̃̐̓͆̈́̑̆̆̏̂͋̅̐̍̿̀̽̒̽̉͛̀̍̊̽͛̐̎͂̍̈́̓͌͆̑̋͆͌̽͑́̋̀́̄̄̀̿͗̐̈̀̔̓͊̐̿̽͛̒̽͌̀̍̿͒̾̾̔̋͒̄̈͆̒͋͊͊̎̍̈́̌͂͋̀̄̀̽̃̓̈̔̂̋̅́͐̿͂̅̌̅̍̓̚̚̕̕̚͘͘̚͘͘̕͘͘͠͝͝͝͝͝͝͝͠͠͠
<tilpner> ̨̢̧̡̧̡̢̨̡̨̧̧̡̢̨̪̠͕͈̯̺̺̞̠̝̦̪̦̰̥͚̮̮͕̲̜̫̗̞̬͓̩̣̟͕̼̞͇͓͉͉̬͕̘̙̦͖̥͇̻̯̟̬̲̣͖̞̗̲̱̬͈͉̖͉̫̻͔̹͎̫̰͓͖̪͚̝̱̦̼͍͎̪̹̹̲̞̟̱͎̙̹̼̺̬̭͎̻̰͔̯̼͚͓̟̦̝̝͙̥̣̳̮̮͙͕̭̙̻̲͎̬̬̮̗̰̯̙͕̲̜̥̙͚͙̘̮͕̘̹̺̘̜̯̱͓̠̦͈̗̻̳̤̪̖̫͇͍̜̜͎̝̤̣̟̞̦͔̲͕̳̞͚̮̤̜͍͜͜͜͜͜ͅͅͅͅͅͅ
<tilpner> ̡̨̧̞͕̰͖̺̣̼̰̯̥͍̟̹͖̮̮̦̤̝̥͓̼̻̟̻͖͜ͅẋ̴̡̨̨̨̢̢̢̢̢̡̢̡̢̛͎̲̱̻̙͔̲̳̦͙̮̟̲̲͓͚̤̲̞̰̪̖̯̙̺̖̦̤̯̗͖͓͙̮͖̼̟̫̮̬̦̬̲̥̠̮̦̦̝̯̮̙̮̠͎̗̲͎̬̺̱͕͈͔͔̩͓̬̹͖͎̤̭̱̙͔̬̼̥͓͙̘̫̘͔͓̠̘͉̦͈̼̅̌̉̇̈́̿̈̄̓̈́͗͐̐̾̔̃̄͐̈̏̅̀̆̒̆̏̔̂̂͛͐͌̏͌̓̊̎̿̇͆̿͊͆̕͘͘̚̚͜͜͜͜͜͝͝͠ͅͅͅ
<tilpner> ̢̧̢̢̧̭̝͕̹̦̬͎̬͕͙̖̫̭̦̖͉͕̹͙͖̻̭̭̦͖͕͉̰̗͔̲͙̠̪̞̯̱͓̹̘̲̙̙͜"
<gchristensen> I wonder if tilpner knows this is happening this way
<srk> lol
<gchristensen> you can't zalgo me, tilpner
<srk> he's trying to break our terms :D
<tilpner> I think weechat breaks this
<samueldr> somehow, text rendering is broken enough in my client that I didn't know it was zalgo
<tilpner> weechat makes you navigate through the invisible characters if you use arrow keys
<tilpner> (well, not invisible, you know what I mean)
<srk> it's kind of animated here
<tilpner> > numeronym "ṅ̷̛̺́į̶̠͆x̷̙͉̼̌̍̈̒"
<{^_^}> "n18<"
<srk> when I switch windows
<tilpner> There we go
<tilpner> The three "characters" I pasted above exceeded the max IRC line length, multiple times
<infinisil> Somebody write a nix unicode library!
<infinisil> These broken numeronyms are unacceptable!
<gchristensen> infinisil: I'll buy you the unicode spec
<gchristensen> it is a joke referring back to when I offered to buy infinisil the ISO-8601 spec
* infinisil pretends to remember that
<samueldr> I want the keyboard one... but not really, I would prefer if someone unknown liberated it somehow
<tilpner> Huh, 8601 was reviewed in 2019
<tilpner> I don't suppose they publish a changelog online...
<samueldr> that would be too helpful
<samueldr> but IIRC ISO standards *have* to be reviewed with regularity
<tilpner> They do!
<samueldr> how else would they keep the steady stream of income?
<samueldr> oops, too cynical
<gchristensen> infinisil: ISO-8601 formatted, it was P16W5D ago. also known as 2019-W40-4.
<infinisil> Hehe
<tilpner> gchristensen: Do you have any disk monitoring set up and linked to prometheus?
<gchristensen> jtojnar, samueldr: still getting today's date in the man pages
<samueldr> aw
<gchristensen> tilpner: of what sort?
<tilpner> gchristensen: Early warnings on bad SMART stats rising, I suppose
<gchristensen> ah
<gchristensen> I don't really know what I'm doing there
<gchristensen> but let me show you what I do
<gchristensen> tilpner: https://github.com/grahamc/network/blob/master/ogden/smartmon.sh but I still don't really know what to do with the data, and haven't hooked it up to alerting. that code is from https://github.com/prometheus/node_exporter/pull/1050 which I don't really care enough to address the hilariously trivial last couple steps
<{^_^}> prometheus/node_exporter#1050 (by grahamc, 1 year ago, closed): smartmon.sh: Shellcheck, and support more OSes
<yorick> does {^_^} have special code for github links?
<gchristensen> yeah
<gchristensen> tilpner: https://snapshot.raintank.io/dashboard/snapshot/jDMI4w5pUBt7b2hKceR4vzb1QlMlhfTo this dashboard is some pre-made thing from the grafana dashboard database
<gchristensen> I really just don't know about smart stuff enough, I guess
<tilpner> gchristensen: Hmm, that's a lot more data than I wanted to handle :)
<gchristensen> tilpner: yeah, the thing about SMART, to me, is it gives me a bunch of data I don't know what to do with.
<gchristensen> and really whaht I want is just a "hey something is fishy, maybe you should buy a new disk."
<tilpner> gchristensen: The plan I have/had till now, was to modify the smartd module to run a script instead of sending an email, and then pass this notification to prometheus via textfiles, but it's not really how prometheus is meant to be used
<gchristensen> it does expose smartmon_device_smart_healthy but I don't know if that would go from 1 to 0 before things were severely unhealthy
<tilpner> That would get me out of defining what an emergency looks like though
<gchristensen> true, setting up some alerts on that would be good I suppose
<gchristensen> the thing about having smartd run the script is the script will only run when things are bad, and it is hard to be sure it will actually work
<gchristensen> running it every few minutes, you get a promise that it is still working (assuming you export metrics about when the data is from, and alert on that data becoming old -- an important step since textfile exporters can fail and the data is still being loaded)
<tilpner> Yes, you make good points. Thank you for the scripts, I'll try to understand what it does :)
<samueldr> there's this one thing I haven't really been able to find much about grafana/prometheus
<gchristensen> tilpner: yep! if you take a further look, would you mind taking over my PR and try to get it merged? :P
<samueldr> let's say I want to collect data on e.g. my laptop, but have it on a centralized dashboard, and that dashboard is only locally accessible when I'm home
<samueldr> is there a good strategy?
<samueldr> does it just implicitly happen?
<gchristensen> samueldr: prometheus scrapes all the metric exporters a few times a minute (configurable.) you'd need to make it so your prometheus can always scrape your laptop no matter where you are. I do that with a wireguard tunnel
<samueldr> hm, bummer
<gchristensen> yeah?
<samueldr> I would have preferred that the device keeps the data locally, and push it to be graphed
<samueldr> I should really look in that 19.09 regression in the munin module
<samueldr> or uh, just see if it has been solved already
<gchristensen> samueldr: prometheus strongly prefers the pull model. you might prefer influxdb which uses a push model
<tilpner> gchristensen: I will make no such promises c.c
<gchristensen> tilpner: sure :)
<samueldr> I only said prometheus since it seems used across the board
<samueldr> but in reality I want to graph data prettily
<gchristensen> samueldr: one reason prometheus prefers pull is a failed scrape is usually an indication of a problem, but it is more tricky to instrument lack of data being pushed in
<samueldr> I don't think I actually need prometheus
<samueldr> I think I need whatever munin does, but graphed in grafana
<gchristensen> yeah but also transferrable skills and advantages of every other infra nerd writing exporters for things like their cable modem https://github.com/ipstatic/surfboard_exporter
<samueldr> my need is not alerting or fancyness, but really pretty graph of my usage
<tilpner> I don't actually use grafana anymore, but the (very annoying) alerts from alertmanager are useful
<samueldr> mostly for "oh, look, I finally used about a third of the RAM of my woefully overspecced builder"
<gchristensen> yeah, prometheus doesn't really do alerting :P
<tilpner> Just the "there is a failed systemd service" alert even
<samueldr> I only want pretty graphs that a raspberry pi can show later :)
<gchristensen> anyway, I'm not going to push you to prom
<gchristensen> but moving with the herd sometimes is useful
<tilpner> samueldr: Does netdata do what you want?
<samueldr> I don't know
* samueldr checks
<tilpner> Lots of pretty graphs, not useful for much else
<gchristensen> samueldr: also I do have a self-interest in you using prom, actually, which is you can help with the infra =)
<tilpner> And just a services.netdata.enable away
<samueldr> gchristensen: I'm not dismissing prometheuse outright, simply that it's not the use case I have for right now
<gchristensen> not inerested in a wg tunnel?
<samueldr> not necessarily for or against, but not interested in working that way for that silly need, since what I want is for sillyness and not for real use
<gchristensen> ah
<samueldr> it's more of an informal data aggregation than actual logging for my personal use machines
<samueldr> on serverey machines I would use the real deal though and will look at some point
<gchristensen> I've found it quite fun to have a prom. it is easy to write a little data exporter and graph data without much work.
<gchristensen> I have a SDR recording my gas and electricity usage every minute
<tilpner> Software-defined radio?
<samueldr> it's really more about the use case of just recording the data of my personal usage machines and showing it for fun
<gchristensen> yeah
<samueldr> gchristensen: here's a page where scrolling is bad in firefox https://www.netdata.cloud/ (ref discussion a couple days ago)
<jtojnar> wut, I am getting some spam from "github musicians"
<samueldr> only when the animation is visible, just like I observed on "edgy" blogs with "meme gifs" strewn across
<ashkitten> :p
<gchristensen> yes it is bad, haha, samueldr
* jtojnar uploaded an image: fractal-pasted-image (105KB) < https://matrix.org/_matrix/media/r0/download/matrix.org/qNpioQefuraTcfwlaClbmYjL >
<ashkitten> tfw you need a sick animation for your event
<__monty__> infinisil: Spotted a markdown failure in the wild! : o http://ix.io/28Ex
drakonis has joined #nixos-chat
<yorick> ah, yes, io<em>urine
<infinisil> :)
<__monty__> infinisil: Dependes on the extensions you'll add to it I guess.
<infinisil> I'd hope none of them make it commormark uncompliant
<infinisil> Wondering how the thing you posted came to be
<infinisil> I mean what tooling they used
psyanticy has quit [Quit: Connection closed for inactivity]
<infinisil> The intro of this is so juicy! https://www.youtube.com/watch?v=ucrJGjTjWdM
<__monty__> I have no idea. It's in a FOSDEM schedule ical file.
<drakonis> ah fosdem.
<drakonis> this year's full of cool stuff
<drakonis> hrm, brb.
drakonis has quit [Quit: WeeChat 2.6]
<gchristensen> speaking of numeronyms, it took me like 15 years to learn how to take "gitworkflows(7)" and convert that in to arguments to `man`
drakonis has joined #nixos-chat
<infinisil> gchristensen: My attempt: sed 's/\(.*\)(\([0-9]\))/\2 \1/'
<gchristensen> :|
<gchristensen> ( ._.)
<infinisil> xD
* infinisil has been dabbling in sed and awk recently
<gchristensen> nice
<gchristensen> I remember when I read the awk book, it felt like a watershed moment in my career
<samueldr> man page sections can be other things than numbers in practice
<samueldr> 1M, n, x, p
<gchristensen> :o
<gchristensen> neat
<gchristensen> BEGIN { ORS="\n" } should handle the newlines
<gchristensen> maybe more complicated than that
<samueldr> man 1p cd
<gchristensen> huh.
<infinisil> Correction then: sed 's/\(.*\)(\(.*\))/\2 \1/'
<infinisil> Ah yes, a beautiful regex, just as we like it
<gchristensen> swapping / for # might make it easier to read and avoid some of the \/ soup
<infinisil> +1
<samueldr> depends on the regex syntax!
<gchristensen> sed =)
<samueldr> oh, right, missed the sed
<samueldr> I hate when you can't somehow escape the slashes when it's part of a programming language
<infinisil> Alternative with ripgrep: rg '(.*)\((.*)\)' -or '$2 $1'
<__monty__> samueldr: Should the packaging bug be clear from that page alone?
<samueldr> not necessarily :)
<samueldr> but the URL should help
<samueldr> man pages need to be in a subdir of the man dir AFAIK
<__monty__> It was under man/store/....?
<samueldr> /share/man/tmsu.1.gz rather than /share/man/man1/tmsu.1.gz
<__monty__> I remember reading about the non-numeric sections very recently. Afaik they were pretty limited to one or a couple unices.
<samueldr> in practice it's in-use by some speciality sections, like tcl, or as you can see, posix manpages
<samueldr> this way you can both look at man 1 cd and man 1p cd
<__monty__> Wiki is very vague about it : )
<__monty__> Hmm, neither macOS nor my NixOS seem to have a 1p section.
<tilpner> __monty__: You probably don't have posix_man_pages installed
<tilpner> > posix_man_pages.meta.description
<{^_^}> "POSIX man-pages (0p, 1p, 3p)"
<__monty__> Ah, that'll be it.
<samueldr> that's exactly it
<tilpner> Very useful, though I still struggle a lot with "now where's the manpage that tells what fields are guarenteed to be in this struct"
<tilpner> And sometimes it ends with a text search through all available man pages :(
<__monty__> I really don't like man's discoverability.
<__monty__> And its complete lack of references between pages.
<samueldr> nix-locate -r 'share/man/' | cut -d '/' -f 7 | sort -u | grep -v '^[a-z][a-z]\(_[A-Z][A-Z]\)\?\(\..*\)\?$'
<samueldr> this strips language-specific folders from the output
<samueldr> mostly
<samueldr> you can spot a couple packaging bugs in there :)
<samueldr> just checked with rox, which I have installed globally
<samueldr> No manual entry for rox
<tilpner> Huh, vim can edit .gz files directly
<tilpner> Not that I would edit .gz manpages in the store
<samueldr> nix-locate -1r 'share/man/[^/]+.gz' # for a list of hopefully trivial to fix packages
__monty__ has quit [Quit: leaving]
<samueldr> gosh nix-locate is amazing at getting a holistic view of nixpkgs build artifacts <3 bennofs
<{^_^}> bennofs's karma got increased to 1
<infinisil> We do have this neat `installManPage` function since recently
<samueldr> (aw, I guess the [m] variant of bennofs hoards all the karma
<infinisil> Oh! That's like the perfect usecase for a union-find datastructure
<samueldr> of a what now?
<infinisil> Managing which nicks belong together
<samueldr> oh, I thought it was about man pages
* infinisil should've indicated that
<samueldr> I really like using nix-locate and good regexes to find things like what package provides a particular theme
<samueldr> nix-locate -r 'share/themes/[^/]+$'
<infinisil> Yeah nix-locate is awesome, bennofs[m]++
<{^_^}> bennofs[m]'s karma got increased to 5
Jackneill has joined #nixos-chat
<samueldr> throw in a --top-level to my previous command for better results
Jackneill has quit [Remote host closed the connection]
waleee-cl has quit [Quit: Connection closed for inactivity]
<colemickens> someone recommending a forked python lib renamed from 'x' to 'python-x' and I'm confused on how this is meant to be helpful
<colemickens> reminds me of when there are rust-x and x-rs or when a crate repo name doesn't match its published names. why not just try to not make things confusing for lib consumers? Classic computing problems I guess
aminechikhaoui has quit [Quit: The Lounge - https://thelounge.github.io]
aminechikhaoui has joined #nixos-chat
aminechikhaoui has quit [Client Quit]
aminechikhaoui has joined #nixos-chat
jtojnar_ has joined #nixos-chat
jtojnar_ has quit [Quit: jtojnar_]
wildtrees has quit [Remote host closed the connection]
wildtrees has joined #nixos-chat
<jtojnar> gchristensen: I believe the latest version of man finally accepts `man 'cd(1p)'`
wildtrees has quit [Remote host closed the connection]
<gchristensen> oh wow finally
wildtrees has joined #nixos-chat
<jtojnar> also Suse patches their man-db to allow you to choose from manual page
<jtojnar> so I created https://github.com/jtojnar/sman to replicate it
<jtojnar> (based on fzf as per your suggestion)