Skip to content

Instantly share code, notes, and snippets.

AWS_PROFILE=buysocial npm run local
ngrok:
# cd /Applications
cd /Applications/work-mac/bidpath-work
# first time:
#./ngrok config add-authtoken 2cG4frUfXjAfoqozTdTnjRgjpqp_UGZqALnUUMJTad8y777r
./ngrok http --domain=stable-glider-moderately.ngrok-free.app 8080
#./ngrok http --domain=strongly-steady-falcon.ngrok-free.app 8080
cloudlfare:
cd /home/chirag-unix/work/chirag-aws
cd /Applications/work-mac/chirag-aws/
ssh -i "demo-server-keypair.pem" ubuntu@18.141.102.217
https://www.digitalocean.com/community/tutorials/how-to-install-linux-apache-mysql-php-lamp-stack-on-ubuntu-22-04
sudo service apache2 restart
sudo service apache2 reload
# NVM
GET /state_compliance/_search
{
"size":25,
"from":0,
"query":{
"bool":{
"must":[
{
"query_string":{
"default_field":"data",
@chiragpurohit71085
chiragpurohit71085 / es-queries.txt
Last active June 28, 2024 07:29
elastic-search
POST /state_compliance/_analyze
{
"field": "data",
"text": "123456AB1"
}
GET /state_compliance/_mapping
GET /state_compliance/_search
{