This is a short step-by-step guide on installing ElasticSearch LogStash and Kibana Stack on a CentOS environment to gather and analyze logs.
rpm -ivh https://dl.dropboxusercontent.com/u/5756075/jdk-7u45-linux-x64.rpm
| /** | |
| * Generate repeating hexagonal pattern with CSS3 (SO) - 1 element/ hexagon !!! | |
| * http://stackoverflow.com/q/10062887/1397351 | |
| */ | |
| * { box-sizing: border-box; margin: 0; padding: 0; } | |
| .row { margin: -18.5% 0; text-align: center; } | |
| .row:first-child { margin-top: 2.25%; } | |
| .hexagon { | |
| position: relative; | |
| display: inline-block; |
| #!/bin/sh | |
| # | |
| # Amazon EC2 user-data file for automatic configuration of IPsec/L2TP VPN server | |
| # on a Ubuntu or Debian instance. Tested with Ubuntu 14.04 & 12.04 and Debian 8 & 7. | |
| # With minor modifications, this script *can also be used* on dedicated servers | |
| # or any KVM- or XEN-based Virtual Private Server (VPS) from other providers. | |
| # | |
| # DO NOT RUN THIS SCRIPT ON YOUR PC OR MAC! THIS IS MEANT TO BE RUN WHEN | |
| # YOUR AMAZON EC2 INSTANCE STARTS! | |
| # |
| /*--- waitForKeyElements(): A utility function, for Greasemonkey scripts, | |
| that detects and handles AJAXed content. | |
| Usage example: | |
| waitForKeyElements ( | |
| "div.comments" | |
| , commentCallbackFunction | |
| ); |
| /* | |
| * Description: Simple IO class for php CLI | |
| * Author: Mads Aune | |
| */ | |
| if(!defined("STDIN")) { define('STDIN', fopen('php://stdin', 'r')); } | |
| class CLI { | |
| public static function getLine($prompt = '') { | |
| echo $prompt . "> "; |
| (function($){ | |
| $.widget("ui.mywidget", { | |
| options: { | |
| autoOpen: true | |
| }, | |
| _create: function(){ | |
| // by default, consider this thing closed. |
| <!-- HEAD SECTION --> | |
| <!-- IE Edge Meta Tag --> | |
| <meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
| <!-- Viewport --> | |
| <meta name="viewport" content="width=device-width, initial-scale=1"> | |
| <!-- Minified CSS --> | |
| <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> |
| Object.prototype.join = function(glue, separator) { | |
| var object = this; | |
| if (glue == undefined) | |
| glue = '='; | |
| if (separator == undefined) | |
| separator = ','; | |
| return $.map(Object.getOwnPropertyNames(object), function(k) { return [k, object[k]].join(glue) }).join(separator); |
| #301 Redirects for .htaccess | |
| #Redirect a single page: | |
| Redirect 301 /pagename.php http://www.domain.com/pagename.html | |
| #Redirect an entire site: | |
| Redirect 301 / http://www.domain.com/ | |
| #Redirect an entire site to a sub folder | |
| Redirect 301 / http://www.domain.com/subfolder/ |