This is a short step-by-step guide on installing ElasticSearch LogStash and Kibana Stack on a CentOS environment to gather and analyze logs.
rpm -ivh https://dl.dropboxusercontent.com/u/5756075/jdk-7u45-linux-x64.rpm
require! <[googleapis request moment readline fluent-ffmpeg]> | |
rl = readline.create-interface do | |
input: process.stdin | |
output: process.stdout | |
video-id ='' | |
stream-id = '' | |
stream-url = '' |
# Connect to AWS SES | |
openssl s_client -crlf -quiet -connect email-smtp.us-east-1.amazonaws.com:465 | |
openssl s_client -crlf -quiet -starttls smtp -connect email-smtp.us-east-1.amazonaws.com:25 | |
# SMTP commands | |
EHLO 2ndwatch.com | |
AUTH LOGIN | |
# Username by 'echo -n [accesskey] | base64' | |
skdfjlskdflskj |
Syntax: cat <filename> | jq -c '.[] | select( .<key> | contains("<value>"))'
Example: To get json record having _id equal 611
cat my.json | jq -c '.[] | select( ._id | contains(611))'
Remember: if JSON value has no double quotes (eg. for numeric) to do not supply in filter i.e. in contains(611)
# The script illustartes stunning difference on my machine with processing of signal with multiprocessing and joblib. | |
# The slowness of multiprocessing is likely caused by oversubscription | |
import time | |
import numpy as np | |
import librosa | |
from joblib import Parallel, delayed | |
from functools import partial | |
from multiprocessing import Pool |