This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CDI scopes | |
javax.enterprise.context.@RequestScoped | |
javax.enterprise.context.@SessionScoped | |
javax.enterprise.context.@ApplicationScoped | |
javax.enterprise.context.@ConversationScoped - If the user is doing multiple things at the same time, there are multiple conversations. | |
javax.enterprise.context.@Dependent - default scope. An instance of a dependent bean is never shared between different clients or different injection points. It is strictly a dependent object of some other object. They don't use proxy objects. | |
javax.inject.@Singleton - don’t have a proxy object. Clients hold a direct reference to its instance. Problems with serialization it's better to add @ApplicationScoped allowing the container to proxy the bean | |
@SessionScoped or @ConversationScoped must be serializable | |
Qualifiers |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://www.atlassian.com/git/tutorials/merging-vs-rebasing/workflow-walkthrough | |
git rebase -i HEAD~2 | |
git push my --force | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo dnf grouplist | |
Xfce | |
sudo dnf install xfce4-weather-plugin.x86_64 xfce4-cpugraph-plugin.x86_64 xfce4-sensors-plugin.x86_64 xfce4-xkb-plugin xfce4-whiskermenu-plugin.x86_64 xfce4-mixer | |
Utils | |
sudo dnf install gvim vim mc xchat gitk figlet | |
Latex | |
sudo dnf install texlive texlive-upquote.noarch texlive-blindtext.noarch texlive-bibtex.noarch texlive-babel.noarch texlive-babel-slovak |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Root | |
curl -ivX GET 'http://jdoe:password@localhost:8080/hawkular/inventory/' | |
Tenant | |
curl -ivX GET -H "Content-Type: application/json" 'http://jdoe:password@localhost:8080/hawkular/inventory/tenant' | |
curl -ivX DELETE -H "Content-Type: application/json" 'http://jdoe:password@localhost:8080/hawkular/inventory/tenant' | |
Metric types | |
curl -ivX GET 'http://jdoe:password@localhost:8080/hawkular/inventory/metricTypes?feedless=false' | |
curl -ivX POST -H "Content-Type: application/json" -d '{"id": "test", "type":"COUNTER", "properties": {"p1": "a"}}' 'http://jdoe:password@localhost:8080/hawkular/inventory/metricTypes' |
NewerOlder