Skip to content

Instantly share code, notes, and snippets.

View sideshow's full-sized avatar

Adam Jones sideshow

  • Wellington, New Zealand
View GitHub Profile
@sideshow
sideshow / tmux-cheatsheet.markdown
Created March 30, 2016 20:50 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@sideshow
sideshow / gist:a1414f68a1337ead9c93
Created January 8, 2016 09:17 — forked from mtigas/gist:952344
Mini tutorial for configuring client-side SSL certificates.

Client-side SSL

For excessively paranoid client authentication.

Using self-signed certificate.

Create a Certificate Authority root (which represents this server)

Organization & Common Name: Some human identifier for this server CA.

openssl genrsa -des3 -out ca.key 4096
openssl req -new -x509 -days 365 -key ca.key -out ca.crt
@sideshow
sideshow / es.sh
Last active December 12, 2015 09:38
elasticsearch 0.20.4 ubuntu with wrapper service
cd ~
sudo apt-get update
sudo apt-get install openjdk-7-jre-headless -y
wget http://download.elasticsearch.org/elasticsearch/elasticsearch/elasticsearch-0.20.4.tar.gz -O elasticsearch.tar.gz
tar -xf elasticsearch.tar.gz
rm elasticsearch.tar.gz
sudo mv elasticsearch-* elasticsearch
sudo mv elasticsearch /usr/local/share