Skip to content

Instantly share code, notes, and snippets.

View inkel's full-sized avatar
:shipit:
The floating head with a beard

Leandro López inkel

:shipit:
The floating head with a beard
View GitHub Profile
#! /usr/bin/env ruby
require "pp"
class Request
def env
{ "place" => "tarolandia" }
end
def params
# -*- mode: nginx -*-
# This is required 'cause otherwise your application will see all
# requests as coming from 127.0.0.1 instead of the real user
real_ip_header X-Forwarded-For;
set_real_ip_from 0.0.0.0/0;
# This defines the "upstream", that is the list of servers that will
# be proxied by nginx. The more servers you have the faster the app will
# respond in most cases.
@inkel
inkel / rca
Last active August 29, 2015 13:57
#! /usr/bin/env ruby
require "redic"
require "clap"
require "pry"
$verbose = 0
$timeout = 10_000_000
action, *args = Clap.run ARGV, {

NADA PARA DECIR

Ante todo, gracias al que me anotó para la lightning talk. Te quiero mucho.

Como no tengo nada para decir, los voy a aburrir lo menos posible.

Mi primera experiencia en conferencias fue en RubyConf UY 2010. En ese entonces apenas si conocía un poco de Ruby y mucho menos aún a los miembros de la comunidad. Pero aproveché a conocer a algunos de los que vinieron, y meses después cuando nos volvimos a encontrar en una meeting, terminé colaborando en la organización de RubyConf Argentina, cambié de trabajo a uno exclusivo en Ruby, crecí como programador, tuve la enorme y grata responsabilidad de ser coach de las Punchgirls, y, lo mejor de todo, conocí gente muy interesante, y de todos y cada uno de ellos supe robarles algo: el minimalismo de Michel, la garra y entusiasmo de las Punchgirls Mayn y Cecilia, el humor y el empuje del Cuervo y Pote, la humildad de Luís, la tranquilidad de Matías Flores (aunque es algo que no me sale tan bien como a él), y así de tantos otros.

Así que le quería decir

Intro

Bienvenida

Bienvenidas a una brevísima historia de qué es la Internet. Me pidieron que trate de contarles en 15 minutos qué es y cómo funciona Internet, o más específicamente la WWW, más conocida como la Web.

La verdad que 15 minutos no es suficiente para tener un sólido entendimiento de todo esto, pero vamos a ver los puntos que más

Keybase proof

I hereby claim:

  • I am inkel on github.
  • I am inkel (https://keybase.io/inkel) on keybase.
  • I have a public key whose fingerprint is E2AB B6B9 4C2F 65B0 9500 F0EF 76E7 997E 7144 93F5

To claim this, I am signing this object:

Programación Web - Club de Programación CMD

Intro

Bienvenida

Bienvenidos a una brevísima historia de qué es la Internet. Me pidieron que trate de contarles en 30 minutos qué es la programación web, y para eso necesitamos saber cómo funciona Internet, o más específicamente la WWW, más conocida como la Web.

package main
import (
"fmt"
"github.com/howeyc/crc16"
)
func main() {
data := []byte("inkel")
@inkel
inkel / __output.log
Last active August 29, 2015 14:17
Elasticsearch::API::Utils#__pathify is slow and probably overly complex. This gist shows the result of my attempts at improving it's performance.
$ PROTEST_REPORT=progress RUBYOPT=-rpry tmp/benchmark.rb
Calculating -------------------------------------
original 11.231k i/100ms
__pathify 14.706k i/100ms
__pathify2 21.360k i/100ms
-------------------------------------------------
original 124.124k (±13.1%) i/s - 617.705k
__pathify 154.361k (±18.9%) i/s - 735.300k
__pathify2 209.829k (± 9.5%) i/s - 1.047M
@inkel
inkel / Dockerfile
Last active August 20, 2017 14:55
FROM alpine:3.2
MAINTAINER Leandro López <[email protected]>
# Install base packages
RUN apk update && apk upgrade
# Install ruby and ruby-bundler
RUN apk add curl-dev ruby-dev build-base ruby
# Clean APK cache