Skip to content

Instantly share code, notes, and snippets.

@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 / README.md
Last active August 21, 2019 16:21
neo4j setup with vagrant/ansible

Clone this gist into the working directory

git clone git@github.com: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 / mix.exs
Created September 7, 2016 15:27
elixir and python
#
@mattvonrocketstein
mattvonrocketstein / discover.ex
Last active October 1, 2016 03:48
Demo usage of ex_slp lib
#
# Demo usage of ex_slp_tk for OpenSLP based Elixir node clustering
# see the library at: https://github.com/icanhazbroccoli/ex_slp_tk
#
# To use the code below, add something like this for your application's supervisor:
#
# children = children ++ [supervisor(Discovery.Supervisor, [])]
# supervise(children, opts)
#
require Logger

Keybase proof

I hereby claim:

  • I am mattvonrocketstein on github.
  • I am rocketstein (https://keybase.io/rocketstein) on keybase.
  • I have a public key ASCwRSBAv87XpgIbAM88Y_ItJf6aXQ4VgwMU7ZlsBsZ-Ugo

To claim this, I am signing this object:

defmodule Extension do
defmacro extends(module) do
# As above...
end
defmacro implements(module, protocol: protocol) do
quote do
defimpl unquote(protocol), for: unquote(module) do
import Extension
//
// This is a Jenkinsfile that backs up (parts of) Jenkins.
//
// So why not use the SCM-sync plugin? I've found it's just not configurable
// enough, and if something goes wrong it's a lot more opaque than this technique
// which uses standard shell and git commands.
//
// By default this approach covers users, credentials, and job and plugin configs,
// but not full builds/workspaces. Obviously you want to send this stuff only to
// a private repository! If you want to change the files that are included to
#
# Running this file:
#
# Download txnlog.dat:
# curl -L -o txnlog.dat https://github.com/adhocteam/homework/blob/6d5d1c71069758/proto/txnlog.dat?raw=true
#
# Run this file with your own elixir stack:
# elixir proto.exs
#
# Or, use the official elixir stack for docker:
@mattvonrocketstein
mattvonrocketstein / Makefile
Last active March 14, 2022 20:29
Various reusable make boilerplate and targets
# A placeholder to name the Gist
@mattvonrocketstein
mattvonrocketstein / keybase.md
Created December 10, 2017 04:28
keybase.md

Keybase proof

I hereby claim:

  • I am mattvonrocketstein on github.
  • I am mvonrocketstein (https://keybase.io/mvonrocketstein) on keybase.
  • I have a public key whose fingerprint is 8192 24B1 F383 9FF8 9723 BCD0 A9F8 A569 41AF 1012

To claim this, I am signing this object: