Skip to content

Instantly share code, notes, and snippets.

View keybase.md

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 Aug 26, 2016
This is a daemon that is designed to chop up a log file into many smaller files.
View chop_up_log.sh
#!/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 Jan 24, 2018 — forked from ashrithr/flume-ng-agent.sh
Custom Flume NG Agent INIT script for centos for runnig multiple agents on same machine
View flume-init.d.sh
#!/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