Skip to content

Instantly share code, notes, and snippets.

View ParthibanSoundram's full-sized avatar
🎯
Focusing

Parthiban Soundram ParthibanSoundram

🎯
Focusing
View GitHub Profile
@ParthibanSoundram
ParthibanSoundram / luigi_first_steps.md
Created August 26, 2021 05:31 — forked from tomsing1/luigi_first_steps.md
First steps with the Luigi workflow manager

First steps with the Luigi workflow manager

As an introduction into Luigi, I am following this tutorial with some modifications, e.g. installation using conda.

The problems and solutions described in the examples below have led to the development of sciluigi,

@ParthibanSoundram
ParthibanSoundram / Workout programs
Last active December 18, 2018 05:29
BossyDistantDownload created by ParthibanSoundr - https://repl.it/@ParthibanSoundr/BossyDistantDownload
from datetime import datetime
from pytz import timezone
format = "%Y-%m-%d %H:%M:%S %Z%z"
print("----------------DateTime to timezone Local time---------------")
date_str = "2018-12-17 17:04:10"
datetime_obj_naive = datetime.strptime(date_str, "%Y-%m-%d %H:%M:%S")
= Examples of how OTX API calls relate different indicator types =
Official documentation is available at https://otx.alienvault.com/api but may be missing a couple of the newer calls
These are some unofficial notes
The API key below is for a dummy demo account. It should work but I would suggest using your own.
Some of the JSON responses are quite nested, and editor such as http://jsoneditoronline.org/ may be useful
== Input: Hostname / Domain ==
The following calls can be made for both domains and hostname, ie you can swap 'hostname' with 'domain' below.