Skip to content

Instantly share code, notes, and snippets.

View abstractj's full-sized avatar

Bruno Oliveira da Silva abstractj

View GitHub Profile

User Management for the Aerogear Unfied Push Server

Introduction

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

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
//Project definition to run specs with sbt
//Just run reload update
import sbt._
class kataProject(info: ProjectInfo) extends DefaultProject(info){
val specs = "org.scala-tools.testing" % "specs_2.8.0" % "1.6.5" % "test->default"
}
This list was moved to: http://bit.ly/cBncPZ
@abstractj
abstractj / i18n_fix
Created April 21, 2011 15:59
i18n_fix
module RackHeader
def set_headers(headers)
driver = Capybara.current_session.driver.browser
def driver.env
@env.merge(super)
end
def driver.env=(env)
@env = env
end
driver.env = headers
package de.saumya.mojo.rspec;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.io.Reader;
import java.util.Collection;
import java.util.List;
import java.util.Properties;
@abstractj
abstractj / gitlog
Created July 13, 2011 19:13
gitlog
commit eb034bc4556df920a8616ec81d172ae000378592
Merge: ca7b252 f6312a3
Author: Bruno Oliveira <bruno@abstractj.com>
Date: Tue Jul 12 22:27:47 2011 -0300
Merge remote branch 'torque-orig/2x-dev' into working
commit f6312a338f90bdcb8bc67577bee84c13141fa36c
Author: Tobias Crawley <tcrawley@gmail.com>
Date: Tue Jul 12 20:31:16 2011 -0400
@abstractj
abstractj / running_modes1
Created July 20, 2011 04:57
running_modes1
map "run" => "start"
method_options :clustered => :boolean
desc "run", "Run TorqueBox"
def start
setup_environment
options.clustered ? TorqueBox::DeployUtils.run_server_clustered : TorqueBox::DeployUtils.run_server
end
@abstractj
abstractj / running_modes
Created July 20, 2011 04:45
running_modes
def run_server
Dir.chdir(jboss_home) do
# don't send the gemfile from the current app, instead let
# bundler suss it out itself for each deployed
# app. Otherwise, they'll end up sharing this Gemfile, which
# is probably not what we want.
ENV.delete('BUNDLE_GEMFILE')
if windows?
@abstractj
abstractj / TorqueBoxCommand
Created July 20, 2011 13:31
TorqueBoxCommand
class TorqueBoxCommand < Thor
TASK_ORDER = %w(deploy undeploy start cli env help)
map "run" => "start"
method_options :clustered => :boolean
desc "run", "Run TorqueBox"
def start
setup_environment
options.clustered ? TorqueBox::DeployUtils.run_server_clustered : TorqueBox::DeployUtils.run_server