Skip to content

Instantly share code, notes, and snippets.

View jponge's full-sized avatar

Julien Ponge jponge

View GitHub Profile
<?xml version="1.0" encoding="UTF-8"?>
<!-- ====================================================================== -->
<!-- -->
<!-- Generated by Maven Help Plugin on 2021-07-05T15:07:56+02:00 -->
<!-- See: http://maven.apache.org/plugins/maven-help-plugin/ -->
<!-- -->
<!-- ====================================================================== -->
<!-- ====================================================================== -->
<!-- -->
<!-- Effective POM for project -->
<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 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>io.smallrye</groupId>
<artifactId>smallrye-build-parent</artifactId>
<version>29-SNAPSHOT</version>
<packaging>pom</packaging>
<name>SmallRye: Build Parent</name>
<description>SmallRye Build Parent POM</description>
<url>https://smallrye.io</url>
<inceptionYear>2018</inceptionYear>
//usr/bin/env jbang "$0" "$@" ; exit $?
//DEPS io.vertx:vertx-core:4.0.0
import io.vertx.core.Vertx;
public class RunVertx {
public static void main(String... args) {
var vertx = Vertx.vertx();
vertx.createHttpServer()
# A few aliases for exa, a ls replacement
alias l="exa --sort Name"
alias ll="exa --sort Name --long"
alias la="exa --sort Name --long --all"
alias lr="exa --sort Name --long --recurse"
alias lra="exa --sort Name --long --recurse --all"
alias lt="exa --sort Name --long --tree"
alias lta="exa --sort Name --long --tree --all"
alias ls="exa --sort Name"
@jponge
jponge / keybase.md
Created January 10, 2020 19:25
keybase.md

Keybase proof

I hereby claim:

  • I am jponge on github.
  • I am jponge (https://keybase.io/jponge) on keybase.
  • I have a public key whose fingerprint is CB14 9A91 D734 1C3D 9ED3 BC1F 9944 7033 FD4E 69B4

To claim this, I am signing this object:

@jponge
jponge / RewriteJsonObject.java
Created September 10, 2019 09:03
Rewriting Vert.x JsonObject to make it JS-friendly in ES4X / GraalVM
import org.objectweb.asm.*;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Arrays;
import static org.objectweb.asm.ClassWriter.COMPUTE_FRAMES;
import static org.objectweb.asm.Opcodes.*;
@jponge
jponge / gmail-github-filters.md
Created July 5, 2019 14:03 — forked from ldez/gmail-github-filters.md
Gmail and GitHub - Filters

Gmail and GitHub

Create new filters and create new labels.

Pull Request

from:([email protected]) AND {"Patch Links" "approved this pull request." "requested changes on this pull request." "commented on this pull request." "pushed 1 commit." "pushed 2 commits." "pushed 3 commits."}

label: gh-pull-request

@jponge
jponge / docker-compose.yml
Created May 17, 2019 20:02
Docker Kafka and ZooKeeper using Strimzi
version: '3'
services:
zookeeper:
image: strimzi/zookeeper
command: [
"sh", "-c",
"bin/zookeeper-server-start.sh config/zookeeper.properties"
]
ports:
import com.typesafe.config.Config;
import com.typesafe.config.ConfigFactory;
public class Main {
public static void main(String[] args) {
Config defaults = ConfigFactory.load("defaults");
Config myconfig = ConfigFactory.load("myconfig").withFallback(defaults);
Config other = ConfigFactory.load("other").withFallback(myconfig);
$ ceylon compile && ceylon run org.typeunsafe.ceylonlovesgolo/1.0.0
Note: Created module org.typeunsafe.goloceylon/1.0.0
Note: Created module org.typeunsafe.ceylonlovesgolo/1.0.0
>>> eval-style
Yo!
>>> direct
2
tuple[8, 10, 12, 14, 16, 18, 20]
tuple[2, 4, 6, 8, 10, 12, 14, 16, 18, 20, 22, 24, 26, 28, 30, 32, 34, 36, 38, 40, 42, 44, 46, 48, 50, 52, 54, 56, 58, 60, 62, 64, 66, 68, 70, 72, 74, 76, 78, 80, 82, 84, 86, 88, 90, 92, 94, 96, 98]