Skip to content

Instantly share code, notes, and snippets.

View bp_crypt.xml
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns=""
paoloantinori / features.xml
Last active Oct 11, 2016
miniman harmless karaf features file
View features.xml
<?xml version="1.0" encoding="UTF-8"?>
<features name="sample.features">
<feature name="weld" resolver="(obr)" version="2.3.2.Final">
paoloantinori / bp.xml
Created Oct 11, 2016
minimal blue print camel route
View bp.xml
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns=""
<camelContext xmlns="">
<route id="myRoute">
View f.js
var f = function(x){
var g = function(prev, x){
if(typeof x !== 'undefined'){
return prev + "l";
} else{
return g.bind(this, prev + "o");
return g("f", x);
paoloantinori /
Created Jan 26, 2016
Keycloak Admin API Rest Example
export TKN=$(curl -X POST 'http://localhost:8080/auth/realms/master/protocol/openid-connect/token' \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "username=admin" \
-d 'password=admin' \
-d 'grant_type=password' \
-d 'client_id=admin-cli' | jq -r '.access_token')
curl -X GET 'http://localhost:8080/auth/admin/realms' \
paoloantinori /
Last active Dec 2, 2015
/usr/share/bash-completion/completions/git - Fedora 23
# bash/zsh completion support for core Git.
# Copyright (C) 2006,2007 Shawn O. Pearce <>
# Conceptually based on gitcompletion (
# Distributed under the GNU General Public License, version 2.0.
# The contained completion routines provide support for completing:
# *) local and remote branch names
# *) local and remote tag names
paoloantinori /
Last active Sep 2, 2015
Helper function to automatically install manually downloaded Maven artifacts to local Maven repo.
# Automates installation of manually downloaded artifacts in local Maven repo
# NOTE: works only if artifact contains its own metadata files
# Ex. 1
# fabric-core-1.2.0.redhat-133.jar
# Ex. 2
# find -name *.jar | xargs -n1
public class Activator implements BundleActivator {
public void start(BundleContext context) throws Exception {
Bundle[] bundles = context.getBundles();
for(Bundle b : bundles){
paoloantinori / XML.tmLanguage
Created Aug 13, 2015
Tweaked XML.tmLanguage for Sublime Text 3 to highlight correctly ELEMENTS that use DOT symbol. Files lives inside `Packages/XML.sublime-package`
View XML.tmLanguage
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
#! /usr/bin/env python
# Copyright 2014 Alex Wood
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
# This program is distributed in the hope that it will be useful,