Skip to content

Instantly share code, notes, and snippets.

@mattvonrocketstein
mattvonrocketstein / README.md
Last active August 21, 2019 16:21
neo4j setup with vagrant/ansible

Clone this gist into the working directory

git clone [email protected]:96670d2eb66a8ad9854b6f52a2b5339c.git vagrant-ansible-neo
cd vagrant-ansible-neo

Install the neo4j role into the working directory

ansible-galaxy install julienroubieu.neo4j -p .

Bring up the vagrant box

@mattvonrocketstein
mattvonrocketstein / ielixir-playbook.yml
Last active August 3, 2016 15:21
A playbook for building a jupyter notebook with IElixir
# playbook.yml
# installs ielixir/jupyter on a stand-alone docker.
# see: http://mattvonrocketstein.github.io/heredoc/ielixir-notebook-in-docker.html
- hosts: docker
become: yes
become_method: sudo
gather_facts: False
vars:
erls_url: "https://packages.erlang-solutions.com/erlang-solutions_1.0_all.deb"
ielixir_repo: "https://github.com/pprzetacznik/IElixir.git"
@mattvonrocketstein
mattvonrocketstein / fabfile.py
Last active August 3, 2016 08:24
release fabfile
# -*- coding: utf-8 -*-
import os
import sys
from fabric import api
from fabric import colors
from fabric.contrib.console import confirm
PKG_NAME = 'PKG_NAME'
THIS_DIR = os.path.dirname(os.path.abspath(__file__))
@mattvonrocketstein
mattvonrocketstein / fabfile.py
Last active July 29, 2016 15:57
vulture fabfile
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os
import contextlib
from fabric import api
PKG_NAME = 'MY_PKG'
VULTURE_EXCLUDE_PATHS = ['tests', ]
VULTURE_IGNORE_FUNCTIONS = ['commandline_entry_point']
@mattvonrocketstein
mattvonrocketstein / fabfile.py
Last active July 29, 2016 14:51
version_bump fabfile
# -*- coding: utf-8 -*-
import os
from fabric import api
from fabric import colors
from fabric.contrib.console import confirm
_ope = os.path.exists
_mkdir = os.mkdir
_expanduser = os.path.expanduser
_dirname = os.path.dirname
defmacro print(thing) do
if String.valid?(thing) do
quote bind_quoted: binding() do
IO.puts thing
end
else
quote bind_quoted: binding() do
IO.puts("#{inspect thing}")
end
end
@mattvonrocketstein
mattvonrocketstein / mkdocs.yml
Last active August 29, 2015 14:23
mkdocs.yml
site_name: Placeholder
theme: readable
repo_url: https://github.com/mattvonrocketstein/placeholder.git
site_author: mvr
pages:
- 'Main page': 'index.md'
- 'API Reference': 'api/index.html'
@mattvonrocketstein
mattvonrocketstein / epydoc.css
Last active February 21, 2019 16:52
epydoc.css
/* Epydoc CSS Stylesheet
*
* This is a massivley hacked stylesheet for epydoc, the very nice Python API
* Documentation generator. The general look and feel is based on sphinx.
* https://raw.githubusercontent.com/garethr/epydoc-themes/master/epydoc.css
*
* Feel free to tweak this some more to make the theme even more pleasing
* if you have the time to spare for such things. The typography in particular
* could do with sorting out. Unless you like writing masocistic CSS however,
* I'd recommend looking to refactor the markup generated by epydoc.
@mattvonrocketstein
mattvonrocketstein / dd_event.py
Last active August 29, 2015 14:22
a quick utility for writing events to the Datadog events stream
#!/usr/bin/env python
""" dd_event:
a quick utility for writing events to the Datadog events stream.
requires:
pip install dogapi
pip install argparse
"""
import argparse
@mattvonrocketstein
mattvonrocketstein / serv.py
Last active August 29, 2015 14:21
multithreaded directory server
#!/usr/bin/env python
import sys
import SocketServer
import BaseHTTPServer
import SimpleHTTPServer
class ThreadingSimpleServer(
SocketServer.ThreadingMixIn,
BaseHTTPServer.HTTPServer):