2025-02-26 06:55:29 i corected some bugs ... 2025-02-26 06:55:59 update https://github.com/cleobuline/some-c-sources/blob/main/forth_gmp.c 2025-02-26 08:51:32 Damn, my server's just been absolutely hammered with bruteforcing for a week 2025-02-26 08:52:26 Was already getting this before, but I'm getting enough now to keep my CPU consistently 6-7% 2025-02-26 08:52:48 Filled up my disk with logs in a few days, will have to clear it out every week at this rate 2025-02-26 08:53:21 Is there some massive increased campaign at the moment or am I just lucky / was I lucky before? 2025-02-26 08:54:17 ssh you mean? 2025-02-26 08:54:31 Mostly ssh yeah 2025-02-26 08:54:42 I changed the port, worked like a charm 2025-02-26 08:54:53 I'm not using the default port 2025-02-26 08:54:58 ugh 2025-02-26 08:58:22 I guess I need to change it again lol 2025-02-26 08:59:16 Maybe my open ports were scanned and that got shared somewhere? I've got no clue how these hackers operate 2025-02-26 09:00:53 I've had that once, so it may be a good idea 2025-02-26 09:16:20 It doesn't help that Ubuntu have made it so hard to change the port 2025-02-26 09:16:58 The config file now says essentially "Port doesn't do anything, see the man"; the man doesn't say anything about this 2025-02-26 09:18:05 It turns out Port does actually work, but you have to restart systemd's daemon and reload ssh.socket for it to take effect 2025-02-26 09:21:23 And then there's https://bugs.launchpad.net/ubuntu/+source/openssh/+bug/2087551 2025-02-26 09:24:10 Well it's back to normal after changing port, and at least that confirms what the traffic I'm seeing on my dashboard is for 2025-02-26 09:24:40 Thanks pgimeno 2025-02-26 09:26:20 np, glad it helped 2025-02-26 09:26:41 systemd_hatred++; 2025-02-26 09:28:33 No kidding 2025-02-26 09:37:28 Don't read this if you value your sanity https://serverfault.com/a/1159600 2025-02-26 09:38:23 The info's already out of date, but just the fact you have to add empty ListenStream= first to stop listening on port 22 2025-02-26 13:25:16 "Don't read this if you value your sanity" - no shit, that made my head blow 2025-02-26 13:40:04 as for identification to the bot commented earler, Libera cloaks could work - make it only work for user mask matching *!*@user/* and use user/* as ID 2025-02-26 13:40:24 ugh 2025-02-26 13:40:32 pgimeno: agreed 2025-02-26 13:41:13 that would void the need for registration, placing that burden on Libera 2025-02-26 13:42:35 but then it would work only on Libera, which isn't necessarily a problem 2025-02-26 14:03:53 https://ircv3.net/irc/#account-tracking 2025-02-26 14:04:00 That's what I was thinking of 2025-02-26 14:04:27 Specifically https://ircv3.net/specs/extensions/account-tag 2025-02-26 14:09:58 There are many ways to skin a cat 2025-02-26 15:45:51 How does one simulate something like 'defer' keywords of Zig or Go where it deallocates heap allocations on exit. Do I have to redeclare the 'bye' word and make it free a linked list of pointers for example? 2025-02-26 15:46:30 on EXIT? 2025-02-26 15:47:08 defer will run a cleanup function on return from a subroutine 2025-02-26 15:47:21 (Golang defer, not Forth defer, which defines a function pointer) 2025-02-26 15:47:57 Right. I was thinking about the main function where it would be exit 2025-02-26 15:49:02 van der Horst defined a word called co that can be used for cleanup (not original to him, but this is a good example) 2025-02-26 15:49:49 https://home.hccnet.nl/a.w.m.van.der.horst/forthlecture6.html 2025-02-26 15:50:52 !gforth : (let!) dup @ over swap 2r> rot >r rot >r >r >r ! ; : let! (let!) 2r> ! ; ( example usage: ) decimal : dec. 10 base let! . ; hex 53 dup dec. . 2025-02-26 15:50:52 redefined dec. 83 53 2025-02-26 15:51:05 in this case the cleanup code is setting a temporarily reassigned value back to its original value 2025-02-26 15:51:18 a temporarily reassigned *variable*, sorry 2025-02-26 15:51:25 and in the example usage the variable in question is base 2025-02-26 15:51:46 which is set to (decimal) 10 for the duration of the call to . 2025-02-26 15:52:24 in this case I kind of inlined co into (let!) 2025-02-26 15:52:58 + 2025-02-26 16:42:50 xentrac: awesome, thanks 2025-02-26 19:08:06 xentrac: jeez, all those stack manipulations rotated my brain a bit 2025-02-26 19:50:53 user51: me too 2025-02-26 19:54:44 xentrac: good thing it was a linear transformation! 2025-02-26 20:18:59 do you what tu experiment my forth-bot-irc ? 2025-02-26 20:19:15 with unlimited precision :) 2025-02-26 20:19:36 it works for now :) 2025-02-26 20:19:52 yay! 2025-02-26 20:20:19 i need the IP of this irc server to configure 2025-02-26 20:21:06 this ? 51.161.82.214 2025-02-26 20:21:27 dunno, Libera has a lot of IRC servers 2025-02-26 20:23:37 ForthBot: LOAD "test.fth" 2025-02-26 20:23:38 MOT DEFINIS : 2025-02-26 20:23:38 HELLO DOUBLE FACT POW FIBONACCI COUNTDOWN TUCK 2DROP 2025-02-26 20:23:38 Stack: 30 2025-02-26 20:23:39 MOTS DEFINI : 2025-02-26 20:23:40 HELLO DOUBLE FACT POW FIBONACCI COUNTDOWN TUCK 2DROP TRIPLE POW2 TEST-CASE 2025-02-26 20:23:40 test2.fth loaded ! 2025-02-26 20:23:47 bonjour ForthBot 2025-02-26 20:23:53 100 FACT 2025-02-26 20:24:06 ForthBot: 100 FACT 2025-02-26 20:24:10 you probably don't want it to output 8 lines when it starts 2025-02-26 20:24:32 that's going to get annoying 2025-02-26 20:24:38 ForthBot: 1 2 3 4 2025-02-26 20:24:42 ForthBot: .S 2025-02-26 20:24:42 Stack: 9332621544394415268169923885626670049071596826438162146859296381 2 3 4 2025-02-26 20:24:56 ForthBot: 3 4 + . 2025-02-26 20:24:56 7 2025-02-26 20:25:01 ForthBot: FLUSH 2025-02-26 20:25:18 sweet :) 2025-02-26 20:25:28 ForthBot: 1 2 3 4 2 ROLL .S 2025-02-26 20:25:28 Stack: 1 2 4 3 2025-02-26 20:25:30 ForthBot: : 4a 4 + ; 3 4a . 2025-02-26 20:25:31 7 2025-02-26 20:26:17 there are basic words 2025-02-26 20:26:48 ForthBot: : CARRE DUP * ; 2025-02-26 20:27:01 3 CARRE . 2025-02-26 20:27:12 ForthBot: 3 CARRE 2025-02-26 20:27:18 ForthBot: .S 2025-02-26 20:27:18 Stack: 1 2 4 3 9 2025-02-26 20:27:33 ForthBot: bye 2025-02-26 20:27:33 Unknown word: bye 2025-02-26 20:27:36 ForthBot: * . 2025-02-26 20:27:36 27 2025-02-26 20:28:11 cleobuline: would rdrop hang it? 2025-02-26 20:28:33 no return stack words 2025-02-26 20:29:09 hmm.. does it have DEPTH? 2025-02-26 20:29:19 yes 2025-02-26 20:29:31 ForthBot: .s 2025-02-26 20:29:31 Unknown word: .s 2025-02-26 20:29:38 ForthBot: .S 2025-02-26 20:29:38 Stack: 1 2 4 2025-02-26 20:29:53 ForthBot: DEPTH .S 2025-02-26 20:29:53 Stack: 1 2 4 3 2025-02-26 20:30:55 ForthBot: 2.99 . 2025-02-26 20:30:55 ForthBot: FACT .S 2025-02-26 20:31:37 not implemented begin again only DO LOOP 2025-02-26 20:32:20 ForthBot: .S 2025-02-26 20:32:20 Stack: 1 2025-02-26 20:32:54 10 fact 0 do i fact loop 2025-02-26 20:32:55 ForthBot: 2 1024 POW 2025-02-26 20:33:27 ForthBot: -5 FACT 2025-02-26 20:33:36 ForthBot: .S 2025-02-26 20:33:36 Stack: 1 1797693134862315907729305190789024733617976978942306572734300811 2025-02-26 20:33:52 ignore this case :) 2025-02-26 20:34:09 ForthBot: -3 FACT . 2025-02-26 20:34:10 1 2025-02-26 20:36:09 ForthBot: QUIT 2025-02-26 20:36:09 Unknown word: QUIT 2025-02-26 20:36:24 ForthBot: WORDS 2025-02-26 20:36:24 HELLO DOUBLE FACT POW FIBONACCI COUNTDOWN TUCK 2DROP TRIPLE POW2 TEST-CASE 4a CARRE 2025-02-26 20:36:57 ForthBot: 1 4a . 2 4a . 2025-02-26 20:36:57 5 2025-02-26 20:36:57 6 2025-02-26 20:38:06 ForthBot: ." Hello World !" 2025-02-26 20:38:06 Hello World ! 2025-02-26 20:39:53 i do not implement the Word "QUIT" yet :) 2025-02-26 20:40:40 ForthBot: FORGET HELLO 2025-02-26 20:40:50 ForthBot: WORDS 2025-02-26 20:40:50 Dictionary empty 2025-02-26 20:41:36 ForthBot: : HELLO ; 2025-02-26 20:41:43 ForthBot: HELLO 2025-02-26 20:42:02 your word does nothing 2025-02-26 20:42:23 ForthBot: i think : : ; could cause problems 2025-02-26 20:42:24 Unknown word: i 2025-02-26 20:42:24 Unknown word: think 2025-02-26 20:42:34 oh, sweetl 2025-02-26 20:43:10 cleobuline: my bad, i wanted to ping you 2025-02-26 20:43:12 You have to vote betwin you to adopt this bot on yur channel now 2025-02-26 20:43:37 end of session :) 2025-02-26 20:45:26 i think it funny to get such a bot on this chanel 2025-02-26 20:47:17 imo bots should accept pms, clutters the channel less 2025-02-26 20:50:52 i can modify the bot to work only in private messages 2025-02-26 21:18:55 !gforth ." :D" cr 2025-02-26 21:18:55 :D 2025-02-26 21:19:10 we already have one 2025-02-26 21:23:29 !gforth : test ." Hello World " ; 2025-02-26 21:23:55 !gforth test 2025-02-26 21:23:57 https://0x0.st/8AhN.txt 2025-02-26 21:24:20 It all has to be on the same line 2025-02-26 21:24:36 !gforth : test ." Hello World " ; test 2025-02-26 21:24:37 Hello World 2025-02-26 21:24:49 ha ok 2025-02-26 22:27:19 mon bot est mieux que gforth_eval_bot , il a son propre source 2025-02-26 22:30:55 et on peut calculer avec précision arbitraire 2025-02-26 22:31:16 (sorry, my French isn't very good) 2025-02-26 22:39:11 xentrac: oui mais c'est un oneliner :) 2025-02-26 22:40:01 xentrac: i push the source now :) https://github.com/cleobuline/some-c-sources/blob/main/forth_gmp_irc_bot.c 2025-02-26 22:40:46 there is less words than in gforth , but it is more interactive 2025-02-26 22:41:21 and it have its own source 2025-02-26 22:41:35 not depending of gforth 2025-02-26 22:41:57 anyone may add primitives to it 2025-02-26 23:31:56 you like this source xentrac ? 2025-02-26 23:45:31 sleeping