Homebrew is a great little package manager for OS X. If you haven't already, installing it is pretty easy:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"| ELK on Ubuntu Quick Install | |
| --------------------------- | |
| #Elasticsearch | |
| wget -qO - https://artifacts.elastic.co/GPG-KEY-elasticsearch | sudo apt-key add - | |
| sudo apt-get update | |
| sudo apt-get install apt-transport-https | |
| echo "deb https://artifacts.elastic.co/packages/7.x/apt stable main" | sudo tee -a /etc/apt/sources.list.d/elastic-7.x.list | |
| sudo apt-get update && sudo apt-get install elasticsearch | |
| sudo su | |
| vim /etc/elasticsearch/elasticsearch.yml |
| public interface IAnimal { public String sound(); } | |
| public class Cat implements IAnimal { | |
| public String name; | |
| public Cat(String name) { | |
| super(); | |
| this.name = name; | |
| } |
| identify -format '%w %h\n' *.png | grep -Eo '[0-9]+' | sort -n | head -n 10 |
| #!/bin/sh | |
| Interval=2 | |
| #Format: idle,runq-sz,ldavg-1,proc_VmSize,proc_VmRSS | |
| echo "idle,runq-sz,ldavg-1,proc_VmSize,proc_VmRSS" | |
| if [ ! -f /proc/$1/status ]; then | |
| echo "Please specify the correct pid of process as parameter!!!" | |
| exit | |
| fi |
| /* | |
| * Copyright 2014 Pierre Degand | |
| * | |
| * 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 |