Skip to content

Instantly share code, notes, and snippets.


Bruno Oliveira da Silva abstractj

View GitHub Profile
View keycloak-18.0.0.txt
[root@a0a6ab069db0 /]# rpm -qa
View bearer-only.yaml
# is the url for retrieve the openid configuration - normally the <server>/auth/realm/<realm_name>
discovery-url: http://localhost:8180/auth/realms/summit
# the client id for the 'client' application
client-id: go-rest
# the interface definition you wish the proxy to listen, all interfaces is specified as ':<port>'
# log all incoming requests
enable-logging: true
# log in json format
abstractj / gist:d7e1ca70519184ed1e8701be6729ebbf
Created Jun 21, 2017 — forked from fernandoaleman/gist:5083680
How to update VirtualBox Guest Additions with vagrant
View gist:d7e1ca70519184ed1e8701be6729ebbf
# Start the old vagrant
$ vagrant init centos-6.3
$ vagrant up
# You should see a message like:
# [default] The guest additions on this VM do not match the install version of
# VirtualBox! This may cause things such as forwarded ports, shared
# folders, and more to not work properly. If any of those things fail on
# this machine, please update the guest additions and repackage the
# box.

Keybase proof

I hereby claim:

  • I am abstractj on github.
  • I am abstractj ( on keybase.
  • I have a public key ASBfGo7shb5SfjU1zcjC4TTW9bKOGbf4zHxRRujNftdcnwo

To claim this, I am signing this object:




Web applications

  • In the past
    • Java applets
    • Servlets
    • Limited connectivity
  • Static pages
View gist:95fdf5b13e622cd67c43
var crypto = require('crypto');
var cipher = crypto.createCipher( process.argv[2], 'tacos' );
//aes-gcm 256
//key size must be 32
var cipher = crypto.createCipheriv('aes-256-gcm', '3zTvzr3p67VC61jmV54rIYu1545x4TlY', 'X6sIq117H0vR');
var cipher = crypto.createCipher('aes-256-gcm', '3zTvzr3p67VC61jmV54rIYu1545x4TlY');
//aes-gcm 128
View gist:8896fb6c54fede35c022

User Management for the Aerogear Unfied Push Server


The goal of this document is to describe how the User Management will be implemented in the Unified Push Server. Currently there is only one user created by default when installing UPS. Having the possibility to create multiple users is a "Must Have" and should be manageable from the Admin Console. Some roles should also be introduced

Roles / Permissions

View gist:6412105
if (!this.identity.isLoggedIn()) {
} else {
throw new RuntimeException("Authentication failed");
View shot.js
console.log('Loading a web page');
var page = require('webpage').create();
var url = 'http://localhost:1947/';
page.viewportSize = {
width: 1024,
height: 768
};, function (status) {
//Page is loaded!
var iz, i = 0, queue = {};
View gist:5161088
  1. Deploy aerogear-controller-demo
  2. Try ios-otp-demo to login and validate otp
  3. Log in to aerogear-controller-demo with user 'john'
  4. Use the restricted admin page to register a new user
  5. Delete the newly created user
  6. Try the iso-otp-demo once again. For me the error below will be displayed in the servers console
11:00:24,761 INFO  [stdout] (http-- [Demo Error handler :null
11:00:24,788 ERROR [org.jboss.ejb3.invocation] (http-- JBAS014134: EJB Invocation failed on component Otp for method public org.jboss.aerogear.controller.demo.Otp.secret(): javax.ejb.EJBException: java.lang.NullPointerException