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.
rl]$ strace -xx rmdir ./* | grep -e '-1 E'
execve("\x2f\x62\x69\x6e\x2f\x72\x6d\x64\x69\x72", ["\x72\x6d\x64\x69\x72", "\x2e\x2f\x6d\x69\x6b\x65\x61\xc3\xa2\xc2\x81\xc2\x84\x63\x6e\x74"], [/* 45 vars */]) = 0
brk(0) = 0x80d000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x2b2c29ec3000
access("\x2f\x65\x74\x63\x2f\x6c\x64\x2e\x73\x6f\x2e\x70\x72\x65\x6c\x6f\x61\x64", R_OK) = -1 ENOENT (No such file or directory)
open("\x2f\x6f\x70\x74\x2f\x6d\x61\x75\x69\x2f\x6c\x69\x62\x2f\x74\x6c\x73\x2f\x78\x38\x36\x5f\x36\x34\x2f\x6c\x69\x62\x63\x2e\x73\x6f\x2e\x36", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("\x2f\x6f\x70\x74\x2f\x6d\x61\x75\x69\x2f\x6c\x69\x62\x2f\x74\x6c\x73\x2f\x78\x38\x36\x5f\x36\x34", 0x7fff6c232d40) = -1 ENOENT (No such file or directory)
open("\x2f\x6f\x70\x74\x2f\x6d\x61\x75\x69\x2f\x6c\x69\x62\x2f\x74\x6c\x73\x2f\x6c\x69\x62\x63\x2e\x73\x6f\x2e\x36", O_RDONLY) = -1 ENOENT (No such file or directory)
stat("\x2f\x6f\x70\x7