Skip to content

Instantly share code, notes, and snippets.

View thikade's full-sized avatar

Thomas Hikade thikade

  • Alpium IT Solutions
  • Vienna
View GitHub Profile
@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"]
}
}
@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_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 / 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 / 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 / sles-updates.sh
Created November 20, 2015 16:09
SLES12 Auto-Update Downloader
xswp0001:~/bin # cat sles-updates
#!/bin/sh
MAIL_TO="me@mine.com"
ZYP=/usr/bin/zypper
HOSTNAME="(`hostname`)"
if [ "$1" != "mail" ]; then
@thikade
thikade / hintsheet
Created November 21, 2015 20:08
Chrome Config Hintsheet
chrome://net-internals/#hsts
@thikade
thikade / was_headers_http.conf.
Created December 5, 2015 10:21
WAS headers with mod_proxy
# ===================================================================================
# SET WAS specific headers
# ===================================================================================
ProxyPreserveHost On
# for handling DNS aliases use env variables derived from 'Host' HTTP header
SetEnvIf Host ^host1 HOST1
SetEnvIf Host ^host2 HOST2
RequestHeader set $WSSN host1 env=HOST1
RequestHeader set $WSSN host2 env=HOST2
RequestHeader set $WSSP 80
fallocate -l 2G /swapfile
chmod 600 /swapfile
mkswap /swapfile
swapon /swapfile
echo "/swapfile none swap sw 0 0" >> /etc/fstab
@thikade
thikade / pom.xml
Created June 1, 2016 15:04
How to resolve IBM Liberty dependency in Maven
<!-- The problem was maven was only looking at the central repository. To add IBM's repository, you need the following in your POM: -->
<repositories>
<repository>
<id>Liberty</id>
<name>Liberty Repository</name>
<url>http://public.dhe.ibm.com/ibmdl/export/pub/software/websphere/wasdev/maven/repository/</url>
</repository>
</repositories>