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 / 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\""
@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 / 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 / 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
# 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 / 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.
java.lang.IllegalArgumentException: Invalid Compnay Id [{1}]
at hms.hris.employee.service.impl.DependantServiceFactoryImpl.lambda$dependantServiceForCompany$1(DependantServiceFactoryImpl.java:56)
at java.util.Optional.orElseThrow(Optional.java:290)
at hms.hris.employee.service.impl.DependantServiceFactoryImpl.dependantServiceForCompany(DependantServiceFactoryImpl.java:55)
at hms.hris.employee.service.impl.DependantServiceImplTest.getDependentsTest(DependantServiceImplTest.java:65)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
@MenukaIshan
MenukaIshan / Assignment.java
Created June 5, 2018 03:51
A example code which created for a stackoverflow question https://stackoverflow.com/q/50691564/2940265
package com;
import java.io.File;
import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Path;
import java.util.LinkedList;
import java.util.List;
import java.util.Scanner;
import static java.lang.System.out;
@MenukaIshan
MenukaIshan / settings.xml
Created December 24, 2017 17:24
Raw settings.xml file for example. No commented lines removed. Created for blog https://goo.gl/y9CfVM
<?xml version="1.0" encoding="UTF-8"?>
<!--
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements. See the NOTICE file
distributed with this work for additional information
regarding copyright ownership. The ASF licenses this file
to you under the Apache License, Version 2.0 (the
"License"); you may not use this file except in compliance
with the License. You may obtain a copy of the License at
@MenukaIshan
MenukaIshan / pom.xml
Created December 24, 2017 17:19
Sample Pom.xml for Maven release plugin. Created for blog https://goo.gl/y9CfVM
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>menuka</groupId>
<artifactId>menukanows</artifactId>
<packaging>war</packaging>
<version>1.2-SNAPSHOT</version>
<name>menukanows Maven Webapp</name>
<url>http://maven.apache.org</url>
<dependencies>
<dependency>