Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugins #36

Open
wants to merge 58 commits into
base: main
Choose a base branch
from
Open

Plugins #36

wants to merge 58 commits into from

Conversation

kj7rrv
Copy link
Contributor

@kj7rrv kj7rrv commented Jul 12, 2022

This refactors quite a bit of CedarSentinel's code into plugins, which makes it more easily extensible and allows users to disable unneeded parts.

@kj7rrv kj7rrv marked this pull request as ready for review July 12, 2022 01:44
@kj7rrv kj7rrv closed this Jul 13, 2022
@kj7rrv kj7rrv mentioned this pull request Jul 14, 2022
kj7rrv added 5 commits March 10, 2024 17:48
Also make GPTC module thread safe
I had written the `bridge` platform, intended for use on the Pine chat
network, and the `nothing` platform, which was just for temporary
testing. Because I was done with the `nothing` platform and didn't see a
future use for it, I decided to delete it and not commit it to Git.

However, I mistyped the `rm` command; I'm not sure what exactly
happened, but my guess is that I meant to type `rm platforms/cs_platform_n`
then hit Tab, so bash would autocomplete it to
`rm platforms/cs_platform_nothing.py`. It seems that I accidentally
typed `rm platforms/cs_platform_b` instead; when I autocompleted this,
it gave `platforms/cs_platform_bridge.py`. I don't know that I did this,
but it's the only way I can see that this could have happened; it does
seem likely considering that `b` and `n` are adjacent on QWERTY
keyboards.

Thankfully, I had a small data recovery utility that I had previously
written, and I was able to find a non-erased copy of the code in my
filesystem. It would have been much better, though, to not need to
recover the file, or at least to have had a backup.

The moral of the story is:

Double-check your commands, and make frequent backups!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant