💾 Archived View for gemini.ctrl-c.club › ~phoebos › logs › freenode-kisslinux-2021-05-02.txt captured on 2024-05-12 at 16:05:25.
⬅️ Previous capture (2021-12-17)
-=-=-=-=-=-=-
2021-05-02T00:07:22 #kisslinux <zola> Any opinions about adding an option to fetch packages from void musl repos to KISS? 2021-05-02T00:16:11 #kisslinux <acheam> heck no 2021-05-02T00:16:22 #kisslinux <acheam> sounds like a good idea for a kiss extension 2021-05-02T00:16:26 #kisslinux <acheam> but not mainline kiss 2021-05-02T00:17:19 #kisslinux <acheam> it doesn't align with the guidestones, and relies on external infrastructure 2021-05-02T00:18:11 #kisslinux <acheam> not to mention that the void musl packages work with mainline kiss rootfs, but not all people using kiss are using the kiss rootfs/distrobution/same set of core packages 2021-05-02T00:18:21 #kisslinux <acheam> it does sounds like a massively useful tool though 2021-05-02T00:23:24 #kisslinux <zola> Making it an extension is actually a really good idea 2021-05-02T03:42:26 #kisslinux <testuser_[m]> Hi 2021-05-02T04:58:52 #kisslinux <riteo> Well, I'll go for now. cya! 2021-05-02T07:52:44 #kisslinux <testuser_[m]> Does anyone know a better tool than sed to act on input that contains chracters like |, , & etc. ? I can't escape them cuz reading from a file 2021-05-02T08:26:00 #kisslinux <konimex> awk? 2021-05-02T08:36:19 #kisslinux <aarng> you have to give us more details, testuser_[m] 2021-05-02T08:44:34 #kisslinux <testuser_[m]> I have a file like this http://0x0.st/-aOk.txt which is markdown, then converted to html. 2021-05-02T08:44:36 #kisslinux <testuser_[m]> Then a script takes that converted file, extracts the filename `script.sh`, syntax highlights that file (html) and is supposed to replace the `{{include }}` line with the generated html 2021-05-02T08:44:52 #kisslinux <testuser_[m]> aarng 2021-05-02T08:45:40 #kisslinux <testuser_[m]> Stuck at the replacing part 2021-05-02T08:49:02 #kisslinux <aarng> if the syntax highlighted file, is an actual file on disk, you can use `sed`'s r command to read it 2021-05-02T08:51:05 #kisslinux <aarng> I guess you are trying to s/// the new content into that line via a variable containing the new syntax highlighted content? 2021-05-02T08:51:19 #kisslinux <testuser_[m]> Yeah 2021-05-02T08:51:21 #kisslinux <mmatongo> hi guys 2021-05-02T08:51:25 #kisslinux <testuser_[m]> Hi 2021-05-02T08:51:56 #kisslinux <aarng> ok, then I'd use the c command maybe 2021-05-02T08:52:01 #kisslinux <mmatongo> Finally got my laptop fixed, working in a chroot was misery 2021-05-02T08:52:36 #kisslinux <aarng> hi 2021-05-02T08:52:47 #kisslinux <mmatongo> hi aarng 2021-05-02T08:53:21 #kisslinux <testuser_[m]> What do you mean by "r" command and "c" command ? 2021-05-02T08:56:15 #kisslinux <testuser_[m]> Ah found it 2021-05-02T09:01:44 #kisslinux <philofosser> As we have seen, a plague can indeed be powerful. 2021-05-02T09:03:59 #kisslinux <testuser_[m]> :w 2021-05-02T09:04:21 #kisslinux <testuser_[m]> wrong window 2021-05-02T09:05:07 #kisslinux <aarng> testuser_[m]: forget the c command, it can only add a single line 2021-05-02T09:08:50 #kisslinux <aarng> (if you use a variable) 2021-05-02T09:28:51 #kisslinux <testuser_[m]> aarng thanks, the r command seems to work, but it is appending to the next line after the match instead of replacing it 2021-05-02T09:38:19 #kisslinux <aarng> just use d to delete it first 2021-05-02T09:39:06 #kisslinux <testuser_[m]> cool 2021-05-02T09:39:12 #kisslinux <aarng> e.g. '/search pattern/{ d;r file }' 2021-05-02T09:41:40 #kisslinux <testuser_[m]> btw is it possible to use something other `/` here like you can in `s||g` ? it says "unsupported command |" 2021-05-02T09:48:48 #kisslinux <aarng> I dont think you can, only possible with "s" 2021-05-02T10:11:14 #kisslinux <testuser_[m]> one last thing, how can i escape `{` and `}` in the first statement so that i can use them like `/{{ text }}/{d;r file}/' ? escaping them regularly makes sed think its a regexp 2021-05-02T10:18:29 #kisslinux <aarng> if you use basic regular expressions, you dont have to escape the curly braces 2021-05-02T10:24:27 #kisslinux <testuser_[m]> if i dont do anything then it says "unterminated {": `printf "testn{{ text }}" | sed '/{{ text }}/{d; r /tmp/file}'` 2021-05-02T10:24:55 #kisslinux <testuser_[m]> but if i remove the "testn" part then it doesnt complain about anything 2021-05-02T10:30:29 #kisslinux <aarng> sorry, my bad 2021-05-02T10:30:53 #kisslinux <aarng> the read command basically takes the closing } as part of the filename 2021-05-02T10:31:49 #kisslinux <aarng> -e '/search pattern/{ d;r file' -e '}' 2021-05-02T10:32:00 #kisslinux <aarng> that should do the trick 2021-05-02T10:33:02 #kisslinux <aarng> every -e <script> arguments are taken as separate lines 2021-05-02T10:41:34 #kisslinux <testuser_[m]> aarng looks like that solved the braces problem, but doing `{d; r file}` just makes it delete the line and not replace it with the contents :/ 2021-05-02T10:44:11 #kisslinux <testuser_[m]> a single `r` works, without braces 2021-05-02T11:00:40 #kisslinux <aarng> that gets rid of the original line? 2021-05-02T11:12:45 #kisslinux <testuser_[m]> Yeah, and adds nothing after deletion 2021-05-02T11:13:00 #kisslinux <testuser_[m]> Oh 2021-05-02T11:13:21 #kisslinux <testuser_[m]> A single r just adds to new line, inside braces it just removes the original line and doesn't add 2021-05-02T11:26:01 #kisslinux <aarng> I see what you mean 2021-05-02T11:27:18 #kisslinux <aarng> ok, solved 2021-05-02T11:27:26 #kisslinux <aarng> just (d)elete after reading the file 2021-05-02T11:28:03 #kisslinux <aarng> seq 4 | sed -e '/2/{r /tmp/delme' -e 'd}' 2021-05-02T11:29:06 #kisslinux <phoebos[m]> you could always just `s/regex/$(cat file)/` 2021-05-02T11:31:05 #kisslinux <aarng> that's what testuser is specifically trying to avoid 2021-05-02T11:31:52 #kisslinux <aarng> try that when the file you are inserting includes 1, 2 etc worse, /;<anything> 2021-05-02T11:32:08 #kisslinux <aarng> s/worse/or worse/ 2021-05-02T11:32:08 #kisslinux <movzbl> <aarng> try that when the file you are inserting includes 1, 2 etc or worse, /;<anything> 2021-05-02T11:32:47 #kisslinux <aarng> testuser_[m]: it has to be -e 'd;}' at the end. forgot the semicolon 2021-05-02T11:33:26 #kisslinux <aarng> works without it too but some sed implementations complain if you omit it 2021-05-02T11:35:01 #kisslinux <aarng> anyway, konimex is right, in most cases, awk is the better solution 2021-05-02T11:35:06 #kisslinux <aarng> in your case maybe even m4 2021-05-02T11:47:47 #kisslinux <spryc> kiss doesn't ask me for root permissions any idea why? http://0x0.st/-aW2.txt 2021-05-02T11:48:46 #kisslinux <spryc> heres some more output http://0x0.st/-aWL.txt 2021-05-02T11:50:15 #kisslinux <phoebos[m]> this is an error in the kiss tarball, run `chmod 1777 /var/tmp` 2021-05-02T12:03:31 #kisslinux <testuser_[m]> thanks a lot aarng 2021-05-02T12:04:22 #kisslinux <aarng> anytime 2021-05-02T12:05:01 #kisslinux <aarng> if you send me the full script, I can do it in awk too, if you want 2021-05-02T12:42:08 #kisslinux <soliwilos> Just noticed this https://github.com/skyjake/lagrange a gemini client with support for inline images, seems nice enough. Haven't tried it. 2021-05-02T14:20:44 #kisslinux <spryc> should the syncthing package not make a entry for syncthing in /etc/sv? 2021-05-02T15:06:06 #kisslinux <phoebos[m]> soliwilos: the inline images are nice, but I prefer amfora for gemini 2021-05-02T15:06:25 #kisslinux <phoebos[m]> you can pipe an image into an image viewer if you want 2021-05-02T15:06:52 #kisslinux <acheam> phoebos[m]: that's nice but it feels clunky 2021-05-02T15:08:38 #kisslinux <phoebos[m]> i feel like it's more unixy 2021-05-02T15:09:02 #kisslinux <acheam> sure, but not worth it for me imo 2021-05-02T15:09:12 #kisslinux <acheam> at some point I have to value convenience 2021-05-02T15:09:34 #kisslinux <acheam> and I guess that's a slightly different point than you 2021-05-02T15:14:46 #kisslinux <phoebos[m]> That's fair 2021-05-02T15:14:52 #kisslinux <phoebos[m]> Also I like go 2021-05-02T17:50:06 #kisslinux <midfavila> begone, google shill 2021-05-02T18:36:36 #kisslinux <midfavila> http://0x0.st/-atZ.png 2021-05-02T18:36:37 #kisslinux <midfavila> finally got around to remaking my QNX-Blue theme 2021-05-02T18:37:01 #kisslinux <midfavila> it's slightly less complete dogshit now 2021-05-02T18:45:31 #kisslinux <phoebos[m]> cool 2021-05-02T18:48:47 #kisslinux <dilyn> i'm blue da boo dee da boo die 2021-05-02T18:49:00 #kisslinux <midfavila> thank you dilyn 2021-05-02T18:56:26 #kisslinux <rgybmc[m]> Just caught up with logs.. there is a firefox extension to detect cloudflare and other cdns, someone mentioned the idea earlier. 2021-05-02T18:56:27 #kisslinux <rgybmc[m]> https://github.com/claustromaniac/detect-cloudflare-plus 2021-05-02T19:12:12 #kisslinux <Rio6> has anyone tried cross compiling kiss to arm? 2021-05-02T19:18:52 #kisslinux <dilyn> a few people 2021-05-02T19:19:06 #kisslinux <dilyn> ominous_anonymou: 2021-05-02T19:22:40 #kisslinux <midfavila> put KISS on one of these 2021-05-02T19:22:41 #kisslinux <midfavila> https://shop.mntmn.com/products/mnt-reform 2021-05-02T19:40:48 #kisslinux <dilyn> that is absurdly expensive 2021-05-02T19:41:22 #kisslinux <midfavila> yes, yes it is 2021-05-02T19:41:35 #kisslinux <midfavila> but consider the following 2021-05-02T19:41:41 #kisslinux <midfavila> it's also like. pretty cool. and stuff. 2021-05-02T19:57:06 #kisslinux <dilyn> you ever apply for a job and the followup you get on the hiring process makes you realize that that single line in the job description is actually 80% of the job and the 95% of the ad that makes up the rest of it is ACTUaLLY FLuFfff 2021-05-02T19:57:18 #kisslinux <dilyn> and that nonsense is what you were qualified for, and applied based on? 2021-05-02T19:57:19 #kisslinux <dilyn> ME EITHER 2021-05-02T19:57:29 #kisslinux <dilyn> can this be my fulltime job? 2021-05-02T19:57:34 #kisslinux <dilyn> KISS is moving to a subscription based model. 2021-05-02T19:58:40 #kisslinux <midfavila> bullshit job listings should be a crime 2021-05-02T19:58:48 #kisslinux <dilyn> to be clear, /s/s/s/s/s/s 2021-05-02T19:59:03 #kisslinux <dilyn> It's just business jargon the whole way down! 2021-05-02T19:59:18 #kisslinux <dilyn> like, your entry level position's final interview process step should NOT include the line 'meeting with CEO' 2021-05-02T19:59:26 #kisslinux <dilyn> naaaaaaanananaaaaahhhhh that is not what I read fam 2021-05-02T19:59:52 #kisslinux <midfavila> we need scalable, open solutions to allow our clients to synergize with cloud-based remote management solutions using docker and kubernetes 2021-05-02T19:59:58 #kisslinux <midfavila> can you do that, dilyn 2021-05-02T20:00:20 #kisslinux <dilyn> everything but the docker and kubernetes part 2021-05-02T20:00:22 #kisslinux <dilyn> gimme $$ 2021-05-02T20:00:42 #kisslinux <midfavila> you only get $ 2021-05-02T20:01:09 #kisslinux <dilyn> better than my current $ 2021-05-02T20:02:52 #kisslinux <midfavila> hopefully I'll be able to get $ after I get some certs. 2021-05-02T20:10:45 #kisslinux <TAAPArthur> May I get a sanity check. Hotplugging support in X using libudev-zero didn't break recently correct? X doesn't seen to acknowledge device removal or insertion after startup although the uevent files are being created normally 2021-05-02T20:14:30 #kisslinux <dilyn> which method are you using for hotplugging? 2021-05-02T20:14:59 #kisslinux <TAAPArthur> mdev 2021-05-02T20:15:53 #kisslinux <TAAPArthur> and /proc/sys/kernel/hotplug 2021-05-02T20:16:37 #kisslinux <dilyn> there shouldn't have been anything breaking in any updates afaik 2021-05-02T20:16:56 #kisslinux <dilyn> tho those two methods are supposed to be mutually exclusive, as the mdev service overwrites /proc/sys/kernel/hotplug 2021-05-02T20:17:33 #kisslinux <TAAPArthur> My bad. I meant smdev. The one that is daemon-less 2021-05-02T20:18:19 #kisslinux <dilyn> ah 2021-05-02T22:11:22 #kisslinux <aarng> e5ten, I've done the sed wrapper, rolling my own option parsing including long-opts 2021-05-02T22:11:28 #kisslinux <aarng> what a PITA 2021-05-02T22:13:11 #kisslinux <aarng> https://termbin.com/u7nr (WIP) 2021-05-02T22:15:04 #kisslinux <acheam> wow that's really nice 2021-05-02T22:15:22 #kisslinux <aarng> thanks 2021-05-02T22:15:33 #kisslinux <aarng> I could turn it into a kiss package 2021-05-02T22:15:51 #kisslinux <aarng> probably better than packaging a stand-alone GNU sed or something?! 2021-05-02T22:36:11 #kisslinux <acheam> midfavila: just installed fvwm 2021-05-02T23:59:28 #kisslinux <riteo> hiiii!