Skip to content

Instantly share code, notes, and snippets.

View javagrails's full-sized avatar
💗
Coding - Coding - Coding & Coding

Salman* javagrails

💗
Coding - Coding - Coding & Coding
View GitHub Profile
@javagrails
javagrails / solr data type field mapping info.json
Last active July 13, 2020 08:44
solr data type field mapping
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",
@javagrails
javagrails / spring-postgresql-docker.config
Last active March 29, 2018 15:30
Spring PostgreSql by Docker Configuration for Development
---------------------- 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
@javagrails
javagrails / java-stream-nested-groupingBy.md
Last active January 11, 2019 06:52
java stream nested groupingBy

Scenerio

public class Student {
private int id;
private String name;
private List<State> states = new ArrayList<>();
}

public class State {
    private int id;

private String name;

@javagrails
javagrails / bash-torch.md
Last active April 1, 2020 15:55
Necessary bash commands

Necessary Bash Commands

Uninstall any package with Bash command from terminal here example with [ nginx ].
$ sudo apt-get remove nginx
$ sudo apt-get autoremove
$ sudo apt-get autoclean
$ sudo apt-get remove --purge nginx 
@javagrails
javagrails / extract_emails_from_text.py
Last active July 23, 2019 05:27 — forked from dideler/example.md
A python script for extracting email addresses from text files.You can pass it multiple files. It prints the email addresses to stdout, one address per line.For ease of use, remove the .py extension and place it in your $PATH (e.g. /usr/local/bin/) to run it like a built-in command.
#!/usr/bin/env python
#
# Extracts email addresses from one or more plain text files.
#
# Notes:
# - Does not save to file (pipe the output to a file if you want it saved).
# - Does not check for duplicates (which can easily be done in the terminal).
#
# chmod +x extract_emails_from_text.py
# ./extract_emails_from_text.py file_to_parse.txt | sort | uniq
@javagrails
javagrails / temporary-email-address-domains
Created September 27, 2019 13:00 — forked from adamloving/temporary-email-address-domains
A list of domains for disposable and temporary email addresses. Useful for filtering your email list to increase open rates (sending email to these domains likely will not be opened).
0-mail.com
0815.ru
0clickemail.com
0wnd.net
0wnd.org
10minutemail.com
20minutemail.com
2prong.com
30minutemail.com
3d-painting.com
@javagrails
javagrails / free_email_provider_domains.txt
Created October 7, 2019 06:42 — forked from tbrianjones/free_email_provider_domains.txt
A list of free email provider domains. Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
1033edge.com
11mail.com
123.com
123box.net
123india.com
123mail.cl
123qwe.co.uk
126.com
150ml.com
15meg4free.com
@javagrails
javagrails / free_email_provider_domains.txt
Created October 7, 2019 06:43 — forked from okutbay/free_email_provider_domains.txt
Most complete list of free email provider domains. Some of these are probably not around anymore. I've combined a dozen lists from around the web. Current "major providers" should all be in here as of the date this is created.
007addict.com
020.co.uk
027168.com
0815.ru
0815.ru0clickemail.com
0815.ry
0815.su
0845.ru
0clickemail.com
0-mail.com
@javagrails
javagrails / README.md
Created August 18, 2021 18:37 — forked from kordless/README.md
Secure Solr Server in 2 Minutes with NGINX

Deploy Solr on Google Cloud in 2 Minutes

Useful information and scripts for deploying an instance based Solr Cloud in 2 minutes.

Check this repo out on your Google Cloud Shell terminal.

Launch Solr

Deploy a secure Solr instance on Google cloud:

$ ./deploy-solr.sh