Skip to content

Instantly share code, notes, and snippets.

@fernandoabcampos
fernandoabcampos / Main.java
Created September 5, 2018 14:07
Fibonacci in 3 different approaches.
import java.time.Duration;
import java.time.Instant;
public class Main {
public static void main(String[] args) {
int n = 30;
//It will take ages to execute if n > 50. E.g.: n = 60 took 63s
printAndMonitorRecursive(n);
@fernandoabcampos
fernandoabcampos / aws-certification.md
Created September 28, 2016 06:23 — forked from miglen/aws-certification.md
AWS Certification guide and notes on how to prepare for the aws associate certification architect, sysops and developer exams

AWS Certification notes

Those are my personal notes on AWS Solution Architect certification preparation. Hope you find them usefull.

To pass AWS certification, you should have:

  • Sound knowledge about most of the AWS services ( EC2, VPC, RDS, Cloudfront, S3, Route53 etc,)
  • Hands on experience with AWS services.
  • Good knowledge of disaster recovery, security and High availability architectures.

If you do not have prior hands-on experience and knowledge or you have little knowledge about AWS services, it is better to take an online course. If you already have experience in architecting solutions on AWS it is not necessary to take an online course.

@fernandoabcampos
fernandoabcampos / README.md
Created September 26, 2016 20:29 — forked from leonardofed/README.md
A curated list of AWS resources to prepare for the AWS Certifications


A curated list of AWS resources to prepare for the AWS Certifications

A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.


Index:

2016-03-09 09:02:22.139 DEBUG 6200 --- [nio-8765-exec-4] o.s.security.web.FilterChainProxy  : / reached end of additional filter chain; proceeding with original chain
2016-03-09 09:02:22.139  INFO 6200 --- [nio-8765-exec-4] o.a.c.filters.RequestDumperFilter  : http-nio-8765-exec-4 START TIME =09-mar-2016 09:02:22
2016-03-09 09:02:22.139  INFO 6200 --- [nio-8765-exec-4] o.a.c.filters.RequestDumperFilter  : http-nio-8765-exec-4 requestURI=/
2016-03-09 09:02:22.139  INFO 6200 --- [nio-8765-exec-4] o.a.c.filters.RequestDumperFilter  : http-nio-8765-exec-4 authType=null
2016-03-09 09:02:22.140  INFO 6200 ---[0;3
2016-03-03 14:18:47.474 DEBUG 6420 --- [nio-8765-exec-4] o.s.s.web.util.matcher.OrRequestMatcher  : Trying to match using Ant [pattern='/css/**']
2016-03-03 14:18:47.474 DEBUG 6420 --- [nio-8765-exec-4] o.s.s.w.u.matcher.AntPathRequestMatcher  : Checking match of request : '/error'; against '/css/**'
2016-03-03 14:18:47.474 DEBUG 6420 --- [nio-8765-exec-4] o.s.s.web.util.matcher.OrRequestMatcher  : Trying to match using Ant [pattern='/js/**']
2016-03-03 14:18:47.474 DEBUG 6420 --- [nio-8765-exec-4] o.s.s.w.u.matcher.AntPathRequestMatcher  : Checking match of request : '/error'; against '/js/**'
2016-03-03 14:18:47.474 DEBUG 6420 ---[0;3
fernando@fernando-Vostro-5470:~$ curl start.spring.io
. ____ _ __ _ _
/\\ / ___'_ __ _ _(_)_ __ __ _ \ \ \ \
( ( )\___ | '_ | '_| | '_ \/ _` | \ \ \ \
\\/ ___)| |_)| | | | | || (_| | ) ) ) )
' |____| .__|_| |_|_| |_\__, | / / / /
=========|_|==============|___/=/_/_/_/
:: Spring Initializr :: https://start.spring.io
sudo su -
cp -rfv /appdata/jboss/current/server/default/deploy/oap-search-api*.war /appdata/jboss/current/server/default/backup/
service jboss stop
sleep 10
mv -v /tmp/oap-search-api-tmp/* /appdata/jboss/current/server/default/deploy/
service jboss start
wait_until_started() {
echo Aguardando o servidor ser iniciado.
sudo su -
cp -rfv /appdata/jboss/current/server/default/deploy/oap-search-api*.war /appdata/jboss/current/server/default/backup/
service jboss stop
sleep 10
mv -v /tmp/oap-search-api-tmp/* /appdata/jboss/current/server/default/deploy/
service jboss start
wait_until_started() {
echo Aguardando o servidor ser iniciado.