| 00:29:39 | | wickedplayer494 quits [Remote host closed the connection] |
| 00:43:20 | | icedice (icedice) joins |
| 00:44:05 | | icedice quits [Client Quit] |
| 00:45:53 | | icedice (icedice) joins |
| 00:57:18 | | wickedplayer494 joins |
| 00:57:45 | | wickedplayer494 is now authenticated as wickedplayer494 |
| 01:03:04 | | nicolas17 joins |
| 01:13:04 | | Naruyoko5 joins |
| 01:16:16 | | Naruyoko quits [Ping timeout: 255 seconds] |
| 01:16:43 | | le0n quits [Ping timeout: 255 seconds] |
| 01:23:08 | | le0n (le0n) joins |
| 01:53:16 | <nicolas17> | JAA: https://redis.com/blog/redis-adopts-dual-source-available-licensing/ |
| 01:53:54 | <FireFly> | heh |
| 01:54:21 | <@JAA> | Fork in 3... 2... 1... |
| 01:59:02 | <nicolas17> | https://github.com/microsoft/garnet literally yesterday |
| 02:02:15 | <nicolas17> | https://news.ycombinator.com/item?id=39754457 l o l |
| 02:31:50 | <fireonlive> | lmao, garnet |
| 02:38:53 | <@JAA> | Makes me wonder whether Microsoft knew about this ahead of time. |
| 02:39:15 | <@JAA> | The timing's just too good. |
| 02:48:31 | <@JAA> | Not a fork, by the way, but a compatible(-ish?) replacement. |
| 02:49:25 | <FireFly> | the timing def seems curious |
| 03:03:59 | | threedeeitguy39 quits [Ping timeout: 272 seconds] |
| 03:11:54 | | threedeeitguy39 (threedeeitguy) joins |
| 03:55:34 | | PredatorIWD joins |
| 04:08:01 | <Ryz> | Heya folks, is there a way/tool to sort by the amount of links of a domain, in a list full of hundreds or thousands of domains? Like I expect the a ton of 1s at the bottom, and then the largest be on top? |
| 04:08:14 | <Ryz> | I think I asked this before...? And done something on that, but it's been a while doing something like that... |
| 04:09:03 | <@JAA> | Are you just interested in the number of URLs per domain, or do you want to sort the entire list by that? |
| 04:09:50 | <@JAA> | The former is easy with `grep -o ... | uniqify -c`. The latter requires a two-step process. |
| 04:10:40 | <Ryz> | Probably the latter~ |
| 04:11:56 | <Ryz> | If grep only, could maybe do it via https://www.online-utility.org/text/grep.jsp or something online |
| 04:12:02 | <thuban> | Ryz: something like `cat LIST | grep -oPa '^(https?://)?\K[^/]+' | sort | uniq -c | sort -nr` ? |
| 04:12:29 | <@JAA> | Definitely not possible with grep alone. |
| 04:12:45 | <@JAA> | This is where the Unixoid world shines with combining tools like that. |
| 04:13:11 | <@JAA> | thuban: That's basically the former of what I asked above, so only ~half the answer. |
| 04:13:15 | <@JAA> | I'd do the other half with AWK. |
| 04:13:44 | <@JAA> | Well, AWK to associate each line with the number of URLs for the domain, then sort and strip. |
| 04:14:25 | <@JAA> | But if you don't want to touch a terminal, it's going to be painful for sure. |
| 04:14:29 | <thuban> | JAA: i wasn't quite sure what Ryz was asking, so i figured it would be easier just to demonstrate :P |
| 04:15:40 | <thuban> | although not to someone not using the command line i guess. i'll run it for you if you want, Ryz |
| 04:15:55 | <Ryz> | I have a list of random search results as links, and I wanted to tackle the larger ones first, like the most links from a domain, and clear them out or put it into a separate section for me to check later |
| 04:16:00 | <Ryz> | Yeah, I'll give it to you in DMs |
| 04:16:04 | <Ryz> | Or PMs |
| 04:19:03 | <@JAA> | `awk 'NR==FNR {n[$2]=$1;next} {print n[$1] " " $2}' <(grep -Eo '^https?://[^/]*' /path/to/urls | sed 's,^.*/,,' | little-things/uniqify -c) <(perl -pe 's,^https?://([^/]*),$1 $&,' </path/to/urls) | sort -n | sed 's,^[0-9][0-9]* ,,'` |
| 04:20:13 | <@JAA> | I guess I could use sed instead of perl there, but whatever. |
| 04:21:35 | <@JAA> | + -r on the sort to put the most common at the top |
| 04:29:41 | <thuban> | `sort -k 1nr` to not reverse alphabetical order within groups tbh |
| 04:33:21 | <@JAA> | Maybe sort alphabetically within the groups? So `sort -k 1nr -k 2` |
| 04:34:05 | <@JAA> | Although it seems to do that even without the `-k 2`, but I'm not sure that's guaranteed. |
| 04:35:16 | <@JAA> | Ah yeah, it is, neat, TIL. |
| 04:41:33 | <@JAA> | Oh nice, new MD5 collision, all alphanumeric and only a single byte difference: TEXTCOLLBYfGiJUETHQ4hAcKSMd5zYpgqf1YRDhkmxHkhPWptrkoyz28wnI9V0aHeAuaKnak and TEXTCOLLBYfGiJUETHQ4hEcKSMd5zYpgqf1YRDhkmxHkhPWptrkoyz28wnI9V0aHeAuaKnak (hAcKSMd5 vs hEcKSMd5) both give faad49866e9498fc1719f5289e7a0269. |
| 04:43:46 | <@JAA> | Actually, a single *bit* difference! |
| 04:51:52 | <nicolas17> | hot damn |
| 05:11:48 | | BlueMaxima quits [Read error: Connection reset by peer] |
| 05:26:05 | <thuban> | pure gawk, just for funsies: |
| 05:26:10 | <thuban> | `cat LIST | gawk 'function cf(i1, v1, i2, v2) { return (v1 == v2) ? ((i1 < i2) ? -1 : (i1 != i2)) : (v2 - v1) }; match($0, /^https?:\/\/([^/]*)/, a) { counts[a[1]]++; urls[a[1]][$0] = 0 } END { PROCINFO["sorted_in"] = "cf"; for (domain in counts) { PROCINFO["sorted_in"] = "@ind_str_asc"; for (url in urls[domain]) print url } }'` |
| 05:27:30 | <thuban> | longer, but you can golf it shorter than the other one if you don't care about sorting other than by domain count |
| 05:27:37 | | @JAA hands thuban the UUOC Award. |
| 05:27:41 | <@JAA> | :-P |
| 05:27:44 | <@JAA> | But neat! |
| 05:28:09 | <thuban> | you can take my uuoc from my cold dead hands |
| 05:31:05 | <thuban> | INPUT goes in STANDARD INPUT, this way i never have to remember what the argument order is... |
| 05:31:49 | <@JAA> | `<file gawk ...` or `gawk ... <file` |
| 05:32:36 | <@JAA> | I usually do the latter, but the former keeps the order of having the filename first if that's important to you. |
| 05:33:02 | <thuban> | latter doesn't have input at the beginning, where input should go, and the arrow on the former is poiting the wrong way! u_u |
| 05:33:06 | <thuban> | *pointing |
| 06:08:11 | | Arcorann (Arcorann) joins |
| 06:23:59 | | Dango360_ joins |
| 06:25:16 | | _Dango360 joins |
| 06:27:55 | | Dango360 quits [Ping timeout: 272 seconds] |
| 06:29:01 | | Dango360_ quits [Ping timeout: 255 seconds] |
| 06:57:49 | | G4te_Keep3r34924 quits [Ping timeout: 255 seconds] |
| 06:58:59 | | G4te_Keep3r34924 joins |
| 09:00:02 | | Bleo182600 quits [Client Quit] |
| 09:01:24 | | Bleo182600 joins |
| 09:48:49 | | rohvani quits [Ping timeout: 255 seconds] |
| 10:18:27 | | monika quits [Quit: Zzz] |
| 10:49:07 | | MetaNova quits [Ping timeout: 255 seconds] |
| 10:55:33 | | MetaNova (MetaNova) joins |
| 11:55:53 | | ^ quits [Remote host closed the connection] |
| 11:56:46 | | ^ (^) joins |
| 12:12:14 | | nicolas17 quits [Read error: Connection reset by peer] |
| 12:12:44 | | nicolas17 joins |
| 12:16:12 | | monika (boom) joins |
| 12:21:12 | | linuxgemini (linuxgemini) joins |
| 12:32:05 | | Arcorann quits [Ping timeout: 272 seconds] |
| 12:38:52 | | ^ quits [Remote host closed the connection] |
| 12:39:11 | | ^ (^) joins |
| 12:42:22 | | PredatorIWD quits [Read error: Connection reset by peer] |
| 12:53:43 | | PredatorIWD joins |
| 13:27:22 | | ^ quits [Remote host closed the connection] |
| 13:27:46 | | ^ (^) joins |
| 14:08:12 | | HackMii quits [Ping timeout: 255 seconds] |
| 14:16:20 | | Ruthalas59 quits [Quit: Ping timeout (120 seconds)] |
| 14:16:45 | | Ruthalas59 (Ruthalas) joins |
| 14:24:43 | | katia quits [Remote host closed the connection] |
| 14:25:41 | | katia (katia) joins |
| 14:26:42 | | katia quits [Remote host closed the connection] |
| 14:27:21 | | katia (katia) joins |
| 14:27:55 | | katia quits [Remote host closed the connection] |
| 14:28:59 | | katia (katia) joins |
| 14:30:07 | | katia quits [Remote host closed the connection] |
| 14:30:36 | | katia (katia) joins |
| 14:31:21 | | katia quits [Remote host closed the connection] |
| 14:32:22 | | katia (katia) joins |
| 14:33:00 | | katia quits [Remote host closed the connection] |
| 14:33:12 | | HackMii (hacktheplanet) joins |
| 14:33:56 | | katia (katia) joins |
| 14:34:29 | | katia quits [Remote host closed the connection] |
| 14:35:40 | | katia (katia) joins |
| 14:36:14 | | katia quits [Remote host closed the connection] |
| 14:37:20 | | katia (katia) joins |
| 14:37:53 | | katia quits [Remote host closed the connection] |
| 14:38:58 | | katia (katia) joins |
| 14:39:31 | | katia quits [Remote host closed the connection] |
| 14:40:32 | | katia (katia) joins |
| 14:41:06 | | katia quits [Remote host closed the connection] |
| 14:42:08 | | katia (katia) joins |
| 14:42:42 | | katia quits [Remote host closed the connection] |
| 14:43:48 | | katia (katia) joins |
| 14:44:29 | | katia quits [Remote host closed the connection] |
| 14:45:24 | | katia (katia) joins |
| 14:45:38 | | katia quits [Remote host closed the connection] |
| 15:01:35 | | katia (katia) joins |
| 15:02:26 | | katia quits [Remote host closed the connection] |
| 15:03:20 | | katia (katia) joins |
| 15:04:19 | | katia quits [Remote host closed the connection] |
| 15:12:50 | | TheTechRobo quits [Read error: Connection reset by peer] |
| 15:12:50 | | Pedrosso quits [Read error: Connection reset by peer] |
| 15:12:50 | | ScenarioPlanet quits [Read error: Connection reset by peer] |
| 15:13:20 | | Pedrosso joins |
| 15:13:26 | | ScenarioPlanet (ScenarioPlanet) joins |
| 15:13:41 | | TheTechRobo (TheTechRobo) joins |
| 15:28:23 | <nulldata> | https://fortune.com/asia/2024/03/21/korean-air-snubs-embattled-boeing-top-aircraft-supplier-inks-14-billion-deal-airbus/ |
| 16:15:22 | | GNU_world quits [Ping timeout: 255 seconds] |
| 16:21:24 | | SootBector quits [Ping timeout: 255 seconds] |
| 16:22:04 | | SootBector (SootBector) joins |
| 16:22:42 | | GNU_world joins |
| 16:48:26 | | katia (katia) joins |
| 16:49:06 | | katia quits [Remote host closed the connection] |
| 16:50:08 | | katia (katia) joins |
| 16:51:34 | | katia quits [Remote host closed the connection] |
| 16:51:48 | | katia (katia) joins |
| 16:53:52 | | katia quits [Remote host closed the connection] |
| 17:04:05 | | katia (katia) joins |
| 17:09:29 | | GNU_world quits [Ping timeout: 272 seconds] |
| 17:29:45 | | linuxgemini quits [Ping timeout: 272 seconds] |
| 17:31:52 | | GNU_world joins |
| 17:43:32 | | G4te_Keep3r34924 quits [Client Quit] |
| 17:44:02 | | G4te_Keep3r34924 joins |
| 17:58:06 | | katia quits [Remote host closed the connection] |
| 17:58:43 | | katia (katia) joins |
| 17:59:16 | | katia quits [Remote host closed the connection] |
| 18:26:51 | | linuxgemini (linuxgemini) joins |
| 19:20:57 | | jacksonchen666 (jacksonchen666) joins |
| 19:38:41 | | systwi_ quits [Quit: systwi_] |
| 19:38:42 | | nothere_ quits [Quit: Leaving] |
| 19:58:00 | | nothere joins |
| 20:27:05 | <nicolas17> | https://tonsky.me/blog/monitors/ clever way to implement dark mode (try the toggle at the top of the page) |
| 20:44:46 | <anarcat> | that's dumb |
| 20:48:56 | <FireFly> | yet another win for just using dark reader :p |
| 20:53:57 | <nicolas17> | it also shows the mouse cursor of everyone else currently reading the article :3 |
| 20:56:30 | <myself> | is THAT what that weird mouse cursor is doing? My god, I want to hurl this webpage out the window of a very, very tall building. |
| 20:56:41 | <nicolas17> | lol |
| 20:56:49 | <myself> | I eventually gave up and switched to reader view in my browser. |
| 21:02:26 | | qwertyasdfuiopghjkl quits [Client Quit] |
| 21:09:02 | | qwertyasdfuiopghjkl (qwertyasdfuiopghjkl) joins |
| 21:29:55 | | qwertyasdfuiopghjkl quits [Client Quit] |
| 21:34:05 | | qwertyasdfuiopghjkl (qwertyasdfuiopghjkl) joins |
| 22:21:37 | | nulldata quits [Client Quit] |
| 22:25:05 | | nulldata (nulldata) joins |
| 23:05:46 | | neggles quits [Remote host closed the connection] |
| 23:05:58 | | neggles (neggles) joins |
| 23:06:14 | | NotGLaDOS quits [Remote host closed the connection] |
| 23:07:20 | | NotGLaDOS joins |
| 23:13:17 | | jacksonchen666 quits [Client Quit] |
| 23:25:08 | | wickedplayer494 quits [Remote host closed the connection] |
| 23:42:17 | | icedice quits [Client Quit] |
| 23:49:48 | | icedice (icedice) joins |
| 23:52:41 | | wickedplayer494 joins |
| 23:52:50 | | wickedplayer494 is now authenticated as wickedplayer494 |