This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
filter { | |
if [type] == "apache_access" { | |
grok { | |
match => { "message" => "%{COMMONAPACHELOG}" } | |
} | |
date { | |
match => [ "timestamp" , "dd/MMM/yyyy:HH:mm:ss Z" ] | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "openVPN Logins", | |
"services": { | |
"query": { | |
"list": { | |
"0": { | |
"query": "authentication succeeded", | |
"alias": "", | |
"color": "#7EB26D", | |
"id": 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "Nginx Hits", | |
"services": { | |
"query": { | |
"list": { | |
"1": { | |
"id": 1, | |
"color": "#890F02", | |
"alias": "", | |
"pin": false, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
wget https://download.elastic.co/logstash/logstash/packages/debian/logstash_1.5.4-1_all.deb | |
dpkg --install logstash_1.5.4-1_all.deb | |
vi /etc/logstash/conf.d/logstash.conf | |
# https://github.com/jruby/jruby/issues/1561 | |
cd /tmp/ | |
sudo git clone https://github.com/jnr/jffi.git | |
cd jffi/ | |
apt-get install -y ant | |
ant jar |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"title": "springbokmta Mail", | |
"services": { | |
"query": { | |
"list": { | |
"0": { | |
"query": "*", | |
"alias": "", | |
"color": "#7EB26D", | |
"id": 0, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# GUI-related packages | |
pkgs=" | |
xserver-xorg-video-fbdev | |
xserver-xorg xinit | |
gstreamer1.0-x gstreamer1.0-omx gstreamer1.0-plugins-base | |
gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-alsa | |
gstreamer1.0-libav | |
epiphany-browser | |
lxde lxtask menu-xdg gksu | |
xserver-xorg-video-fbturbo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# https://www.raspberrypi.org/documentation/hardware/raspberrypi/revision-codes/README.md | |
cpuinfo=`cat /proc/cpuinfo | grep "Revision"|awk -F': ' '{printf $2}'` | |
model=`cat /sys/firmware/devicetree/base/model` | |
case ${cpuinfo} in | |
"0002" ) | |
echo "Revision : 0002 (Model B Rev 1, 256MB)" ;; | |
"0003" ) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
SubADDR="" | |
SubAPI="rest/jukeboxControl.view" | |
SubUSER="" | |
SubPASS="" | |
SubSALT="" | |
SubVER="1.16.1" | |
SubCLI="curl" | |
SubAction=$1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This script will launch and configure a step-ca SSH Certificate Authority | |
# with OIDC and AWS provisioners | |
# | |
# See https://smallstep.com/blog/diy-single-sign-on-for-ssh/ for full instructions | |
OIDC_CLIENT_ID="[OAuth client ID]" # from Google | |
OIDC_CLIENT_SECRET="[OAuth client secret]" # from Google | |
ALLOWED_DOMAIN="[the domain name of accounts your users will use to sign to Google]" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# This script will get an SSH host certificate from our CA and add a weekly | |
# cron job to rotate the host certificate. | |
# | |
# See https://smallstep.com/blog/diy-single-sign-on-for-ssh/ for full instructions | |
CA_URL="[Your CA's URL]" | |
ALLOWED_DOMAIN="[the domain name of accounts your users will use to sign to Google]" | |
CA_NAME="[A name for your CA]" |
OlderNewer