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
| package de.indivon.example.config; | |
| import java.util.ArrayList; | |
| import java.util.Collection; | |
| import javax.inject.Inject; | |
| import org.springframework.boot.autoconfigure.AutoConfigureBefore; | |
| import org.springframework.boot.context.properties.EnableConfigurationProperties; | |
| import org.springframework.context.annotation.Bean; |
| * LFCS Domains 2015.02 | |
| Note - the domains will change somewhat in March 2015. SW RAID | |
| with mdadm will be removed | |
| ** The Command Line | |
| *** Editing text files on the CLI | |
| Covers the use of the basic text editors nano and gedit as well | |
| as the advanced editors _vi_ and _emacs_ | |
| - nano | |
| simple CLI-based text editor |
| #!/bin/bash | |
| # An oven timer. This script uses the "notify-send" program to display a | |
| # message after a certain amount of time specified as command line arguments. | |
| # It optionally plays a sound using "mplayer" after calling "notify-send". | |
| # Waiting time can be specified in a user friendly (hours : minutes : seconds) | |
| # format, e.g. "hh:mm:ss" or "mm:ss". | |
| # | |
| # Copyright (C) Ramin Honary 2014, all rights reserved. | |
| # Licensed under the GNU General Public License: | |
| # http://www.gnu.org/licenses/gpl.html |
| /* | |
| * Copyright 2014 the original author or authors. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
L1 cache reference ......................... 0.5 ns
Branch mispredict ............................ 5 ns on recent CPU
L2 cache reference ........................... 7 ns 14x L1 cache
Mutex lock/unlock ........................... 25 ns
Main memory reference ...................... 100 ns 20x L2 cache, 200x L1 cache
Compress 1K bytes with Zippy ............. 3,000 ns = 3 µs
Send 2K bytes over 1 Gbps network ....... 20,000 ns = 20 µs
SSD random read ........................ 150,000 ns = 150 µs
Read 1 MB sequentially from memory ..... 250,000 ns = 250 µs 4X memory
| FROM ubuntu:12.04 | |
| RUN DEBIAN_FRONTEND=noninteractive apt-get install -y openjdk-6-jdk curl git-core build-essential bzr | |
| RUN mkdir -p /tmp/downloads | |
| # install go | |
| RUN curl -sf -o /tmp/downloads/go1.1.1.linux-amd64.tar.gz -L https://go.googlecode.com/files/go1.1.1.linux-amd64.tar.gz | |
| RUN mkdir -p /opt && cd /opt && tar xfz /tmp/downloads/go1.1.1.linux-amd64.tar.gz | |
| # install jenkins | |
| RUN curl -sf -o /opt/jenkins-1.523.war -L http://mirrors.jenkins-ci.org/war/1.523/jenkins.war |