I hereby claim:
- I am cabrel on github.
- I am cabrel (https://keybase.io/cabrel) on keybase.
- I have a public key ASCpQe-H168OBrZs02ar-Y6Gh5tLLe8gy2x-3HB_7Ap4RQo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
/** | |
* Fancy ID generator that creates 20-character string identifiers with the following properties: | |
* | |
* 1. They're based on timestamp so that they sort *after* any existing ids. | |
* 2. They contain 72-bits of random data after the timestamp so that IDs won't collide with other clients' IDs. | |
* 3. They sort *lexicographically* (so the timestamp is converted to characters that will sort properly). | |
* 4. They're monotonically increasing. Even if you generate more than one in the same timestamp, the | |
* latter ones will sort after the former ones. We do this by using the previous random bits | |
* but "incrementing" them by 1 (only in the case of a timestamp collision). | |
*/ |
--- | |
# ^^^ YAML documents must begin with the document separator "---" | |
# | |
#### Example docblock, I like to put a descriptive comment at the top of my | |
#### playbooks. | |
# | |
# Overview: Playbook to bootstrap a new host for configuration management. | |
# Applies to: production | |
# Description: | |
# Ensures that a host is configured for management with Ansible. |
#!/bin/bash | |
wget https://raw.githubusercontent.com/coreos/init/master/bin/coreos-install | |
chmod +x coreos-install | |
wget https://gist.githubusercontent.com/cabrel/cffc790ae9c27346b510/raw/cdc60c3de1d051d986cfc8da50c8c0b0e58e7c40/gistfile1.yml | |
mv gistfile1.yml cloud-config.yml |
#cloud-config | |
ssh_authorized_keys: | |
- ssh-rsa AAAAB3NzaC1yc2EAAAADAQABAAABAQC9nWTtBwYlGX6Kce3MXg2tDGuqUwL1WxkBjEfpRKeI+jDVXVOiNJQjqTQ0VgaJxF89BoYbCZG2hMj8Pgz2dBsNC1CqHuiilkpJQaaOsHnfyI2BxpVijtFCUO5fHmKCJNq3MD4zg9RcewQVN48mgzbif3eaQRWFtnqCke03hVyfXACAz9OaZicmkODPWPJGo2gLlmB0NYH1JsCKAkzFADPVyYB/6+WM8t2m39Urz6OX2kr1ksNRCpZZ+DbR+lttzboOKPwfSr877UHGChtvk7pZuIWssaRKisfQWJB3+m01qHbK49dQ0oRwryOmnO7PXmFveagNRflw0OYugv59NiO7 [email protected] | |
coreos: | |
units: | |
- name: etcd.service | |
command: start | |
- name: fleet.service | |
command: start |
wget https://gist.githubusercontent.com/cabrel/81525fce104864b3ed5e/raw/221d45906278ee999d88c6727ae2e3d6b10424db/cloud-config.yaml | |
wget https://raw.githubusercontent.com/coreos/init/master/bin/coreos-install |
net.core.somaxconn = 32768 | |
net.ipv4.conf.all.send_redirects = 1 | |
net.ipv4.ip_nonlocal_bind = 1 | |
net.ipv4.tcp_abort_on_overflow = 0 | |
net.ipv4.tcp_fin_timeout = 10 | |
net.ipv4.tcp_keepalive_time = 300 | |
net.ipv4.tcp_max_orphans = 262144 | |
net.ipv4.tcp_max_syn_backlog = 16384 | |
net.ipv4.tcp_max_tw_buckets = 262144 | |
net.ipv4.tcp_mem = 200000 280000 300000 |
#!/bin/bash | |
echo "** Updating apt cache list" | |
sudo apt-get -qq update | |
echo "** Installing apt-add-repository" | |
sudo apt-get -y install python-software-properties curl pwgen | |
echo "** Adding chris-lea/redis-server ppa" | |
sudo apt-add-repository -y ppa:chris-lea/redis-server |
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
# Every Vagrant virtual environment requires a box to build off of. | |
config.vm.box = "redis" | |
config.vm.network :forwarded_port, guest: 6379, host: 6379 |