$ sudo apt-get remove nginx
$ sudo apt-get autoremove
$ sudo apt-get autoclean
$ sudo apt-get remove --purge nginx
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---------------------- postgresql.yml ---------------------- | |
version: '2' | |
services: | |
yourProjectName-pg: | |
image: postgres:9.6-alpine | |
volumes: | |
- ~/dockerdata/yourProjectName/postgresql/:/var/lib/postgresql/data/ | |
environment: | |
- POSTGRES_USER=openuser | |
- POSTGRES_PASSWORD=openpass |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://bigwisdom.net/solr-tutorial-learn-solr-in-2-hours/ | |
========================== Solr Basic Data Types for Index ============================= | |
Data Type |Index_Suffix |Example | |
---------------------------------------------------------------------- | |
String _s id:"1051", | |
String _s url_s:"https://javagrails.wordpress.com/", | |
String _s title_s:"MackBookProkk", | |
String _s description_s:"dmlasd", | |
String _s duration_s:"dasdsad", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
===== ## ubuntu OS Information ===== | |
sudo lsb_release -a | |
===== ## build essential for ubuntu ===== | |
sudo apt-get install -y build-essential | |
sudo apt-get install libpng-dev libjpeg-dev -y | |
sudo apt-get install pngquant -y | |
sudo apt-get install unrar -y |
Docker is a tool which helps developers build and ship high quality applications, faster, anywhere.
With Docker, developers can build any app in any language using any toolchain. Dockerized apps are completely portable and can run anywhere.
Developers can get going by just spinning any container out of list on Docker Hub. Docker manages and tracks changes and dependencies, making it easier for sysadmins to understand how the apps that developers build work. And with Docker Hub, developers can automate their build pipeline and share artifacts with collaborators through public or private repositories.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
whereis yarn | |
yarn -v | |
sudo apt-get remove yarn && sudo apt-get purge yarn | |
curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add - | |
echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list | |
sudo apt-get update && sudo apt-get install yarn -y |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import java.util.Date; | |
import java.text.ParseException; | |
import java.text.SimpleDateFormat; | |
/** | |
* <b>DateStringFormatter</b> | |
* | |
* @author Salman | |
* Url https://github.com/javagrails | |
* @ since Created by Salman on 3/22/2016. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
How to Setup a Local Static File Server in Windows by XAMPP | |
M.M. Saleh (Salman) - https://github.com/javagrails | |
total.bk - it may be a file server | |
1. create a folder for server root path in location [ D:\zfileserver ] | |
2. Go to the path [D:\xampp\apache\conf\extra] | |
Open the file [ httpd-vhosts.conf ] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class JavaIntegerBehave { | |
public static void main(String[] args) { | |
Integer i= new Integer(10); | |
Integer j= new Integer(10); | |
System.out.println("R1: "+(i==j)); // false | |
Integer k= 10;//new Integer(10); | |
Integer l = 10;//new Integer(10); |