Skip to content

Instantly share code, notes, and snippets.

View mikeatm's full-sized avatar

Michael mikeatm

  • Technical University of Kenya
  • Nairobi
View GitHub Profile

Building Docker Images with ImageFactory

1. Install ImageFactory

The first step is to make sure that ImageFactory is installed on your computer. To install it,

$ sudo dnf install imagefactory
@mikeatm
mikeatm / freqy.sh
Created January 28, 2017 11:12 — forked from rsvp/freqy.sh
freqy.sh : sort lines by their frequency count -- a very useful idiom as Linux bash script.
#!/usr/bin/env bash
# bash 3.2.25(1) Ubuntu 7.10 Date : 2012-02-15
#
# _______________| freqy : sort and order lines by frequency of appearance.
#
# Usage: freqy [optional: file(s)]
#
# Notes: Will work in a pipe.
# Does not alter the file(s) themselves.
#
@mikeatm
mikeatm / logstash-1-collectd.conf
Created October 11, 2015 11:35 — forked from untergeek/logstash-1-collectd.conf
Logstash 1.4.1+ Collectd configuration
# This is the simplest definition, with the addition of a type
input {
udp {
port => 25826 # Must be specified. 25826 is the default for collectd
buffer_size => 1452 # Should be specified. 1452 is the default for recent versions of collectd
codec => collectd { } # This will invoke the default options for the codec
type => "collectd"
}
}
@mikeatm
mikeatm / logstash.conf
Created October 2, 2015 14:59 — forked from brianredbeard/logstash.conf
logstash config to break out systemd output from `/usr/lib/systemd/systemd-journal-upload`
input {
tcp {
port => 19532
type => journald
}
}
filter {
if [type] == "journald" {
multiline {
@mikeatm
mikeatm / tsws
Last active September 6, 2015 16:42 — forked from dfletcher/tsws
Totally simple web server using Bash and netcat (nc)
#!/bin/bash
# --------------------------------
# Totally Simple Web Server (TSWS)
# --------------------------------
#
# (c) 2015 Dave Fletcher
# All Rights Reserved
#
# This is free and unencumbered software released into the public domain.