typeName in ("Task") and taskAssignee = me and taskStatus != "Completed" and taskStatus != "Deferred"
typeName in ("Host", "URL") and summary contains "xn--"
# 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; |
#!/usr/bin/env bash | |
# Instructions for getting the ThreatConnect sample app (https://github.com/ThreatConnect-Inc/TCS_-_SampleApp) | |
# running on a linux vagrant box (https://atlas.hashicorp.com/ubuntu/boxes/trusty64). | |
# basic updates | |
sudo apt-get update; | |
sudo apt-get -y install git; | |
cd /vagrant/; |
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() |
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) |
function gfork() { | |
# Clone a repo that is a fork ($1) and set an upstream repo ($2) | |
# clone the given repo | |
git clone $1; | |
# get the name of the cloned repo | |
REPO=$(echo $1 | grep -o "[^/]*\.git$") | |
# go into the directory of the cloned repo | |
cd ${REPO:0:(${#REPO} - 4)} | |
# set upstream | |
git remote add upstream https://github.com/$2.git |
import bs4 | |
import requests | |
r = requests.get("https://www.blackhat.com/us-17/training/index.html") | |
s = bs4.BeautifulSoup(r.text, 'lxml') | |
# find all <h2> elements (the headings that contain the headings for the trainings) | |
h2 = s.find_all('h2') |
language: python | |
python: 3.5 | |
branches: | |
only: | |
- master | |
# before_install: | |
install: | |
- pip install requests | |
- pip install pytest | |
- pip install pytest-cov |
I hereby claim:
To claim this, I am signing this object:
# Install python3.5 | |
sudo -H apt-get install -y build-essential checkinstall | |
sudo -H apt-get install -y libreadline-gplv2-dev libncursesw5-dev libssl-dev libsqlite3-dev tk-dev libgdbm-dev libc6-dev libbz2-dev | |
cd /usr/src | |
sudo wget https://www.python.org/ftp/python/3.5.2/Python-3.5.2.tgz | |
sudo -H tar xzf Python-3.5.2.tgz | |
cd Python-3.5.2 |