Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am safanaj on github.
  • I am safanaj (https://keybase.io/safanaj) on keybase.
  • I have a public key whose fingerprint is A410 5B0A 9F84 97EC AB5F 1683 8D5B 478C F7FE 4DAA

To claim this, I am signing this object:

FROM mhart/alpine-node:5.9.0
ENV project graylog2streamdash
RUN mkdir -p /opt/${project}
#ADD . /opt/${project}/
WORKDIR /opt/${project}
#!/usr/bin/python
import sys
import os
import re
from subprocess import Popen, PIPE
cfg_compose_file = None
containers = None
pchilds = None
diff --git a/mongodbtools/collection_stats.py b/mongodbtools/collection_stats.py
index 4e03464..bf85651 100755
--- a/mongodbtools/collection_stats.py
+++ b/mongodbtools/collection_stats.py
@@ -7,9 +7,17 @@ collections and their indexes.
from prettytable import PrettyTable
import psutil
-from pymongo import Connection
from pymongo import ReadPreference
@safanaj
safanaj / user_data.yml
Created January 14, 2015 16:28
a coreos weave network on libvirt-based VMs
#cloud-config
### splitting in files:
# user_data_0.yml
# user_data_1.yml
# user_data_2.yml
# user_data_common.yml
# # cat user_data_N.yml user_data_common.yml > ...../openstack/latest/user_data
# to build a configdrive
@safanaj
safanaj / Dockerfile
Last active August 29, 2015 14:13
docker experiment for sentry
# first experiment with docker to get a container with postgres,sentry and nginx
# ideally this could be 3 containers, so keep section separated
# an ssh folder is required to grant ssh access as root, to fill authorized_keys before build it
# a script start_services.sh could be the entry point, ie:
# # # #!/bin/sh
# # # invoke-rc.d postgresql start
# # # invoke-rc.d nginx start
# # # invoke-rc.d ssh start