Skip to content

Instantly share code, notes, and snippets.

View gabrielcnr's full-sized avatar

Gabriel Reis gabrielcnr

View GitHub Profile
@gabrielcnr
gabrielcnr / ad.py
Last active October 4, 2021 18:18
active directory
# -*- coding: iso-8859-1 -*-
"""active_directory - a lightweight wrapper around COM support
for Microsoft's Active Directory
Active Directory is Microsoft's answer to LDAP, the industry-standard
directory service holding information about users, computers and
other resources in a tree structure, arranged by departments or
geographical location, and optimized for searching.
There are several ways of attaching to Active Directory. This
@gabrielcnr
gabrielcnr / render_env.py
Created September 16, 2019 21:20 — forked from ericdill/render_env.py
Render the dependency graph for your conda environment (needs graphviz!)
import json
import glob
from os.path import join, basename
# install this with "conda install -c conda-forge python-graphviz"
import graphviz as gv
# path to your conda environment
path = '/tmp/foo'
dg = gv.Digraph(filename='env-%s' % basename(path), format='svg')
@gabrielcnr
gabrielcnr / DependencyGraphs.ipynb
Created June 10, 2019 10:08 — forked from msarahan/DependencyGraphs.ipynb
graphs from conda repodata.json
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from enaml.qt.application import QtApplication
def test_something():
pass
r"""
[arc] C:\dev\code
λ py.test test_enaml.py