Add homepage attribute to package.json via terminal | React package.json edit | Edit json file via terminal
Add/Remove homepage attribute from package.json whenever you needed.
For Mac OS
brew install moreutils
brew install jq
# progressdots.sh - Display progress while making backup | |
# Based on idea presnted by nixCraft forum user rockdalinux | |
# Show progress dots | |
# Credit: https://bash.cyberciti.biz/guide/Putting_functions_in_background | |
progress(){ | |
echo -n "$0: Please wait..." | |
while true | |
do | |
echo -n "." |
# bash function to ssh to remote host | |
# Usage: ec2-ssh 192.168.1.2 | |
ec2-ssh() { | |
if (( $# == 0 )) | |
then | |
echo "USAGE: ec2-ssh <ip>" | |
return | |
fi | |
user="ubuntu" | |
host_name=$1 |
input { | |
file { | |
path => "/config-dir/laravel.log" | |
start_position => "beginning" | |
sincedb_path => "/dev/null" | |
# If the files are quite old (more then 24h) very useful is to add below option | |
# credit: https://stackoverflow.com/users/421860/mtfk | |
# ingnore_older => 0 | |
codec => multiline { | |
# Grok pattern names are valid! :) |
Pull docker image
docker pull mongo
Run mongo db container
docker run --name mongod -d -v mongo-data:/data/db -p 27017:27017 mongo
#!/bin/bash | |
sudo yum update -y && sudo amazon-linux-extras install docker && sudo service docker start && sudo usermod -a -G docker ec2-user && docker info |
`sudo -u logstash /usr/share/logstash/bin/logstash -f /home/gayan/Downloads/log-stash-demo/logstash-cars.config` | |
Setting up on ubuntu 16 thanks to below link: | |
https://www.digitalocean.com/community/tutorials/how-to-install-elasticsearch-logstash-and-kibana-elastic-stack-on-ubuntu-16-04 |