This file contains hidden or 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
| input { | |
| file { | |
| type => "apache" | |
| start_position => "beginning" | |
| # path => ["/var/log/secure", "/var/log/messages"] | |
| path => ["/var/log/access.log.201*"] | |
| exclude => ["*.gz"] | |
| } | |
| } |
This file contains hidden or 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
| 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 { |
This file contains hidden or 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
| input { | |
| file { | |
| type => "WASSystemOut" | |
| start_position => "beginning" | |
| # path => ["/var/log/secure", "/var/log/messages"] | |
| # exclude => ["*.gz"] | |
| path => ["/waslogs/SystemOut*log"] | |
| } | |
| } |
This file contains hidden or 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
| 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> |
This file contains hidden or 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
| /usr/sbin/logwatch --service iptables --service named --service sshd --detail med --range yesterday --output mail --format html |
This file contains hidden or 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
| xswp0001:~/bin # cat sles-updates | |
| #!/bin/sh | |
| MAIL_TO="[email protected]" | |
| ZYP=/usr/bin/zypper | |
| HOSTNAME="(`hostname`)" | |
| if [ "$1" != "mail" ]; then |
This file contains hidden or 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
| chrome://net-internals/#hsts |
This file contains hidden or 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
| # =================================================================================== | |
| # 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 |
This file contains hidden or 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
| fallocate -l 2G /swapfile | |
| chmod 600 /swapfile | |
| mkswap /swapfile | |
| swapon /swapfile | |
| echo "/swapfile none swap sw 0 0" >> /etc/fstab |
This file contains hidden or 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
| <!-- 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> |
OlderNewer