libera/#devuan/ Wednesday, 2020-06-17

frabbitcan i increase the time before i get automatically logout after some time of non activity on a ssh session?00:06
bsati didn't know you got automatically logged out00:06
bsati never do00:06
MinceRdunno, the last time i had an issue with that, i enabled keepalive00:06
frabbitprobably a good securiy thing this timeout, but its a bit annoying when learning stuff...00:06
frabbitMinceR: in the config?00:07
frabbit/etc/ssh/ssh_config00:07
MinceRyes, but i forgot if it was client or server side00:08
MinceRso either ssh_config or sshd_config00:08
frabbitor can i run "ssh -o TCPKeepAlive" foobar_my_server00:09
MinceRprobably, though without the quotes :>00:09
frabbithsure, but doesnt work.. also no pattern called keep in both config files00:12
frabbitor do i check that on the server?00:12
frabbitcause i only want one specific client to keep alive00:12
frabbit*have to check00:12
MinceRman ssh_config00:12
MinceRman sshd_config00:13
frabbitoh specific man files...? o_000:13
frabbitman...00:13
frabbitok i will add TCPKeepAlive to the /etc/ssh/ssh_config file on my client00:17
ulletthe penis suckers are jews00:17
frabbit"TCPKeepAlive yes"00:17
frabbitullet: stfu00:17
bsat_the penis suckers are jews00:17
bsat_the penis suckers are jews00:17
bsat_the penis suckers are jews00:17
MinceRstop it00:17
bsat_the penis suckers are jews00:18
bsat_the penis suckers are jews00:18
bsat_the penis suckers are jews00:18
bsat_the penis suckers are jews00:18
frabbituser bsat is still here00:19
bsatah see that's someone following me around00:20
bsatbeing an ass.00:20
bsati'll step out00:20
frabbitoh now hes gone00:23
crashoverrideyeah it's to get this "bsat" user ignored I guess.00:27
crashoverridebut they have no account so...00:27
golinuxNo kidding.00:27
crashoverridethe bsat user seemed legit, golinux.00:27
MinceRthey are not necessary the same person00:28
MinceRs/y/ily/00:28
onefangDid you not spot this - "ullet is now known as bsat_: bsat_"00:28
golinuxHe has been a scourge on #debianfork for weeks00:28
crashoverrideapparently, they are not.00:28
crashoverridewho, bsat or bsat_?00:28
crashoverridewithout an account, you can't know it's the same person, really.00:28
MinceRnote the underscore00:28
golinuxAlso appeared a elohim and some others.00:28
crashoverrideagain, nicks are cheap on IRC.00:29
frabbiti get an underscore too when reconneting unwanted by isp00:29
golinuxSame IP for all of those nicks00:29
crashoverridefrabbit: I take the person wanting to fuck with them also knows that.00:29
MinceRi told irssi to use a backtick but usually it ignores this setting00:29
crashoverridegolinux: same IP for the bsat and bsat_?00:29
golinuxand elohim and I forget who else00:29
crashoverridegolinux: yeah sure, but not bsat.00:30
MinceRhave you checked hosts/ip addresses too?00:30
golinuxI'm not on #debianfork any more because of this kind of stupidity.00:30
crashoverridegolinux: if someone would want to annoy you and be like "< golinux_> whatever racist/sexist/etc slander goes here"00:30
MinceR(not that it can be used to definitively prove being a different person)00:30
crashoverridegolinux: you would have NO control over it00:31
crashoverridegolinux: and people would come at you to ban you, insult you, hate you, etc.00:31
golinuxI have an off button on the channel00:31
crashoverrideon which?00:31
golinuxComing here is a choice.00:31
crashoverrideok, you seem to make no sense.00:31
crashoverrideignored too.00:31
crashoverrideignore is cheap, too.00:31
golinuxMinceR: Can you please get this off this channel00:32
frabbitgolinux: agree00:32
golinuxand to #debianfork00:33
crashoverrideMinceR: nah we cannot be sure the person wasn't being an ass and wasn't pretending being another person; but chances are it's another person.00:33
nemohm. netsplit. freenode under attack again?00:38
yetiI hope they cry oceans of tears in fear of our wellbeing00:38
yeti:-Þ00:38
yetioiski!00:38
yeti<3 filters...00:38
yetiwithout the userlist shrinking I wouldnt even have noticed the split00:39
nemoI like notifications of join/quit - for one thing I was able to look up that spammer's IP ☺00:39
nemo(well, more easily)00:40
nemoalso reduces chance of talking to thin ari00:40
yetiesc -    and I see em00:40
crashoverrideany idea what's happening?00:40
syco-i have a crap window for that sort of stuff in irssi00:40
crashoverrideI mean, to Internet.00:40
syco-always visible, just smallet than the main one00:41
syco-s/smallet/smaller00:41
crashoverrideit's not just freenode having issues atm it seems.00:41
frabbitwoah!00:41
crashoverridefrabbit: what?00:41
frabbitwere everyone kicked and could connect?00:41
MinceRno00:42
yetifrabbits 1st major netsplit?00:42
frabbit>=(00:42
MinceRthere was a massive netsplit00:42
frabbitah!00:42
frabbitwhat is that?00:42
crashoverrideIRC is a network of servers.00:42
MinceRthe irc network is an acyclic graph00:42
nemosyco-: mm. that's a good idea. I must just not know how to configure irssi properly00:42
crashoverridesome servers sometimes disconnect from their networks00:42
crashoverridethat is called a netsplit.00:42
MinceRif 2 ircd-s lose the connection between each other, the network falls into 2 disjunct pieces that can't talk to each other00:42
frabbitoh isee00:43
nemohopefully this is not another summer of bored script kiddies DDoSing freenode00:43
frabbitso it was some DDoS attack?00:43
MinceRcould be00:43
frabbit>=(00:43
MinceRi don't know00:43
djphor somebody unplugged the wrong cable00:43
djphit happens00:43
frabbitdjph: lol xD00:43
MinceRcould even be a rogue router00:44
frabbitthe lemonade swapped over the wrong cable00:44
frabbit*zssshh*00:44
yetifrabbit: https://en.wikipedia.org/wiki/Denial-of-service_attack#Distributed_attack00:44
syco-nemo mine is based on this one https://irssi-import.github.io/themes/dot.png00:45
syco-https://irssi-import.github.io/themes/00:45
frabbityeti: thx =)00:46
frabbitbut this is all for #debianfork xD00:46
nemosyco-: btw. personally while I like semi-dark transluicency I don't like sharm edges of images catching my eye in fonts.  if not using a composited desktop where gaussian blur behind terminal windows is an option, I'm also a fan of a "cloud textured" translucent background image that I use on terminal windows to break up sharp edges00:47
frabbitMinceR: the config change for ssh seems to work now =)00:47
frabbitthx btw for ur hints00:47
MinceR:)00:47
yetih in ts = tHs   :-P00:48
frabbitMinceR: its alot less streey now xD finnaly i can concentrate more on learning then on ssh-login every 5 or 10 minutes x)00:48
MinceR:>00:48
yetiuse mosh00:48
frabbit*stressy00:48
MinceRyeah, mosh is nice00:49
frabbityeti: https://en.wikipedia.org/wiki/Mosh_(software)00:49
yetimosh kills sixels and tek sequences... but for plaintext it is ok00:50
golinuxThis is fork talk not support talk.  Get it together, folks00:50
frabbithmm.. nah i like ssh and i think this timeut thing is a good one, except for beginners ;)00:51
frabbitbut i solved this now with just a little entry in the ssh conf00:51
* frabbit runs away from golinux to #debianfork00:51
yeti_o/"00:52
MinceRi don't get it. is using ssh/mosh on devuan not relevant to devuan?00:52
frabbitprobably because its not devuan specific?00:52
yetithen your next keyboard or sound problems arent devuanspecific too :-Þ00:53
frabbitnot if it is caused by devuan00:53
MinceRthe default settings can be devuan-specific00:53
MinceRand i don't know what the defaults are00:53
tom_Hello, I'm grading an application server from ASCII to Beowulf, of which in ASCII I had to use Sury's PHP repository00:54
frabbitok it was just my 2cent ^_^00:54
tom_Since beowulf includes PHP7.3 I no longer need to use sury00:54
tom_how can I remove sury and revert back to Devuan main's PHP implementation?00:54
tom_or will this be handled by dist-upgrade if I just comment out the sury repo in aptconf00:54
bgstack15tom_: whenever the Devuan main php implementation version is higher than the one provided by the last one installed from your sury repo.00:56
bgstack15So if you are confident you're done with sury's repo, go ahead and comment it out. And then you could go ahead and do a apt-cache policy php-main (or whatever the package name is)00:56
bgstack15and see if it lists the current one in the Devuan repo00:57
tom_i'm not familiar with apt-cache policy00:57
tom_bgstack15, what do you mean with apt-cache policy?01:11
tom_I want to replace php7.2-fpm with php-fpm01:13
tom_http://0x0.st/iWvs.png01:16
tom_I figured it out, just not heard of apt-cache policy01:27
telecrashhey yall!04:16
gnarfacehey telecrash just ask your question, don't wait for permission04:17
gnarface(try to wait around for answers, this tends to still be a slow channel most the time)04:17
telecrashjust curious about yall's experience using devuan unstable(sid?) as a daily driver04:19
gnarfacedevuan ceres is unstable, corresponding to debian sid04:19
gnarfaceit doesn't break any more often than debian sid, the experience should be basically identical04:19
telecrashoh sick! thanks alot04:19
gnarfaceno problem04:20
gnarfaceas with Debian, you're still advised to try to use the stable backports repo first before doing something drastic like upgrading to testing or unstable04:21
gnarface(beowulf-backports)04:21
gnarface(beowulf-backports should also be basically the same as buster-backports currently)04:22
gnarfacehere's the current list of exceptions: http://packages.devuan.org/bannedpackages.txt04:22
bgstack15telecrash: I use Devuan Ceres daily, for desktop use.04:43
bgstack15I use Fluxbox as my wm, and I have no issues with Ceres.04:44
systemdleteI have determined the source of my host crash -- it seems that the ASMedia chip that drives the usb 3.0 is known to have problems on ASUS boards, according to a post online.  So I have reconfigured my USB devices to avoid the 3.0 slots.  Even though both devices are rated for 3.0, they work fine for my purposes.06:22
gnarfaceinteresting06:24
systemdletethe chip (for anyone who finds this useful/interesting) is ASM1042A on an ASUS board06:24
gnarfacethat's the type of thing that often gets fixed with a bios flash06:24
gnarfacehave you looked for an updated bios for the board from them recently?06:24
systemdleteThe bios is up to date06:24
gnarfacehow old is the board?06:24
systemdlete(yes)06:24
systemdlete(thinking)06:24
gnarfacethey usually polish it all up by about a year in06:24
systemdleteMaybe 5 years or so06:24
gnarfacei've bought a lot of new ASUS boards06:24
systemdleteM5A78L-M/USB306:25
gnarfaceif it's not fixed by 1 year it probably won't be, i'd look for bios settings to change (C1E powersaving seems to be a common culprit for tangential destabilizations in my experience)06:25
systemdleteI have a spare sitting here in case the board goes.06:25
gnarfaceseriously, if you have a C1E powersaving setting, try disabling it06:26
gnarfacei'm just curious06:26
gnarfaceit would add to my own test results06:26
systemdleteC1E?  I can check that next time I boot.   But I've never tooled with that setting and usb 3.0 always worked here.06:26
systemdletesure, next time I reboot the host I can check that.06:26
gnarfaceit would be under advanced cpu settings i think06:26
systemdleteYeah, I've seen it.06:27
systemdleteNow, that's on my "main" box.   I also have a problem on my testbox... different board06:27
systemdleteI shut down the box, which is running beowulf.  I think all updates had been applied.06:27
systemdleteI removed a NIC to replace it with a different one.06:28
systemdleteWhen I tried to reboot after that, I get the grub menu, but it only gets to the screen clear.  There's a couple messages, then the screen clears and all I see is an underscore prompt.06:28
systemdleteThe video is on a card, and the BIOS is set properly to use the card, not the internal video.06:29
systemdleteI had not changed ANYTHING except to remove the NIC... then I removed the NIC completely so the slot is empty06:30
systemdletebut it still hangs after the screen clear.   Ideas?06:30
systemdleteI tried booting off a thumb drive with a different OS, same issue06:30
systemdleteI suppose I could try the onboard video... and probably should, just to see if somehow removing/replacing a PCI slot card somehow(?!) munged the video slot06:31
systemdletethis just occurred to me; probably I should have tried that before coming here crying06:32
systemdleteLet me try that... bbl06:32
systemdletebleh.  I tried switching the bios to use internal video.  That didn't work.  Finally, I removed the AGP card.  Tried again, this time I got video, but the boot terminates at the same spot.06:47
systemdleteThe testbox is an MSI board -- msi7641.06:48
systemdleteI almost forgot another thing I should have tried first -- reset the board!06:49
systemdlete(Which makes me wonder if maybe I should try that on my main box also)06:50
systemdleteYup.  Reset the mainboard by jumping JBAT1, and now I have video again, and the system boots up successfully.  So, for now, I can proceed.  Thanks for listening to all this... or not.07:00
golinuxsystemdlete: Happy to hear that you worked that out.07:42
openbsdtai123hello09:23
openbsdtai123how to set the timezone to Europe/Paris for the system into /etc... with just command line or SH script?  which file is it? (then I reboot and time works).09:24
gnarfaceopenbsdtai123: it's "dpkg-reconfigure tzdata"09:40
gnarfaceyou shouldn't have to reboot09:40
openbsdtai123I wrote with command line with SH ... thank you09:46
openbsdtai123I wanna implement in a "setup" script09:46
openbsdtai123"TUI free, just run and wait, reboot and enjoy"09:46
kreyrenusing sources.list http://ix.io/2poa results in http://dpaste.com/1JRRPXJ09:46
Joril/etc/timezone ?09:47
kreyrenwhy and how do i fix it o.o09:47
openbsdtai123echo europe/paris > /etc/timezone and ln -s /usr/share/zoneinfo/eurepe/(paris /etc/locatime did not work at all.09:47
Jorilopenbsdtai123: what about timedatectl set-timezone Europe/Paris ?09:50
openbsdtai123let me try into my script...09:51
openbsdtai123FLDE in progress, quite great desktop. screenshot #1 https://i.postimg.cc/3RJV0fd6/1592379625-screenshot.png and screenshot #2 https://i.postimg.cc/hGK3NZbj/1592379810-screenshot.png09:53
openbsdtai123magic !09:58
openbsdtai123it works !!09:58
openbsdtai123thank you very much Joris !!! (solution: timedatectl set-timezone Europe/Paris, I implement it intop my script)09:58
openbsdtai123please guys, in devuan, put vi as default in there instead of vim-tiny,  apt-get install elvis is very fine.09:59
yetinvi10:08
yeti$ quiet apt-cache show elvis || echo nada10:09
yetinada10:10
yetion devuan310:10
Jorilopenbsdtai123: glad it worked :)10:37
Joril(It looks like timedatectl comes from systemd though X-) )10:42
muawijaHi, a question: can I mix devuan with deb-multimedia repo?11:35
gnarfaceit might work but it is not advised and you should not even use deb-multimedia with debian11:36
gnarfaceeven debian advises against it explicitly11:37
muawijawhy?11:37
gnarfaceit actually will probably work but there's a chance of corrupting your install11:37
gnarfaceso it looks like it works now, but ruins some future upgrade long after you've forgotten11:37
gnarfacethat's the primary problem with it, in my experience, anyway11:38
muawijaI mean why debian advises against?11:38
gnarfacesame reason11:38
gnarfacethey actually advise against all distro mixing or 3rd party repo use11:38
muawijathat seems dumb to me11:38
gnarfaceit won't when you're more experienced11:38
gnarfacedo as you will, just don't say i didn't warn you11:39
gnarfacei recommend a full backup first11:39
muawijaif it's a 3rd party repo based on a particular distro than I don't really see a problem11:39
gnarfaceusually just comes down to a basic issue of quality control and accountability11:39
gnarfacewhat do you even need it for?  are you sure it's not something you could get from beowulf-backports?11:40
muawijawell, of course the 3rd party repo must do it's own QoC11:40
muawijalibdvdcss11:40
muawijaI really don't like the idea of package downloading some code from somewhere11:41
gnarfacewell, that one you should get that from the vlc repo anyway11:41
muawijathis is just nogo for me11:41
muawijaany reference to the vlc repo?11:41
gnarfacehttp://www.videolan.org/developers/libdvdcss.html11:43
gnarfacethese are the people who make it, so it's not just downloading code from "somewhere" it's downloading the official code from their private git repo11:44
muawijathat doesn't matter11:44
gnarfacewell, they used to have pre-built copies somewhere, they probably still do11:45
muawijaa package that does wget while configuring the package is a crap for me and I don't want it11:45
muawijawell, I'll see if I can make a private repo and make the packages for me11:46
muawijabut actually deb-multimedia has some more recent versions of some packages so I actually find it ok as long as it doesn't break anything11:47
gnarfacehere, if you actually just look in the repo, you can see they have the pre-built debs for amd64 and i386 that used to be linked from the other page still there http://download.videolan.org/pub/debian/stable/11:48
muawijathe problem is not that I couldn't fix it - the problem is that I don't have always the time to do so if it happens at a wrong time11:48
gnarfaceyes, exactly my point11:48
muawijaok. I'll look at it. I may try to rebuild the packages on debian and create my private repo on my local server...11:49
gnarfaceyou mean build them on devuan?11:49
gnarfaceit's probably not a tough build11:49
muawijaI'm running devuan anyway, so I can take the source / source packages and build my own binary packages and create my own repo11:50
muawijathat would seem to me to be a clean solution.11:50
muawija(I have more that one devuan-running machines, and I'm migrating debian-wheezy [pre-systemd] on yet more, so having a repo would make sense)11:52
gnarfacei agree, and that is also the most highly advised approach for both debian and devuan, i just thought you were trying to avoid the work11:52
gnarface(it's also the approach that is the most work)11:52
gnarfacefor this particular package it's not gonna change much, probably11:53
gnarfaceso maybe that will factor into your decision11:53
gnarfaceit hasn't been updated since 2013, dvd is dead like latin11:54
gnarfaceso whatever you do, you're probably only going to have to do it once11:54
muawijaah, good to hear. although - there new bugs found even in the old software.12:17
muawijaand - dvd may be dead but my wife likes watching them :-)12:17
gnarfacemy point was just that it's not going to change, the format's not going to change, and it's highly unlikely there's remaining bugs you're actually going to run into12:19
muawijawell I mean security bugs are found even in old software (because some "haxxors" just like to look for them), so I would account for this possibility12:20
gnarfaceyea but it's also for playing dvds12:22
gnarfaceso the attack surface is actually not huge unless you're exposing your system to some pirated street shit12:22
muawijayeah.12:22
muawijaI think I'll go with my own repo. I'll probably look what's else in the deb-multimedia repo what would interest me and create a script to build my own repo a publish it on github or so12:23
gnarfaceit *should* never be reached by a network connection itself unless you're doing something really reckless12:23
muawijawell, you're right but I'm paranoid anyway :-)12:24
muawijaI just don't account for what "shouldn't ever be possible"12:24
muawija:-)12:24
muawijaBTW, another question. my apt-update complains about chimeara-security not having the Release file.12:28
muawijadoes chimaera have the security repo / will it have in the future?12:29
muawijaor is merged with -updates ?12:29
muawija(correction: "apt update")12:30
gnarfaceempty until it goes stable (as with debian, testing and unstable too, afaik)12:30
gnarfacethe security packages are usually only really relevant to the stable release anyway, because testing and unstable are typically already updated with those patches by then12:31
muawijaok, so I can comment it out until going stable?12:32
gnarfaceyes12:32
muawijaok. It was my assumption but "security" is not something you'd like to disable unless you are sure ;-)12:32
openbsdtai123hello, I have a 2 GB SD/MMC card. I wanna put zcat devuan... on it. Then, I add a Scandisk pendrive 16GB, how to boot to the pendrive device?13:08
openbsdtai123(is there a sort of DUMP for creeating the SDB deevice with the root.13:09
openbsdtai123the vmlinuz and initrd shall it be on mmc or sdb13:09
openbsdtai123yeti: I guess there is nvi, ex-vi, elvis as three light weight VI editors... is there more?13:10
openbsdtai123yeti: what is the closest one to the original vi? all are much more different. Is there the first version of vi ? akak 1970-80 one.13:10
MinceRi suppose you could put /boot, grub and its MBR on the pendrive13:13
MinceRand / on the SD/MMC card13:13
openbsdtai123isnt it an util that does it?13:13
MinceRif the installer can see these devices, you can select them there13:13
MinceRdunno13:13
openbsdtai123it would be on rpi3b model b13:13
MinceRoh13:13
MinceRi don't know how it's done on rpi, i've always just put the whole system on an SD card13:14
openbsdtai123I wanna boot in RO and DUMP to sdb13:15
openbsdtai123read only booting, first boot in ro and then copy the whole onto sdb13:15
openbsdtai123I am interested in similar simple soluutions like using "dump" to copy a disk to another, this is very efficient. Partimage would be a high evolved way, but it is likely not needed.13:20
openbsdtai123In U-BOOT, theeere is no option to Boot in Read-only single mode13:21
fsmithredthere's no kernel command line?13:26
fsmithreddo you want to copy the system every time you boot?13:27
ShorTiehave you looked at rpi-clone maybe ??14:03
ShorTiethe rpi3b needs a bit burnt to be able to boot from /dev/sdx14:08
kreyrenWhat should i use on devuan if i don't want to use elogind17:02
kreyrenSorry DC17:04
bgstack15consolekit is an alternative to elogind17:15
kreyrenbgstack15, thanks17:34
kreyrenWhy is this pinning causing all packages to be set in -1 pin?17:47
kreyrenhttps://i.imgur.com/akypWFJ.png17:47
kreyrenah wait that's not it17:47
kreyrensolution: i had `Package: *` `Pin: release n=*` `Pin-Priority: -1` at the BOF which overwrote everything17:49
openbsdtai123Hello, I try to wget -4 -C ... https:// ... | to pipee to mpg123.19:25
openbsdtai123I would like to try to use a small httpget with https/ssl supprot.19:25
openbsdtai123I tried lynx but the command line does not accept accept_ssl on by defualt19:25
openbsdtai123Is there a possible alternative to pipe it out to mpg123 (mpg123 has no ssl) ?19:26
onefangI use curl for similar things.19:26
openbsdtai123I would like a bit smaller in size, even smaller than the famous Fetch for bsd.19:31
nemoopenbsdtai123: so... why doesn't the wget work?20:09
nemoopenbsdtai123: I just tested both wget and curl locally20:11
nemoopenbsdtai123: wget -O- https://foo | mpv -    and curl https://foo | mpv -20:11
nemoworked identically20:11
openbsdtai123the problem with wget is that it does not compile very well from tar.gz20:57
nemoopenbsdtai123: how about netcat?21:09
nemoor well. socat in this case21:09
nemohm.. netcat does ssl now? wow21:10
nemooh. no. that's ncat by the nmap team. confusing names21:10
openbsdtai123really does netcat ssl?21:10
nemook. so socat or ncat I guess21:11
openbsdtai123actually the code is just libssl and just httpget - nothing very complex21:11
openbsdtai123look in just 10 lines of code, you get your heavy wget : https://termbin.com/grqa (no ssl)21:12
nemoheh21:14
nemowget does a lot of crazy clever stuff that makes it heavy21:14
nemolike... having basically a full site crawler in it21:14
nemothat handles <a>, <img>, <object>, <link>, <style>...21:15
nemo<script>..21:15
nemoI use wget's mirror feature a lot21:15
nemoit's a great site tester/snapshot tool that exists basically everywhere21:15
openbsdtai123I tried to compile the first version of wget but the libs are outdated21:18
openbsdtai123fetch from github, custom, may likiely work21:18
openbsdtai123nemo: I usually prefer to use a tool that it simple and readily compilable. I take for instance ncftp, you can compile it on any toaster21:20
nemoopenbsdtai123: sure, I'm just noting it isn't an apples to apples comparison21:20
nemowget was intended to be a kind of web swiss army knife21:21
nemowhich is why so many distros use it. it's kinda drop-in and will work with a lot of weird stuff21:21
nemobut yeah, small simple tools are nice too. but eh. even tools I use for small simple tasks have a lot going on under the surface21:21
nemotake awk and sed for example21:21
openbsdtai123i never use them, i have my own C ... awk and sed is useless for me.21:23
openbsdtai123grep is just 10 lines in C.21:25
furrywolfgrep is just one line of grep.21:25
furrywolfalso, I'd love to see you mmap a file, run a regex on it, etc, in ten lines.  :P21:26
furrywolf(ten reasonable length lines)21:26
openbsdtai123regex21:27
openbsdtai123ah ok, to replace it is possible, a string :%s/bla/blo/g in C in 10 lines still21:28
nemoheh. grep is crazy optimised21:29
nemothere's nothing like it for performance. esp on fixed strings21:29
openbsdtai123indeed21:30
nemohttps://lists.freebsd.org/pipermail/freebsd-current/2010-August/019310.html  classic21:31
nemoeven with my primitive use of awk, I still love awk very much21:31
nemoI use it tons for log files and CSV21:31
nemoawk -F'somethingevenaregex' '{SUM+=$3}END{print SUM}'21:32
nemomy most common usage21:32
nemoI'm sure I'm only getting a tiny fraction of its power out of it21:32
nemosed gets more of a workout from me. esp sed -i21:32
furrywolfheh, that posting is funny.  I actually ran into performance issues with gnu grep once, and did some poking at how to make it suck less.21:33
furrywolfwhen matching large numbers of ORed input strings, it begins to suck after a few thousand, and it's much faster to wrap it in a bit of shell to only pass it a couple thousand at a time.21:33
openbsdtai123...still what about my mini wget ?21:33
nemofurrywolf: er... OR?21:35
nemofurrywolf: as in grep -E "foo|bar|baz" ?21:35
nemoopenbsdtai123: what's wrong with socat/ncat?21:36
furrywolfyes21:36
nemofurrywolf: and... did you compare -E vs -P ?21:36
* nemo makes a quick ginormous test21:36
furrywolfnever heard of -P21:36
nemoah. definitely give it a shot21:37
nemofurrywolf: esp if you're running into regex perf issues21:37
nemothe difference is remarkable21:37
nemofurrywolf: swaps out the traditional regex engine for basically perl's, which has been optimised out the wazoo21:37
nemopcre21:37
furrywolfI tried -F, which automatically interprets the input as simple fixed strings to be ORed.21:37
nemo-F is good too, I don't know which is better, I guess I'd need to see your variants21:37
furrywolfI don't have the original code handy, but it was pretty trivial...  a check to see which words are still words when ROT13ed.  :P21:38
nemoah21:38
furrywolfbasically, rot13 /usr/share/dict/words, then grep the dictionary for that dictionary.21:38
nemoyeah21:38
furrywolfobviously not a real-world algorithm.21:39
nemoI've done similar abuse of dict/words in grep. I'm surprised it was faster to OR them than just iterate over the list21:39
nemobut at least it gives me an idea of how to replicate what you were doing.21:40
nemofurrywolf: oh. I assume you converted everything to a-z lowercase only..21:40
furrywolfcat /usr/share/dict/words | tr 'A-Za-z' 'n-za-mn-za-m' | grep -x -f - /usr/share/dict/words21:43
nemoah. so you didn't remove apostrophes21:44
furrywolfmight want a -i in there too21:44
onefangI think you have gone beyond Devuan support.  Do I have to tell you to #debianfork off?  B-)21:45
furrywolfthis is obviously a bad algorithm for actually doing this, but it's certainly quick to write.  :P21:45
* nemo sighs and adds the channel again21:45
openbsdtai123in 20 lines, the BSD grep - voila clean: https://termbin.com/aezg21:46
openbsdtai123(original early version).21:47
openbsdtai123yeah, what about fetch in the repositories? or similar smaller fetcher??  I tried lynx -dump ... to mpg123 ;)21:48
fedematicoGood Evening23:02

Generated by irclog2html.py 2.17.0 by Marius Gedminas - find it at https://mg.pov.lt/irclog2html/!