| sunshavi_ | It ended this way awk '/987654321/{ print $0; done=0; while (!done) { getline varline; if (varline ~ /^ /) {print varline} else { if (varline ~ /987654321/) {print varline} done = 1} };}' | 01:18 |
|---|---|---|
| FatPhil | what package is gainroot in? | 18:19 |
| FatPhil | I could have sworn I installed it oonly weeks ago, but I've had so many bodies in my mitts I can't remember which one's which. | 18:20 |
| sixwheeledbeast | rootsh | 19:20 |
| FatPhil | ah - I remember that message! | 19:31 |
| FatPhil | it's not "gainroot", it's "sudo gainroot" | 19:32 |
| FatPhil | I would have remembered that a decade ago! | 19:32 |
| FatPhil | I find it hard to put into words how much I hate the application manager | 19:33 |
| FatPhil | But it's easy to say thank you for the reminder - thank you, sir, for the reminder. | 19:34 |
| FatPhil | the funny thing is that in order to apt-get install rootsh I did a ssh root@localhost ;-) | 19:35 |
| joerg | or simply root | 20:18 |
| joerg | get speedyHAM | 20:19 |
| joerg | get CSSU! | 20:19 |
| joerg | sunshavi_: I missed the "else { if (varline ~ /987654321/) {print varline} done = 1} };" part :-) | 20:29 |
| joerg | ~ # type root | 20:31 |
| joerg | root is /usr/bin/root | 20:31 |
| joerg | ~ # file /usr/bin/root | 20:31 |
| joerg | /usr/bin/root: ASCII text | 20:31 |
| joerg | ~ # ls -l /usr/bin/root | 20:31 |
| joerg | -rwxr-xr-x 1 root root 61 Nov 3 2009 /usr/bin/root | 20:31 |
| joerg | ~ # ls cat /usr/bin/root | 20:31 |
| joerg | ls: cat: No such file or directory | 20:31 |
| joerg | /usr/bin/root | 20:32 |
| joerg | ~ # cat /usr/bin/root | 20:32 |
| joerg | #From Andrey Gubarev's easyroot. | 20:32 |
| joerg | exec sudo gainroot --use-su | 20:32 |
| joerg | ~ # | 20:32 |
| joerg | usr/sbin/gainroot https://termbin.com/e0vx - the whole mafic is in sudo iirc | 20:35 |
| joerg | magic even | 20:35 |
| joerg | sunshavi_: but I guess this still doesn 't cut it. What's with two consecutive multiline messages from same target number? | 20:55 |
| joerg | prolly needs else { done = 1; if (varline ~ /987654321/) {done = 0; print varline} } }" | 20:57 |
| joerg | and even then I don't know awk enough to be sure it does what it's supposed to, regarding 'when gets pattern buffer read' | 20:59 |
| joerg | does a `getline` advance the file read pointer? | 21:01 |
| joerg | or can you do arnitrary amount of getline and always get same result? Or does "script loop" _not_ do implicit `getline _patternbuffer` when previously already a getline been done? | 21:03 |
| joerg | honestly, that output format is BAAAAAAD >:-( - I wonder what merlin1991 thought when he designed it that way | 21:03 |
| joerg | when your far end "number" starts with a space, like if "MOVISTAR;IN;2023-10-22T00:28:07Z;2023-10-22T00:29:10Z;operator" the operator decided to call themselves " MOVISTAR" instead, with leading space, you're fsckd | 21:09 |
| joerg | what's wrong with proper full CSV with escaped delimiters for when they appear _inside_ strings? | 21:12 |
| joerg | or (DUH!) even... XML | 21:13 |
| FatPhil | if you're not wrapping json with XML, you're doing it wrong. | 22:05 |
| KotCzarny | o.O | 22:05 |
| KotCzarny | i always hated xml | 22:05 |
| KotCzarny | json is passable | 22:05 |
| FatPhil | it's the combo for the win | 22:05 |
| duuude | smart engineers wrap XML in yaml | 22:27 |
| FatPhil | yeah, but IBM never standardised yamlx, but they did jsonx | 22:28 |
| FatPhil | I wasn't making a joke, I was pulling out a piece of internet history from my arse | 22:28 |
| FatPhil | And no, I don't want to put it back there afterwards. | 22:29 |
| FatPhil | but you're right, the best way of storing jsonx fragments would be in yaml. Alas nobody's been smart enough to standardise that yet. | 22:30 |
| duuude | the only excuse not to use UTF-16 is to use EBCDIC instead | 22:33 |
| duuude | \r\n for life | 22:33 |
| duuude | \n\r is superior though | 22:33 |
| KotCzarny | what about \r ? | 22:38 |
| joerg | I don't know what all the hate about XML. Ot's a well defined markup language, that alas isn't used right by most devs | 22:48 |
| KotCzarny | defined, yes. human friendly, cumbersome. | 22:53 |
| FatPhil | \n\r is the history, though | 22:54 |
| duuude | KotCzarny: \r is cool, it just doesn't go to the next line | 22:54 |
| joerg | <master name="mAsTER" color="blue"> <property1>fooo</property1> <property2>bar</property2> this is well formed XML, I hope </master> | 22:54 |
| duuude | joerg: lot's of bugs and performance degradation caused by it, has a lot of visual clutter etc. | 22:56 |
| joerg | <master> this is NOT </master> <property1> completely unrelated to master </property1> | 22:56 |
| duuude | and basically useless and totally unjustified syntax made by an idiot who had an SGML fetish | 22:57 |
| joerg | aha | 22:57 |
| KotCzarny | and you have to press shift a lot | 22:58 |
| duuude | XML is on top of my hatelist | 22:59 |
| duuude | absolutely irrational. worst of both worlds. hard for computers and humans alike. | 22:59 |
| KotCzarny | parsing should be trivial, as long there is no syntax error | 23:00 |
| duuude | I think microsoft was responsible for "popularising" it | 23:00 |
| KotCzarny | but i love how unindented, space compressed xml is practically unreadable | 23:00 |
| duuude | | 23:00 |
| FatPhil | If GML was an infant, SGML is the bright youngster who far exceeds expectations and made its parents too proud, but XML is the drug-addicted gang member who had committed his first murder before he had sex, which was rape. | 23:01 |
| KotCzarny | 20 levels of nesting | 23:01 |
| FatPhil | -- Erik Naggum, RIP | 23:01 |
| KotCzarny | especially if names are 30+ chars long | 23:02 |
| joerg | anything substantial maybe? except of "feelings"? | 23:02 |
| KotCzarny | fat, ugly | 23:02 |
| duuude | well it has costs and no benefits | 23:02 |
| duuude | trash | 23:02 |
| duuude | also, feelings matter. formats are used by humans. | 23:03 |
| joerg | sorry, nope | 23:03 |
| joerg | XML was _never_ meant to regularly get edited ot read by humans | 23:03 |
| KotCzarny | its like systemd | 23:04 |
| joerg | you could as well complain about HTML being a mess to write | 23:04 |
| KotCzarny | never meant, used a lot due to some fuck forcing it | 23:04 |
| duuude | joerg: I would prefer a binary format for that | 23:04 |
| duuude | joerg: such tags make sense for text markup | 23:04 |
| joerg | suuuuure | 23:04 |
| FatPhil | duuude: my favourite thing about XMLs from the W3 folk, is that when they decided to standardise a syntax for CSS they didn't chose an XML. | 23:05 |
| FatPhil | Eat your own dogfood, or stop pushing it on others. | 23:06 |
| duuude | lol | 23:06 |
| duuude | FatPhil: had not thought of it before | 23:06 |
| FatPhil | you may use that argument, I offer it here for free. | 23:06 |
| duuude | maybe W3C is not that evil after all | 23:06 |
| KotCzarny | or they overlooked the chance | 23:06 |
| duuude | duuude imagine XML CSS arrgh | 23:07 |
| joerg | nfc about CSS but HTML is clearly a fuckedup ML flavor | 23:08 |
| joerg | XML | 23:08 |
| FatPhil | joerg: hence Erik's comment. It's in my .sig list. | 23:08 |
| joerg | ? | 23:08 |
| FatPhil | he used to post a lot to comp.lisp, and was always hilarious when modern reinventions of s-exps came up. | 23:08 |
| FatPhil | joerg: 00:01 < FatPhil> If GML was an infant, SGML is ... | 23:09 |
| joerg | sorry, I'm prolly too tired. Completely fell out of context | 23:09 |
| FatPhil | more Naggum-isms: https://en.wikiquote.org/wiki/Erik_Naggum | 23:09 |
| duuude | did his name influence his naggings? | 23:10 |
| FatPhil | "Intellectual laziness is punishable by brain death. It is a natural law." beautiful! | 23:11 |
| KotCzarny | what about intellectual zombies? | 23:12 |
| KotCzarny | i think my main gripe with xml is packing 2 orthogonal namespecases into one, nodes and attributes | 23:20 |
| KotCzarny | while its nice in theory, in practice its sucky | 23:21 |
| KotCzarny | if you want to store such data in sql, it gets messy | 23:21 |
| duuude | "XML is a giant step in no direction at all. " that was a new one | 23:23 |
| duuude | I wonder why Naggum happens to bring such random unrelated stuff when talking about tech | 23:26 |
| joerg | KotCzarny: think of it as a tree structure, with node objects that may have a defined set of attributes, plus arbitrary number of leaves | 23:50 |
| joerg | obviously a regular database is just too simplistic to implement such data structure in a straight forward way | 23:51 |
| FatPhil | KotCzarny: your 2 namespaces criticism is one of my biggest complaints, but you put it so much more clearly than I could have. I had already tried to type something like that twice! | 23:52 |
| joerg | ot's pretty much object oriented I'd say | 23:53 |
| joerg | similar concepts | 23:53 |
| joerg | and while you have all the features, you don't _have_ to use them | 23:55 |
| joerg | you could as well set up a (slightly modified) ISAM data table in XML | 23:55 |
Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!