Skip to content

Instantly share code, notes, and snippets.

View Vincent-CIRCL's full-sized avatar

Vincent-CIRCL

View GitHub Profile
@Vincent-CIRCL
Vincent-CIRCL / extractor.py
Created August 9, 2019 06:33
Extraction of MISP tags from machinetag.json in a list for Dataturks
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
import logging.config
# ==================== ------ STD LIBRARIES ------- ====================
import pathlib
import json
# ==================== ------ PREPARATION ------- ====================
@Vincent-CIRCL
Vincent-CIRCL / Launcher of class
Created July 23, 2019 11:06
Create a class that can launch method of other classes programmatically.
print("test")
class Test():
def __init__(self) :
print("initiated")
def start(self):
print("started")
def stop(self):
@Vincent-CIRCL
Vincent-CIRCL / tuto.sh
Last active March 22, 2021 20:15
For-Dummy tutorial for Sphinx documentation of a Python project
# Sources :
https://goldilocks.readthedocs.io/en/latest/source/goldilocks.html#module-goldilocks.strategies
https://samnicholls.net/2016/06/15/how-to-sphinx-readthedocs/
https://gisellezeno.com/tutorials/sphinx-for-python-documentation.html
http://www.sphinx-doc.org/en/master/man/sphinx-apidoc.html
https://stackoverflow.com/questions/2701998/sphinx-autodoc-is-not-automatic-enough
https://github.com/MISP/PyMISP/blob/master/docs/source/conf.py
https://raw.githubusercontent.com/MISP/PyMISP/master/docs/source/index.rst
https://raw.githubusercontent.com/MISP/PyMISP/master/docs/source/modules.rst
https://stackoverflow.com/questions/13516404/sphinx-error-unknown-directive-type-automodule-or-autoclass/17004855
@Vincent-CIRCL
Vincent-CIRCL / docker_auto_commiter.py
Last active June 14, 2019 11:47
Auto commit docker contenairs to images, with a rolling number of saves
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# See : https://github.com/docker/docker-py
import docker
import argparse
import pathlib
from collections import deque
import time
import datetime