Skip to content

Instantly share code, notes, and snippets.

@celsoagra
celsoagra / index.html
Created September 21, 2018 18:50
AngularJS Stopwatch
<html ng-app="App">
<head>
<script src="//ajax.googleapis.com/ajax/libs/angularjs/1.2.12/angular.js"></script>
<script src="//angular-ui.github.io/bootstrap/ui-bootstrap-tpls-0.10.0.js"></script>
<link href="//netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" rel="stylesheet">
</head>
<body ng-controller="MainCtrl">
<stopwatch title="Stopwatch #1" time="sharedTime"></stopwatch>
<div stopwatch title="Stopwatch #2" time="sharedTime"></div>
<hr />
@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 / 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 / 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

@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