Skip to content

Instantly share code, notes, and snippets.

View emprit1988's full-sized avatar

prithivirajan emprit1988

  • Chennai
View GitHub Profile
@emprit1988
emprit1988 / gist:6ac215a373296c78c745f0fa4fdb154c
Created July 4, 2020 06:47
install sts in ubuntu and install lombok
https://medium.com/@nditah/how-to-install-spring-tool-suite-3-on-ubuntu-18-30ca339a0787
https://stackoverflow.com/questions/35842751/lombok-not-working-with-sts (post answer in this)
both installed and uninstalled version
http://dolszewski.com/spring/spring-boot-properties-per-maven-profile/
@emprit1988
emprit1988 / gist:e23d23e7ccdd979b93fab2cc3dc2a32f
Created April 27, 2019 05:21
Repository 'X' changed its 'Origin' value from 'xxx' to 'xxy'. This must be accepted explicitly before updates for this repository can be applied.
sudo apt update (prompts for acceptance)
sudo apt-get update --allow-releaseinfo-change
sudo apt-get update
sudo apt-get install <package-name>
http://jsoneditoronline.org/
https://github.com/josdejong/jsoneditor
https://jsoneditoronline.org/doc/
https://json-schema-editor.tangramjs.com/editor.html#/
https://github.com/tangram-js/json-schema-editor
https://json-schema-editor.tangramjs.com/
https://github.com/Draggable/formeo
https://github.com/kaushiknishchay/react-form-builder#readme
@emprit1988
emprit1988 / gist:9038a8ecfbe40c710fae38ee23793987
Last active May 7, 2019 14:14
Setup Java , Spring CLI , IntelliJ , Maven
sudo apt-get update
sudo apt-get install default-jre
sudo apt-get install default-jdk
get path from:
sudo update-alternatives --config java
sudo gedit /etc/environment
JAVA_HOME="/usr/lib/jvm/java-8-oracle"
@emprit1988
emprit1988 / gist:200ee04eaa12408362b5d8952113b24a
Created March 13, 2019 13:33
Checklist to consider new technology
What problem does it solve and How was it addressed earlier?
How fast is it?
What runtimes can we use (X) in?
What are we doing for resiliency? For example, what are we doing to make sure the (X) service stays up?
How do we handle restarts?
How are we measuring the latency of the service?
What are the costs involved in building (X)?
What reports and dashboards will be available to us to help us understand what problems we could face?
How much in percentage of our business can use (X)?
What are its limitations?
@emprit1988
emprit1988 / gist:503d52066bc64311e313a285aaef7616
Created November 28, 2018 07:45
Remove postgres and install Postgres 10 (Ubuntu 14.04)
Step1: Take dump of all your databases
pg_dumpall > outputfile
Step2: Uninstall Postgres
dpkg -l | grep postgres
Step3: Get list of all postgres related packages from Step 2 and form purge command
sudo apt-get --purge remove postgresql postgresql-8.3 postgresql-client postgresql-client-8.3 postgresql-client-common postgresql-common postgresql-contrib postgresql-contrib-8.3
Step4: Remove all data directories
@emprit1988
emprit1988 / README.txt
Created November 16, 2018 10:41
Install Java 11 in ubuntu 18.04
Step 1: Download JDK from Oracle
https://www.oracle.com/technetwork/java/javase/downloads/index.html
Step 2: Install the package
sudo dpkg -i jdk-11.0.1_linux-x64_bin.deb
Step 3: Config Java (use jdk-xx.x.x based on your downloaded version)
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk-11.0.1/bin/java 2
sudo update-alternatives --config java
@emprit1988
emprit1988 / docker-fix.txt
Created October 12, 2018 05:40
Docker Permission Fix
Running docker as non-root user
Note: Should run every command in the user account.
Step 1: Create the docker group.
$ sudo groupadd docker
Step 2: Add your user to the docker group.
$ sudo usermod -aG docker $USER
Step 3: Change ownership to the current user
@emprit1988
emprit1988 / install_ssl.txt
Created June 4, 2018 17:18
Install Entrust SSL in NGINX Server running in Ubuntu 14.04
Step 1: Create chained certificate with the provided crt files. Ordering is important.
~$ cat Server.crt Intermediate.crt Root.crt > Chained_certificate.crt
Step 2: Format the concatenation
The crt file should Follow the syntax
-----Start Certificate-----
############################
############################
-----End Certificate-----