Skip to content

Instantly share code, notes, and snippets.

@bbouille
bbouille / gist:2a6764ad1a6ecc4c3a13f8207f7883dd
Created January 4, 2018 10:52
Set oh-my-sh from scratch
#install zsh
sudo apt-get update
sudo apt-get install curl zsh git
#install oh-my-zsh with auto-suggest, syntax-highlighting plugins
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
@bbouille
bbouille / gist:e74916651632877ea3f3d8983a93718c
Created November 9, 2016 12:52
Run TheHive on OSX 10.12.1 with Docker
0) OSx and Docker up to date
1) Install elasticsearch (5.0.0) with homebrew :
brew update
brew cask install java
brew tap homebrew/services
brew install elasticsearch
2) Configure elasticsearch by editing /usr/local/etc/elasticsearch/elasticsearch.yml as follow.
Change the cluster name on line 17 :
@bbouille
bbouille / ganglia-web.sh
Created April 20, 2014 18:09
Ganglia-web-3.5.12 on Debian7
#!/bin/sh -Eux
apt-get -y update
## Install RRDTool and a web server
apt-get -y install rrdtool libapache2-mod-php5 php5 php5-gd php5-rrd
## Setup ganglia-web configuration
cd /tmp/
wget http://sourceforge.net/projects/ganglia/files/ganglia-web/3.5.12/ganglia-web-3.5.12.tar.gz
tar xf ganglia-web-3.5.12.tar.gz