jq is useful to slice, filter, map and transform structured json data.
brew install jq
# GROK Custom Patterns (add to patterns directory and reference in GROK filter for iptables events): | |
# GROK Patterns for iptables Logging Format | |
# | |
# Created 6 Aug 2016 by Brian Turek <brian.turek@gmail.com> | |
# Most of this was taken from another source but now I cannot find it for credit | |
# | |
# Usage: Use the IPTABLES pattern | |
NETFILTERMAC %{MAC:dest_mac}:%{MAC:src_mac}:%{ETHTYPE:ethtype} | |
ETHTYPE (?:(?:[A-Fa-f0-9]{2}):(?:[A-Fa-f0-9]{2})) |
#!/bin/bash | |
### | |
### This is the script I use to setup time machine to work with my LinkSys attched NAS (USB 3.0 Hard Drive) | |
### | |
#### Configurable Parameters ######### | |
SIZE=300g | |
NAME="Z.org Time Machine Backup" |
#!/usr/bin/env python | |
""" | |
Usage: | |
using ~/.slackmerc file: | |
$ slackme some info # with `default` profile | |
$ slackme --profile alert some info # using `alert` profile | |
put profile in filename: |
#!/usr/bin/env python | |
#version 2.13 | |
#author tobyrosen@gmail.com | |
""" | |
Copyright (c) 2011, Sony Pictures Imageworks | |
All rights reserved. | |
Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: | |
Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. | |
Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation | |
and/or other materials provided with the distribution. |
#!/bin/bash -xe | |
#THIS SCRIPT MUST BE RUN AS ROOT | |
#update packages | |
echo "deb http://apt.opscode.com/ precise-0.10 main" | tee /etc/apt/sources.list.d/opscode.list | |
mkdir -p /etc/apt/trusted.gpg.d |