What is Spring? Spring makes it easy to create Java enterprise applications.It is a complimentary to Java EE. Spring is open source. It has a large and active community. Spring 5.0 requires JDK 8+ and provides out-of-the-box support for JDK 9. Fundation: Spring Framework The Spring Framework is an application framework and inversion of control container for the Java
Terraform: Import AWS resources
Problem: Resource already exists If there are some AWS resources that are not exist in terraform scripts and you run terraform apply, you might get “XXXX already exists” errors. I listed some of them: BucketAlreadyExists: The requested bucket name is not available EntityAlreadyExists: A policy called dummy-policy-name already exists. Duplicate names are not allowed ResourceInUseException: Table already exists: dummy-table-name
Terraform: Create S3 bucket and DynamoDB table
Let’s say you have a Template file (.yaml) that provisions resources to support Terraform Remote state backed by S3 and DynamoDB for consistency locking as below You can create AWS S3 bucket and DynamoDB table using Designer Template in AWS CloudFormation. Go to AWS Cloud Formation page and click Design template. Copy and paste the
Docker: Recovering from deleting /var/lib/docker
I deleted “/var/lib/docker/” when I was dealing with Docker Thin Pool error below. devmapper: Thin Pool has 114247 free data blocks which is less than minimum required 116729 free data blocks. Create more free space in thin pool or use dm.min_free_space option to change behavior However, I couldn’t restart docker and got ea new error:
Jenkinsfile: AWS Lambda deployment from S3 bucket
AWS Lambda limits the amount of compute and storage resources that you can use to run and store functions. The deployment package size is 50 MB (zipped). Here is the solution how to beat it. Take a look at this blog for S3 solution as well. Problem Assuming that you created a zip file called
Jenkinsfile: Publish Docker Image to Amazon ECR
Problem You pushed a docker image to AWS ECR and get denied: requested access to the resource is denied error. stage(‘Publish Docker Image to AWS’){ steps { script { //build image commit_id = readFile(‘commit_id’).trim() def image = docker.build(“$ECR_REPO_NAME:$commit_id”) //push image docker.withRegistry( “https://$ECR_REGISTRY”, ECR_CRED) { echo ‘ Pushing Latest docker image’ image.push() } } } }
Useful commands for SSL certificates
Generate self signed certificate and export to truststore 1. Generate a certificate using keygen command in windows keytool -genkey -alias myAlias -keyalg RSA -sigalg SHA256withRSA -keystore keystore.jks -validity 10950 2. Self certify the csertificate keytool -selfcert -alias mycert-20161109 -keystore keystore.jks -validity 3950 3. Export certificate to folder keytool -export -alias myAlias -keystore keystore.jks -rfc -file
SAFe® Practitioner Certification Notes
SAFe® Practitioner Certification Notes These are my notes and the answers of the mock tests that I took. The exam was more difficult but I managed to pass it. If you study the SAFe methodolody, I think you will pass the exam. A modified Fibonacci sequence – inherent uncertainty in estimating, especially large numbers (e.g.,
Linux commands
Linux commands that I frequently use Open a file sudo vim server.log Open a log file and display the last 10 lines tail -f /opt/keycloak/standalone/log/server.log Exit vim without saving Press Esc Press “:” Press “q!” Save and exit vim Press Esc Press “:w” Press “:x” Create new file $ cat > daemon.json CTRL + D
Iki sehir: Newcastle ve Birmingham
Ingiltere’de hayatim Newcastle ve Birmigham’da gectigi icin bu iki sehri karsilastirmak istedim. Bu iki sehrin verdigi his farkli. Newcastle’dan Birmingham’a ilk gittigim gunku his, Izmir’den Istanbul’a gittigim zamanlardaki hislerle benzer. Newcastle’in sakinligi, Birmingham’in kosturmacasi. Newcastle Newcastle daha “yerel”, insanlar genelde kibar ve sicak, ortalama insan profili belli, sokaktaki tipler asagi yukari ayni. Havasi ve aksani