Skip to content

Instantly share code, notes, and snippets.

View MenukaIshan's full-sized avatar
🎯
Focusing

Menuka Ishan MenukaIshan

🎯
Focusing
View GitHub Profile
@MenukaIshan
MenukaIshan / aws-certification.md
Created October 4, 2018 16:03 — forked from ellerbrock/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.
# Simple SonarQube database and user creation for Postgresql
#
sudo -u postgres psql postgres
CREATE DATABASE sonar;
CREATE USER sonar WITH PASSWORD 'verysecret';
GRANT ALL PRIVILEGES ON DATABASE sonar TO sonar;
@MenukaIshan
MenukaIshan / restart_nginx.bat
Created March 4, 2019 10:48 — forked from keberwein/restart_nginx.bat
Restart Nginx Windows
@ECHO OFF
cd /nginx
taskkill /f /IM nginx.exe
start nginx
EXIT
@MenukaIshan
MenukaIshan / plugin.xml
Last active January 30, 2021 18:41
current plugin settings of jaxb2
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>jaxb2-maven-plugin</artifactId>
<version>1.6</version>
<executions>
<execution>
<id>xjc</id>
<goals>
<goal>xjc</goal>
</goals>
@MenukaIshan
MenukaIshan / Dockerfile
Created April 13, 2022 14:57
This gist shows how to install application is a Redhat ubi8-minimal based container
FROM jboss/keycloak:12.0.3
# Switch to root, in order to install application
USER root
# Install the dev environments you need
RUN microdnf install yum
#Switch back to jboss user to run like previously intended
USER jboss
# Beyond this line should run your code as previously configured
@MenukaIshan
MenukaIshan / registry file for add Git bash.reg
Created May 16, 2022 12:54
This registry file create Open Git Bash option in the Context Menu we get, when we right clicked on windows
Windows Registry Editor Version 5.00
; Open files
; Default Git-Bash Location C:\Program Files\Git\git-bash.exe
[HKEY_CLASSES_ROOT\*\shell\Open Git Bash]
@="Open Git Bash"
"Icon"="C:\\Program Files\\Git\\git-bash.exe"
[HKEY_CLASSES_ROOT\*\shell\Open Git Bash\command]
@="\"C:\\Program Files\\Git\\git-bash.exe\" \"--cd=%1\""