Skip to content

Instantly share code, notes, and snippets.

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
@raymond852
raymond852 / installing_cassandra.md
Created August 4, 2017 02:54 — forked from hkhamm/installing_cassandra.md
Installing Cassandra on Mac OS X

Installing Cassandra on Mac OS X

Install Homebrew

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)"
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
@raymond852
raymond852 / ShinnyTextView.java
Created April 12, 2017 14:22 — forked from pdegand/ShinnyTextView.java
Shinny TextView that glows like the "slide to unlock" text on iOS 7+
/*
* 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