Skip to content

Instantly share code, notes, and snippets.

View databeast's full-sized avatar

Conrad Constantine databeast

View GitHub Profile
@mattberther
mattberther / docker-cleanup
Last active November 16, 2020 12:43
Thorough docker cleanup script
#!/bin/sh
# Cleanup docker files: untagged containers and images.
#
# Use `docker-cleanup -n` for a dry run to see what would be deleted.
exited_containers() {
docker ps -a -q -f status=exited
}
untagged_containers() {
@rmrf-run
rmrf-run / bro-ids.json
Created September 22, 2014 15:44
Kibana Dashboard for Bro IDS, logstash, elasticsearch
{
"title": "Traffic Eth1 BRO IDS",
"services": {
"query": {
"idQueue": [],
"list": {
"0": {
"query": "files.log",
"alias": "",
"color": "#7EB26D",
@anderser
anderser / convert.py
Last active January 3, 2024 08:52
Convert from NodeXL (via GraphML-format) to D3-ready json for force layout while adding modularity groups (communities) as attribute to nodes. Useful for coloring nodes via modularitygroup attribute. Requires networkx and python-louvain. First export as GraphML file from your NodeXL-sheet. Then run: >>> python convert.py -i mygraph.graphml -o ou…
#!/usr/bin/env python
import sys
import argparse
import networkx as nx
import community
from networkx.readwrite import json_graph
def graphmltojson(graphfile, outfile):