Skip to content

Instantly share code, notes, and snippets.

@celsoagra
celsoagra / README.md
Created March 9, 2018 15:27 — forked from phillipgreenii/README.md
Running NPM Scripts through maven

I am in the process of introducing single page applications to where I work. For development, using node based build tools is much easier for the single page applications. However, the build process for our organization is based upon maven. Our solution started with the maven plugin frontend-maven-plugin. It worked great at first, but then we ran into a situation that I couldn't make work with it.

As stated before, at our organization, we have the older ecosystem which is maven and the newer ecosystem which is node. Our goal was to keep the hacking to a minimum. We did this by putting all of the hacks into a single super node based build file. This is what maven calls and the reason frontend-maven-plugin wasn't sufficient. The super node based build script calls all of the other build scripts by spawning npm run. Try as I might, I could not figure out how to make the spawn work. front-end-maven-plugin downloads npm

@celsoagra
celsoagra / KeycloakManager.java
Created December 11, 2017 17:12
Add users on Keycloak 3.1.0.Final
public class KeycloakManager {
private Keycloak keycloak;
/**
* Singleton method
* @param properties KeycloakProperties is a pojo to store configuration info
*/
public static KeycloakManager getInstance(KeycloakProperties properties) {
KeycloakManager manager = new KeycloakManager(properties);
@celsoagra
celsoagra / minikubedelete
Created November 25, 2017 23:50 — forked from sharepointoscar/minikubedelete
Minikube - Delete all pods from default namespace
# delete all pods
kubectl delete --all pods --namespace=default
# deete all deployments
kubectl delete --all deployments --namespace=default
# delete all services
kubectl delete --all services --namespace=default
@celsoagra
celsoagra / light_keyboard.md
Last active March 8, 2017 00:52
turn lights on in keyboard

You should go to

sudo vim /sys/devices/platform/dell-laptop/leds/dell\:\:kbd_backlight/brightness (or can use nano)

and write 2 in the file, to turn on the lights

@celsoagra
celsoagra / touchegg.md
Last active March 8, 2017 02:38
configure touchegg

links

https://pplware.sapo.pt/informacao/ubuntu-ao-estilo-do-macos-instale-touchegg/ http://askubuntu.com/a/802218/661454

installation

sudo apt install touchegg

create file .xprofile