This file contains 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
import os | |
import re | |
# read a file or define a variable that is a string here... | |
# this defines how much you would like to add to the values (can be a negative number) | |
delta = 2 | |
matches = re.findall(':emphasize-lines: (.*)', file_text) |
This file contains 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 get_complete_indicator_data(indicator_object): | |
"""Function to get all available data about an indicator.""" | |
# start off with the basic indicator information | |
indicator_data = indicator_object.json | |
# remove the description attribute of the json as we will this more completely later | |
del indicator_data['description'] | |
indicator_data['associated_groups'] = list() | |
indicator_data['associated_indicators'] = list() |
This file contains 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
# for more info on Blockadeio, see: https://github.com/blockadeio/cloud_node | |
# install necesary libraries | |
sudo apt-get update; | |
sudo apt install -y python-pip python-dev libssl-dev libffi-dev mongodb-server; | |
sudo pip install virtualenv; | |
sudo apt-get install -y git; | |
# clone the https repo | |
git clone https://github.com/blockadeio/cloud_node.git; |
NewerOlder