Skip to content

Instantly share code, notes, and snippets.

@lamielle
lamielle / Dockerfile
Created July 28, 2017 21:15
Kong 0.11.0rc2 Dockerfile, non-optimized
FROM fedora:25
MAINTAINER Marco Palladino, marco@mashape.com
ENV KONG_VERSION 0.11.0rc2
RUN dnf clean metadata && dnf -v -y -4 --setopt=deltarpm=false install readline-devel pcre-devel openssl openssl-devel gcc curl perl unzip git wget make findutils which
RUN mkdir /openresty && cd /openresty && wget https://openresty.org/download/openresty-1.11.2.4.tar.gz && tar -xvf openresty-1.11.2.4.tar.gz
RUN cd /openresty/openresty-1.11.2.4 && ./configure \
--prefix=/usr/local/openresty \
--with-pcre-jit \
@lamielle
lamielle / index.js
Created April 6, 2016 22:52
requirebin sketch
var diff = require("virtual-dom").diff
var patch = require("virtual-dom").patch
var h = require("virtual-dom").h
var createElement = require("virtual-dom").create
var OddCounterWidget = function() {}
OddCounterWidget.prototype.type = "Widget"
OddCounterWidget.prototype.count = 1
OddCounterWidget.prototype.init = function() {
// With widgets, you can use any method you would like to generate the DOM Elements.
@lamielle
lamielle / keybase.md
Created June 7, 2014 19:30
Keybase Proof

Keybase proof

I hereby claim:

  • I am lamielle on github.
  • I am lamielle (https://keybase.io/lamielle) on keybase.
  • I have a public key whose fingerprint is E819 C94A 19F2 1A30 1452 B253 BDB4 0DC5 33B2 1820

To claim this, I am signing this object:

@lamielle
lamielle / gist:3482069
Created August 26, 2012 17:52
Using StringField as a workaround for Squeryl's current lack of UUIDField support
class UUIDTest private() extends Record[UUIDTest] with KeyedRecord[String] {
override def meta = UUIDTest
val idField = new StringField(this, 36) {
override val defaultValue = UUID.randomUUID.toString
}
}
object UUIDTest extends UUIDTest with MetaRecord[UUIDTest]
@lamielle
lamielle / closeme.html
Created August 14, 2012 00:40
Simple HTML page that closes itself when opened. Doesn't work in newer versions of Firefox.
<!doctype html><html><head><script>
window.onload = function load() {
window.open('', '_self', '');
window.close();
};
</script></head><body></body></html>