Getting started:
Related tutorial: http://cd64.de/mysql-cli
SQL joins infografic: http://cd64.de/sql-joins
# This script can be used to raise a graylog2/gelf message | |
# gzip it and send it to a graylog server using netcat (nc) | |
hostname='gelftester' | |
short_message='test message short version' | |
full_message='longer test message. dont\n worry be happy' | |
level=1 | |
facility='gelftester' | |
# gnu date | |
date=$(date +'%s.%N') |
// comments in c are made with two // |
#!/bin/bash | |
##################################################### | |
# Name: Bash CheatSheet for Mac OSX | |
# | |
# A little overlook of the Bash basics | |
# | |
# Usage: | |
# | |
# Author: J. Le Coupanec | |
# Date: 2014/11/04 |
Getting started:
Related tutorial: http://cd64.de/mysql-cli
SQL joins infografic: http://cd64.de/sql-joins
#!/bin/bash | |
# Name: Mark Henes | |
# Date: 10-18-15 | |
# Purpose: Capture top, uptime, and ps results. | |
### | |
#function name { | |
# | |
#} | |
function top_func { | |
top |
#!/bin/bash | |
# Name: Mark Henes | |
# Date: 10-18-2015 | |
# Purpose: Module of date formats and commands. | |
### | |
# Different formats, functions, and loops as timestamp counters to be used as a module for parent scripts. | |
# Day | |
function d { | |
date "+%d" |