This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# configure | |
feeds = [] # @see https://github.com/certtools/intelmq/issues/1442 | |
files = [] # @see https://github.com/certtools/intelmq/issues/1442 | |
rootdir = "/home/.../your-files/" | |
# generator | |
from pprint import pprint | |
definitions = [] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Example of use: | |
# gpg = GPGSafe(use_agent=False, homedir="~/.gnupg/") (instead of gpg = gnupg.GPG(...)) | |
# gpg.sign(text) | |
import codecs | |
from functools import wraps | |
import gnupg | |
class GPGSafe: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def bot_reload(self, bot_id): | |
pid = self.__read_pidfile(bot_id) | |
if not pid: | |
if self.controller._is_enabled(bot_id): | |
log_bot_error('stopped', bot_id) | |
return 'stopped' | |
else: | |
log_bot_message('disabled', bot_id) | |
return 'disabled' | |
if not self.__status_process(pid): |