Skip to content

Instantly share code, notes, and snippets.

View apssouza22's full-sized avatar
💭
Working in a new open source project

Alexsandro Souza apssouza22

💭
Working in a new open source project
View GitHub Profile
Course - https://www.udemy.com/kubernetes-microservices
k8s example - https://github.com/apssouza22/k8s-microservices
Istio example - https://github.com/apssouza22/service-mesh-istio
## K8s commands
Delete all services
kubectl delete daemonsets,replicasets,services,deployments,pods,rc -n namespace-name —all
- kubectl describe pod pod_name
Thread.getUncaughtExceptionHandler()
.uncaughtException(
Thread.currentThread(),
new IllegalStateException("Resource leak: finalizer fallback cleaned up")
);
The term “Microservices Architecture” is now a popular term and in order to keep updated as a software developer, I’ve been putting some effort to get a good understanding about this architecture and the better way of implementing it in Java using Spring technologies.
I was working in a nice company with a great team and a good tech stack, however, we were not using the cutting edge Java features such as Java 8 and Microservices architectures in that moment, so I had to start looking for that knowledge outside the company. I wanted to play with the Java 8 and Microservices and the best way of doing it is hands on code, building something, then I decided to create a To Do system using as many fun stuffs as possible and I will try to write a series of posts talking about this experience.
The intention of this blog series is to have a source code walkthrough with many concepts and technologies put in place and combined within a whole system composed with different microservices. I’m not planning to go deep in th
param ([^ ]*) ([^ ]*)\n.[^@]*@
var class = function(){
return {
myPublicMethod : function(){
},
otherPublicMethod : function(){
}
}
}
@apssouza22
apssouza22 / money.js
Last active August 29, 2015 14:22 — forked from elclanrs/money.js
var Money = (function(){
function Money(qty) {
this.whole = 0;
this.cents = 0;
this.add(qty);
}
Money.prototype.calc = function() {
while (this.cents > 100) {
this.cents -= 100;
this.whole += 1;
<?php
/**
* As configurações básicas do WordPress.
*
* Esse arquivo contém as seguintes configurações: configurações de MySQL, Prefixo de Tabelas,
* Chaves secretas, Idioma do WordPress, e ABSPATH. Você pode encontrar mais informações
* visitando {@link http://codex.wordpress.org/Editing_wp-config.php Editing
* wp-config.php} Codex page. Você pode obter as configurações de MySQL de seu servidor de hospedagem.
*
* Esse arquivo é usado pelo script ed criação wp-config.php durante a