Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am bschopman on github.
  • I am bschopman (https://keybase.io/bschopman) on keybase.
  • I have a public key whose fingerprint is 8048 DB41 B8B5 820B 5261 2E70 268C 72B5 CFD2 3FD6

To claim this, I am signing this object:

@bschopman
bschopman / chop_up_log.sh
Last active August 26, 2016 08:43
This is a daemon that is designed to chop up a log file into many smaller files.
#!/bin/bash
BATCH_SIZE=5
WRITE_PATH=/tmp/
TIMEOUT_SECONDS=1
function writeBatch {
out_path="$WRITE_PATH"$(date +%s_%N)".log"
echo -e $batch > $out_path
count=0
@bschopman
bschopman / flume-init.d.sh
Last active January 24, 2018 08:24 — forked from ashrithr/flume-ng-agent.sh
Custom Flume NG Agent INIT script for centos for runnig multiple agents on same machine
#!/bin/bash
#
# Licensed to the Apache Software Foundation (ASF) under one or more
# contributor license agreements. See the NOTICE file distributed with
# this work for additional information regarding copyright ownership.
# The ASF licenses this file to You under the Apache License, Version 2.0
# (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0