Skip to content

Instantly share code, notes, and snippets.

Avatar

Lukáš Fryč lfryc

View GitHub Profile
@lfryc
lfryc / create-tunnel-and-unpack-files.sh
Last active Apr 15, 2020
Using ncat (netcat) from nmap package to transfer files via SSL-enabled tunnel
View create-tunnel-and-unpack-files.sh
ncat -lp 12345 --ssl | base 64 -d | tar xz
@lfryc
lfryc / gist:4ed271b60ab56d3b03e8
Created May 19, 2015
PostgreSQL for UPS 1.1.x
View gist:4ed271b60ab56d3b03e8
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;
View gist:a3af4c39e889abd5a9c4
# 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
Switch WildFly to debug mode in Runtime using jboss-cli
View gist:aae879ceb5534292e150
# 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 Aug 29, 2015
AeroGear Blogs on Planet
View gist:5f98299a4c21999b4717
- url: http://blog.nerdin.ch/feeds/posts/default/-/aerogear
email: erikjan.dewit@gmail.com
exists in planet
- url: http://matthiaswessendorf.wordpress.com/category/aerogear/feed/
email: matzew@apache.org
https://planet.jboss.org/#tags=feed_name_mwessendorf
@lfryc
lfryc / README.md
Last active Aug 29, 2015
AeroGear Project Info Template
View README.md

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 Aug 29, 2015
Easy MySQL in Docker
View gist:f9202da17f734933f471
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
View gist:db2bfb24baeb220487a7

Windows

  1. install Visual Studio

  2. install Hybrid Tools

iPhone

serial

@lfryc
lfryc / aerogear.core.js
Created Sep 23, 2014
AeroGear.js Core with AMD
View aerogear.core.js
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");
You can’t perform that action at this time.