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
| Enable RabbitMQ application repository: | |
| echo "deb http://www.rabbitmq.com/debian/ testing main" >> /etc/apt/sources.list | |
| Add the verification key for the package: | |
| curl http://www.rabbitmq.com/rabbitmq-signing-key-public.asc | sudo apt-key add - | |
| Update the sources with our new addition from above: | |
| apt-get update | |
| And finally, download and install RabbitMQ: |
(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.
| # --------------------------------------------------------------------------- | |
| # | |
| # Description: This file holds all my BASH configurations and aliases | |
| # | |
| # Sections: | |
| # 1. Environment Configuration | |
| # 2. Make Terminal Better (remapping defaults and adding functionality) | |
| # 3. File and Folder Management | |
| # 4. Searching | |
| # 5. Process Management |
| # Copyright 2012 James McCauley | |
| # | |
| # 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 | |
| # distributed under the License is distributed on an "AS IS" BASIS, |
This list has been superseded by Public APIs. Check there for APIs with Auth: No, HTTPS and CORS Yes.
List of data APIs that require no server-side auth or private credentials, and are thus good for small browser-only JS projects.
| $stop = $args.Count | |
| $inputIP = "" | |
| $inputFile = "" | |
| $knownIPFile = "" | |
| $showUsage = 0 | |
| $verbose = 0 | |
| for ($i = 0; $i -lt $stop; $i++) | |
| { | |
| if ($args[$i] -eq "-f") { | |
| if ( ($i + 1) -eq $stop) { |
| """Examples of how to implement inheritance with Django models. | |
| Idea here is DRY (don't repeat yourself). If models are similar, let them | |
| share functionality to the extent that its ancestrty makes sense. | |
| It's important to note is that because of the "abstract = True", Django knows | |
| not to create tables for those models, and instead only creates tables for | |
| those models that implement those abstract base classes. | |
| It can also be noted that instead of having one gigantic, monolithic models.py |