Skip to content

Instantly share code, notes, and snippets.

@lfryc
lfryc / create-tunnel-and-unpack-files.sh
Last active April 15, 2020 07:12
Using ncat (netcat) from nmap package to transfer files via SSL-enabled tunnel
ncat -lp 12345 --ssl | base 64 -d | tar xz
@lfryc
lfryc / gist:4ed271b60ab56d3b03e8
Created May 19, 2015 08:24
PostgreSQL for UPS 1.1.x
docker run -it -p 5432:5432 -e POSTGRES_PASSWORD=mysecretpassword postgres
docker run -it -e POSTGRES_PASSWORD=mysecretpassword docker.io/postgres /bin/bash
psql -h 192.168.15.104 -U postgres
create database unifiedpush;
create database keycloak;
create user unifiedpush with password 'unifiedpush';
GRANT ALL PRIVILEGES ON DATABASE unifiedpush to unifiedpush;
GRANT ALL PRIVILEGES ON DATABASE keycloak to unifiedpush;
# testing UPS from source in WildFly
docker run -it -p 8080:8080 -v $PWD/databases/unifiedpush-h2-ds.xml:/opt/jboss/wildfly/standalone/deployments/unifiedpush-h2-ds.xml -v $PWD/servers/auth-server/target/auth-server.war:/opt/jboss/wildfly/standalone/deployments/auth-server.war -v $PWD/servers/ups-wildfly/target/ag-push.war:/opt/jboss/wildfly/standalone/deployments/ag-push.war jboss/wildfly /opt/jboss/wildfly/bin/standalone.sh -b 0.0.0.0 -c standalone-full.xml
@lfryc
lfryc / gist:aae879ceb5534292e150
Last active May 11, 2020 18:51
Switch WildFly to debug mode in Runtime using jboss-cli
# switch the log level to DEBUG on console
{wildfly}/bin/jboss-cli.sh --connect
[standalone@localhost:9990 /] /subsystem=logging/console-handler=CONSOLE:write-attribute(name=level,value=DEBUG)
[standalone@localhost:9990 /] /subsystem=logging/root-logger=ROOT:write-attribute(name=level,value=DEBUG)
# switch it back to whatever it was initial configuration (here it is INFO)
[standalone@localhost:9990 /] /subsystem=logging/console-handler=CONSOLE:write-attribute(name=level,value=INFO)
[standalone@localhost:9990 /] /subsystem=logging/root-logger=ROOT:write-attribute(name=level,value=INFO)
@lfryc
lfryc / gist:5f98299a4c21999b4717
Last active August 29, 2015 14:14
AeroGear Blogs on Planet
- url: http://blog.nerdin.ch/feeds/posts/default/-/aerogear
email: [email protected]
exists in planet
- url: http://matthiaswessendorf.wordpress.com/category/aerogear/feed/
email: [email protected]
https://planet.jboss.org/#tags=feed_name_mwessendorf
@lfryc
lfryc / README.md
Last active August 29, 2015 14:14
AeroGear Project Info Template

AeroGear Android Core Build Status

AeroGear's Android libraries were built as jar, apklib and aar using Maven and the android-maven-plugin. The project follows the standard Android project layout as opposed to the standard Maven layout so sources will be in /src instead of /src/main/java and can be imported directly into IDE as an Android project.

Core

The core library contains common components and interfaces which the rest of the AeroGear Android libraries depend on.

| | Project Info |

@lfryc
lfryc / gist:f9202da17f734933f471
Last active August 29, 2015 14:11
Easy MySQL in Docker
docker build -t easymysql github.com/nkratzke/easymysql
docker run -it -p 3306:3306 -e user="someuser" -e password="somepassword" -e right="WRITE" easymysql
#### second console:
### mind to change IP address to the docker address
docker run -it easymysql /bin/bash
root@408ffa1f5036:/# mysql -h 172.17.42.1 -u someuser -p
@lfryc
lfryc / gist:db2bfb24baeb220487a7
Created October 22, 2014 12:41
Cordova Development

Windows

  1. install Visual Studio

  2. install Hybrid Tools

iPhone

serial

@lfryc
lfryc / aerogear.core.js
Created September 23, 2014 12:15
AeroGear.js Core with AMD
define("src/aerogear.core",
["exports"],
function(__exports__) {
"use strict";
/* AeroGear JavaScript Library
* https://github.com/aerogear/aerogear-js
* JBoss, Home of Professional Open Source
* Copyright Red Hat, Inc., and individual contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");