00:29:39wickedplayer494 quits [Remote host closed the connection]
00:43:20icedice (icedice) joins
00:44:05icedice quits [Client Quit]
00:45:53icedice (icedice) joins
00:57:18wickedplayer494 joins
01:03:04nicolas17 joins
01:13:04Naruyoko5 joins
01:16:16Naruyoko quits [Ping timeout: 255 seconds]
01:16:43le0n quits [Ping timeout: 255 seconds]
01:23:08le0n (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:59threedeeitguy39 quits [Ping timeout: 272 seconds]
03:11:54threedeeitguy39 (threedeeitguy) joins
03:55:34PredatorIWD 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:48BlueMaxima 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:11Arcorann (Arcorann) joins
06:23:59Dango360_ joins
06:25:16_Dango360 joins
06:27:55Dango360 quits [Ping timeout: 272 seconds]
06:29:01Dango360_ quits [Ping timeout: 255 seconds]
06:57:49G4te_Keep3r34924 quits [Ping timeout: 255 seconds]
06:58:59G4te_Keep3r34924 joins
09:00:02Bleo182600 quits [Client Quit]
09:01:24Bleo182600 joins
09:48:49rohvani quits [Ping timeout: 255 seconds]
10:18:27monika quits [Quit: Zzz]
10:49:07MetaNova quits [Ping timeout: 255 seconds]
10:55:33MetaNova (MetaNova) joins
11:55:53^ quits [Remote host closed the connection]
11:56:46^ (^) joins
12:12:14nicolas17 quits [Read error: Connection reset by peer]
12:12:44nicolas17 joins
12:16:12monika (boom) joins
12:21:12linuxgemini (linuxgemini) joins
12:32:05Arcorann quits [Ping timeout: 272 seconds]
12:38:52^ quits [Remote host closed the connection]
12:39:11^ (^) joins
12:42:22PredatorIWD quits [Read error: Connection reset by peer]
12:53:43PredatorIWD joins
13:27:22^ quits [Remote host closed the connection]
13:27:46^ (^) joins
14:08:12HackMii quits [Ping timeout: 255 seconds]
14:16:20Ruthalas59 quits [Quit: Ping timeout (120 seconds)]
14:16:45Ruthalas59 (Ruthalas) joins
14:24:43katia quits [Remote host closed the connection]
14:25:41katia (katia) joins
14:26:42katia quits [Remote host closed the connection]
14:27:21katia (katia) joins
14:27:55katia quits [Remote host closed the connection]
14:28:59katia (katia) joins
14:30:07katia quits [Remote host closed the connection]
14:30:36katia (katia) joins
14:31:21katia quits [Remote host closed the connection]
14:32:22katia (katia) joins
14:33:00katia quits [Remote host closed the connection]
14:33:12HackMii (hacktheplanet) joins
14:33:56katia (katia) joins
14:34:29katia quits [Remote host closed the connection]
14:35:40katia (katia) joins
14:36:14katia quits [Remote host closed the connection]
14:37:20katia (katia) joins
14:37:53katia quits [Remote host closed the connection]
14:38:58katia (katia) joins
14:39:31katia quits [Remote host closed the connection]
14:40:32katia (katia) joins
14:41:06katia quits [Remote host closed the connection]
14:42:08katia (katia) joins
14:42:42katia quits [Remote host closed the connection]
14:43:48katia (katia) joins
14:44:29katia quits [Remote host closed the connection]
14:45:24katia (katia) joins
14:45:38katia quits [Remote host closed the connection]
15:01:35katia (katia) joins
15:02:26katia quits [Remote host closed the connection]
15:03:20katia (katia) joins
15:04:19katia quits [Remote host closed the connection]
15:12:50TheTechRobo quits [Read error: Connection reset by peer]
15:12:50Pedrosso quits [Read error: Connection reset by peer]
15:12:50ScenarioPlanet quits [Read error: Connection reset by peer]
15:13:20Pedrosso joins
15:13:26ScenarioPlanet (ScenarioPlanet) joins
15:13:41TheTechRobo (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:22GNU_world quits [Ping timeout: 255 seconds]
16:21:24SootBector quits [Ping timeout: 255 seconds]
16:22:04SootBector (SootBector) joins
16:22:42GNU_world joins
16:48:26katia (katia) joins
16:49:06katia quits [Remote host closed the connection]
16:50:08katia (katia) joins
16:51:34katia quits [Remote host closed the connection]
16:51:48katia (katia) joins
16:53:52katia quits [Remote host closed the connection]
17:04:05katia (katia) joins
17:09:29GNU_world quits [Ping timeout: 272 seconds]
17:29:45linuxgemini quits [Ping timeout: 272 seconds]
17:31:52GNU_world joins
17:43:32G4te_Keep3r34924 quits [Client Quit]
17:44:02G4te_Keep3r34924 joins
17:58:06katia quits [Remote host closed the connection]
17:58:43katia (katia) joins
17:59:16katia quits [Remote host closed the connection]
18:26:51linuxgemini (linuxgemini) joins
19:20:57jacksonchen666 (jacksonchen666) joins
19:38:41systwi_ quits [Quit: systwi_]
19:38:42nothere_ quits [Quit: Leaving]
19:58:00nothere 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:26qwertyasdfuiopghjkl quits [Client Quit]
21:09:02qwertyasdfuiopghjkl (qwertyasdfuiopghjkl) joins
21:29:55qwertyasdfuiopghjkl quits [Client Quit]
21:34:05qwertyasdfuiopghjkl (qwertyasdfuiopghjkl) joins
22:21:37nulldata quits [Client Quit]
22:25:05nulldata (nulldata) joins
23:05:46neggles quits [Remote host closed the connection]
23:05:58neggles (neggles) joins
23:06:14NotGLaDOS quits [Remote host closed the connection]
23:07:20NotGLaDOS joins
23:13:17jacksonchen666 quits [Client Quit]
23:25:08wickedplayer494 quits [Remote host closed the connection]
23:42:17icedice quits [Client Quit]
23:49:48icedice (icedice) joins
23:52:41wickedplayer494 joins