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
{# | |
You need the following variables: | |
paginationCurrentFilters: an associative array that contains the current settings of the page like search, filters, etc. For example {% set paginationCurrentFilters = { ‘search’: search, ‘filter_by_is_active’: filter_by_is_active } %}, so it can be easy for us to merge the pagination with these filters. | |
paginationCurrentPage : the current page you are in | |
paginationRouteName : the route name of the path that paginates files | |
paginationTotal : The paginationTotal number of pages (ceil(found_entities/items_per_page)) | |
paginationLastPage : represents the paginationTotal number of existing pages | |
paginationExtremePagesLimit : the number of first and last pages to be displayed | |
paginationNearbyPagesLimit : the number of pages that are displayed around the active page |
#!/bin/bash | |
while true; | |
do N=`find -name "*.less" `; | |
inotifywait -qe modify $N ; | |
for f in $N; | |
do lessc $f ${f%.*}.css; | |
done; | |
done; |
#!/bin/bash | |
while true; | |
do N=`find -name "*.less" `; | |
inotifywait -qe modify $N ; | |
for f in $N; | |
do lessc main.less main.css; | |
done; | |
done; |
/** | |
* 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; |
/** | |
* 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; |
/** | |
* 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:first-child { margin-top: 0%; } | |
.hexagon { | |
position: relative; | |
display: inline-block; | |
overflow: hidden; |
#!/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 | |
); |