Skip to content

Instantly share code, notes, and snippets.

View pozgo's full-sized avatar
💭
¯\_(ツ)_/¯

Ozzy pozgo

💭
¯\_(ツ)_/¯
View GitHub Profile
@pozgo
pozgo / .zshrc
Last active January 20, 2017 13:33
export ZSH=$HOME/.oh-my-zsh
export TERM="xterm-256color"
export LANG="en_US.UTF-8"
ZSH_THEME="powerlevel9k/powerlevel9k"
plugins=(git bundler osx rake ruby zsh-completions)
source $ZSH/oh-my-zsh.sh
[[ -e ~/.bashrc ]] && emulate sh -c 'source ~/.bashrc'
# Custom Settings
POWERLEVEL9K_MODE='awesome-patched'
POWERLEVEL9K_SHORTEN_DIR_LENGTH=2
@pozgo
pozgo / logger
Last active October 8, 2015 20:01
Journalctl to file for logstash-forwarder process
#!/bin/bash
is=`ps aux | grep "journalctl -f" | grep -v grep | awk '{print$2}'`
file=/var/log/system.log
msize="12400000" # Max file sieze set to 10MB
asize=`ls -l /var/log/system.log | awk '{print$5}'`
logstaship=`fleetctl list-machines -l | grep logsystem | awk '{print$2}'`
hostname=`hostname`
# Checking the size of log file