Skip to content

Instantly share code, notes, and snippets.

View augustodossantosti's full-sized avatar
🏠
Working from home

Augusto Santos augustodossantosti

🏠
Working from home
  • Matera Systems
View GitHub Profile
@augustodossantosti
augustodossantosti / installJdkTarGzUbuntu.sh
Created November 28, 2022 12:57 — forked from filipelenfers/installJdkTarGzUbuntu.sh
Install JDK from tar.gz Ubuntu
#Login as root
sudo su
#create jdk directory
mkdir /opt/jdk
#uncompress, change to your file name
tar -zxf jdk-8u5-linux-x64.tar.gz -C /opt/jdk
#check if files are there
@augustodossantosti
augustodossantosti / ApplicationContextHolder.java
Created August 16, 2018 12:06 — forked from ufuk/ApplicationContextHolder.java
Utility bean for getting Spring beans from static context.
import org.springframework.beans.BeansException;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ApplicationContextAware;
import org.springframework.stereotype.Component;
@Component
public class ApplicationContextHolder implements ApplicationContextAware {
private static ApplicationContext applicationContext;