Skip to content

Instantly share code, notes, and snippets.

View kurotoshiro's full-sized avatar
🏠
Working from home

Yoann LE TOUCHE kurotoshiro

🏠
Working from home
View GitHub Profile

Setting up and installing rbenv, ruby-build, rubies, rbenv-gemset, and bundler

This guide enables you to install (ruby-build) and use (rbenv) multiple versions of ruby, isolate project gems (gemsets and/or bundler), and automatically use appropriate combinations of rubies and gems.

TL;DR Demo

# Ensure system is in ship-shape.

aptitude install git zsh libssl-dev zlib1g-dev libreadline-dev libyaml-dev

@kurotoshiro
kurotoshiro / gist:9650eb2b68614df283cb
Last active November 30, 2015 13:35 — 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 -aes256 -out ca.key 4096
openssl req -sha256 -new -x509 -days 3650 -key ca.key -out ca.crt
@kurotoshiro
kurotoshiro / tmux-cheatsheet.markdown
Created March 30, 2017 18:05 — forked from MohamedAlaa/tmux-cheatsheet.markdown
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@kurotoshiro
kurotoshiro / an upstart unicorn.conf
Created February 7, 2019 11:00 — forked from kesor/an upstart unicorn.conf
Unicorn that receives USR2 signal on upstart's "stop unicorn", but also allows upstart to respawn it when for some reason it crashed on its own.
# unicorn
description "unicorn ruby app server"
start on (local-filesystems and net-device-up IFACE=lo and runlevel [2345])
stop on runlevel [!2345]
env WORKDIR=/data
env PIDFILE=/data/tmp/pids/unicorn.pid
env CFGFILE=/data/config/unicorn.rb
@kurotoshiro
kurotoshiro / 10-cisco-elasticsearch.conf
Created February 12, 2019 09:59 — forked from justincjahn/10-cisco-elasticsearch.conf
Logstash: Processing Cisco Logs
#
# INPUT - Logstash listens on port 8514 for these logs.
#
input {
udp {
port => "8514"
type => "syslog-cisco"
}