Skip to content

Instantly share code, notes, and snippets.

View adriancbo's full-sized avatar
🎯
Focusing

Adrian Carballo adriancbo

🎯
Focusing
View GitHub Profile
@adriancbo
adriancbo / BENCHMARK.md
Created August 1, 2016 02:33 — forked from montanaflynn/BENCHMARK.md
Kong Benchmark Setup

To reproduce Kong's benchmark please follow these instructions.

Create AWS Instances

Spin up three m3.medium EC2 ubuntu 14.04 instances with public DNS enabled and configure them for high network traffic by increasing these limits:

Added fs.file-max=80000 to /etc/sysctl.conf

Added the following lines to /etc/security/limits.conf

@adriancbo
adriancbo / API.md
Created July 22, 2016 19:07 — forked from iros/API.md
Documenting your REST API

Title

<Additional information about your API call. Try to use verbs that match both request type (fetching vs modifying) and plurality (one vs multiple).>

  • URL

    <The URL Structure (path only, no root url)>

  • Method:

@adriancbo
adriancbo / graphite.md
Created July 19, 2016 01:10 — forked from relaxdiego/graphite.md
Installing Graphite in OS X Mavericks

Follow these steps to install graphite on OS X Mavericks.

Prerequisites

  • Homebrew
  • Python 2.7
  • Git

Install dependencies

Install Cairo and friends

@adriancbo
adriancbo / elasticsearch.md
Created June 4, 2016 17:44 — forked from dominicsayers/elasticsearch.md
Configuring ElasticSearch to use less memory

What I actually did

/etc/security/limits.conf

elasticsearch hard memlock 100000

/etc/default/elasticsearch

@adriancbo
adriancbo / aws-ec2-redis-cli.md
Created May 18, 2016 04:22 — forked from todgru/aws-ec2-redis-cli.md
AWS redis-cli on EC2
@adriancbo
adriancbo / gist:9bc9b4d1181924cabc6f
Created March 23, 2016 11:00 — forked from kyledrake/gist:d7457a46a03d7408da31
Creating a self-signed SSL certificate, and then verifying it on another Linux machine
# Procedure is for Ubuntu 14.04 LTS.
# Using these guides:
# http://datacenteroverlords.com/2012/03/01/creating-your-own-ssl-certificate-authority/
# https://turboflash.wordpress.com/2009/06/23/curl-adding-installing-trusting-new-self-signed-certificate/
# https://jamielinux.com/articles/2013/08/act-as-your-own-certificate-authority/
# Generate the root (GIVE IT A PASSWORD IF YOU'RE NOT AUTOMATING SIGNING!):
openssl genrsa -aes256 -out ca.key 2048
openssl req -new -x509 -days 7300 -key ca.key -sha256 -extensions v3_ca -out ca.crt
@adriancbo
adriancbo / 1:middleware.json
Created February 29, 2016 01:02 — forked from pulkitsinghal/01_chat.md
Bunyan Loopback logging
{
"initial:before": {
"loopback#context": {
"params": { "enableHttpContext": true }
},
"loopback#token": {},
"loopback#favicon": {
"params": "$!../client/images/govright-favicon.ico"
},
"./middleware/logging": {},
@adriancbo
adriancbo / four-byte-emojis.json
Created January 16, 2016 16:31 — forked from watson/four-byte-emojis.json
Emoji's sorted by byte-size
[
"😁",
"😂",
"😃",
"😄",
"😅",
"😆",
"😉",
"😊",
"😋",
@adriancbo
adriancbo / 00_input.conf
Created January 7, 2016 22:02 — forked from steveash/00_input.conf
ELK configuration for aggregating cassandra and spark logs
input {
lumberjack {
# The port to listen on
port => 5043
# The paths to your ssl cert and key
ssl_certificate => "/etc/pki/tls/certs/logstash-forwarder/logstash-forwarder.crt"
ssl_key => "/etc/pki/tls/private/logstash-forwarder/logstash-forwarder.key"
# default type, but this will already be set by logstash-forwarder anyways
@adriancbo
adriancbo / dropzone-directive.js
Created October 13, 2015 01:44 — forked from compact/dropzone-directive.js
AngularJS directive for Dropzone.js
/**
* An AngularJS directive for Dropzone.js, http://www.dropzonejs.com/
*
* Usage:
*
* <div ng-app="app" ng-controller="SomeCtrl">
* <button dropzone="dropzoneConfig">
* Drag and drop files here or click to upload
* </button>
* </div>