Skip to content

Instantly share code, notes, and snippets.

@thikade
thikade / sles-updates.sh
Created November 20, 2015 16:09
SLES12 Auto-Update Downloader
xswp0001:~/bin # cat sles-updates
#!/bin/sh
MAIL_TO="[email protected]"
ZYP=/usr/bin/zypper
HOSTNAME="(`hostname`)"
if [ "$1" != "mail" ]; then
@thikade
thikade / cron_logwatch_details
Last active November 20, 2015 16:14
logwatch config and overrides for SLES12
/usr/sbin/logwatch --service iptables --service named --service sshd --detail med --range yesterday --output mail --format html
@thikade
thikade / bootstrap_3_full_class_list
Created October 14, 2015 19:52 — forked from cosmicscr/bootstrap_3_full_class_list
bootstrap 3 full class list
Here are all the classes from Bootstrap 3 (version 3.1.1).
Method of extraction:
1. Download Bootstrap 3 and rename bootstrap.css as "bootstrap.html"
2. Add the following 24 lines of code to the very bottom of the bootstrap.html file:
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.min.js"></script>
<script>
@thikade
thikade / logstash_slowservice.conf
Created April 5, 2015 11:54
logstash config example using custom grok filters
input {
file {
type => "WASSystemOut"
start_position => "beginning"
# path => ["/var/log/secure", "/var/log/messages"]
# exclude => ["*.gz"]
path => ["/waslogs/SystemOut*log"]
}
}
@thikade
thikade / logstash_metric.conf
Created April 5, 2015 11:50
logstash: metric filter example
input {
##
## how to feed into this input: "cat /tmp/logstash.input | pv -l -L 10000 | nc localhost 33333"
##
tcp { type => "tcp" port => 33333 }
}
filter {
metrics {
@thikade
thikade / logstash_apache.conf
Created April 5, 2015 11:49
logstash: apache access log example using fingerprint filter - how to create unified event ids that can be re-imported/updated into Elasticsearch
input {
file {
type => "apache"
start_position => "beginning"
# path => ["/var/log/secure", "/var/log/messages"]
path => ["/var/log/access.log.201*"]
exclude => ["*.gz"]
}
}