Skip to content

Instantly share code, notes, and snippets.

@cgrinker
Last active August 29, 2015 14:03
Show Gist options
  • Save cgrinker/526acf430d13a16de425 to your computer and use it in GitHub Desktop.
Save cgrinker/526acf430d13a16de425 to your computer and use it in GitHub Desktop.
Massive Dangerzone Cheatsheet

Command Line Usage

Starting the Daemon

python main.py daemon

Cleaning, wraping, building

python main.py command clean
python main.py command clean wrap
python main.py command make
python main.py command remake

Specify a plugin

python main.py command make -p namespace.of.plugin

Specify a Logging Level

python main.py command wrap -ldebug

Executing a plugin

python main.py execute namespace.of.plugin

Language features

Accessing Current Module

C++

#include "madz.h"
MADZOUT::_f::a_function();
MADZOUT::_t::AType;

Python

import madz
madz.self.a_type
madz.self.a_function()

Accessing other Modules

C++

#include "madz.h"
madz::namespace::of::module::a_function();
madz::namespace::of::module::_t::AType;

Python

import madz
#
madz.imports["namespace.of.module"].a_function()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment