Skip to content

Instantly share code, notes, and snippets.

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

Paulo Lopes pmlopes

🏠
Working from home
View GitHub Profile
@pmlopes
pmlopes / JsonArray.java
Created May 1, 2014 08:00
Suggested Json API for Vert.x 3.x
public class JsonArray extends ArrayList<Object> implements JsonElement<Integer>, List<Object> {
private static final long serialVersionUID = 1l;
public JsonArray() {
super();
}
public JsonArray(List<?> list) {
super(list);
@pmlopes
pmlopes / DB405A41.asc
Last active August 29, 2015 14:06
DB405A41.asc
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2.0.22 (GNU/Linux)
mQINBFQib6sBEACu3OvNg5z1U8FCJF/IJnPeNEz7yYXFeKhmjXmdBUPkXOiFuKRC
jlJWFZhnaKXapK0dB3LXrAEbn8EmNBB6PuAKqSJ/3fW/bQgdrZPW39tlO8MvbRJf
Z/QdOovCa1t7rMgofeq1CQJKX1jS9mcnCSBChedI+cQWVZao/CIaGC4uek4CXnZp
XaIeb2YaaHkhq18g8MSVR9YTBt1AgNUTsFczVHA8+RZ60GL0nqps/s0FH9QJDyf9
9OWXbOeJifbg03ul+Tx5kr0djouYKHOJypF8kM+HPpiBbcsskXpbAmv+OI0eu/AC
FJxf/7LtBMD6czPrx6/3HSisWxqgPfh3N8K896lmgH4aORQ1sAVj0ipimlYhIskl
gfKFSdYj1HsmbzqoK+W8ga345arX5q/rpgTGYOznjBbS1vbGOyhR8TVGHugnsSXf

Keybase proof

I hereby claim:

  • I am pmlopes on github.
  • I am pmlopes (https://keybase.io/pmlopes) on keybase.
  • I have a public key whose fingerprint is 349E 08C1 8265 2E9E 4CFD 9034 65E8 59E4 DB40 5A41

To claim this, I am signing this object:

@Test
public void testLoad() {
final AtomicInteger counter = new AtomicInteger();
int repetitions = 10000;
counter.set(repetitions);
for (int i = 0; i < repetitions; i++) {
redis.get("unknown", res -> {
if (res.failed()) {
@pmlopes
pmlopes / gist:755c775c03b152e1ca6f
Created July 1, 2015 15:01
base user system unit
[Unit]
Description=Vert.x Service
Wants=environment.target
[Service]
Type=simple
ExecStart=/bin/java $JAVA_OPTS -jar %h/rpi-1.0-fat.jar
[Install]
Alias=default.target
@pmlopes
pmlopes / package.json
Created July 10, 2015 14:08
vert.x3 for javascript developers
{
"name": "vertx3-hello",
"private": true,
"dependencies": {
"vertx3-min": "3.0.0-1"
},
"scripts": {
"start": "./node_modules/.bin/vertx run server.js"
}
}
@pmlopes
pmlopes / README.md
Created July 10, 2015 14:20
package vert.x stacks for npm

Vert.x 3 Minimal stack

Vert.x3 + the endorsed modules

Contents

  • Vert.x Core
  • Groovy, JS and Ruby languages
  • Hazelcast clustering
  • Service proxy
@pmlopes
pmlopes / settings.xml
Created September 10, 2015 08:33
Use sonatype snapshots in your local maven
<settings>
<profiles>
<profile>
<id>allow-snapshots</id>
<activation><activeByDefault>true</activeByDefault></activation>
<repositories>
<repository>
<id>snapshots-repo</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
@pmlopes
pmlopes / pom.xml
Created October 9, 2015 10:05
Release Vert.x 3.x with support from git-flow
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>io.vertx</groupId>
<artifactId>vertx-release</artifactId>
<version>1.0.0</version>
<packaging>pom</packaging>
@pmlopes
pmlopes / test.html
Created January 5, 2016 19:24
amp gallery experiment
<!doctype html>
<html ⚡>
<head>
<meta charset="utf-8">
<title>AMP #0</title>
<link rel="canonical" href="amps.html" >
<meta name="viewport" content="width=device-width,minimum-scale=1,initial-scale=1">
<link href='https://fonts.googleapis.com/css?family=Questrial' rel='stylesheet' type='text/css'>
<style amp-custom>
body {