sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
- Download zsh-autosuggestions by
| # Content of the file /etc/logstash/conf.d/squid.conf | |
| # Squid logs MAC address of the source host | |
| # Logs are sending by syslog-ng raw without standard log headers | |
| input { | |
| tcp { | |
| host => "xxx.xxx.xxx.xxx" | |
| port => xxxx | |
| type => SQUID | |
| tags => [SQUID] |
| #!/usr/bin/env python | |
| """ | |
| Retrieve intraday stock data from Google Finance. | |
| """ | |
| import csv | |
| import datetime | |
| import re | |
| import pandas as pd |
| #!/usr/bin/env python | |
| import io | |
| import time | |
| import picamera | |
| import picamera.array | |
| import numpy as np | |
| from PIL import Image, ImageDraw |
| #!/usr/bin/env python | |
| # encoding: utf-8 | |
| ''' | |
| Elasticsearch export using Python ES client's scroll feature | |
| @author: mbonaci | |
| @copyright: 2016 Sematext. All rights reserved. | |
| @license: Apache 2.0 | |
| @contact: [email protected] | |
| ''' |
| POST _ingest/pipeline/_simulate | |
| { | |
| "pipeline" : { | |
| "description": "A pipeline to do named entity extraction", | |
| "processors": [ | |
| { | |
| "script": { | |
| "lang": "painless", | |
| "inline": "ctx.params = [:] ; /&/.splitAsStream(ctx.x).forEach(pair -> { def x = /=/.split(pair); ctx.params[x[0]] = x[1]; })" | |
| } |
| import io | |
| import requests | |
| import pandas as pd | |
| from bokeh.models import ColumnDataSource, HoverTool, ResizeTool, SaveTool | |
| from bokeh.models.widgets import TextInput, Button | |
| from bokeh.plotting import figure, curdoc | |
| from bokeh.layouts import row, widgetbox | |
| TICKER = "" |
| #!/usr/bin/env python | |
| # Implementation of algorithm from http://stackoverflow.com/a/22640362/6029703 | |
| import numpy as np | |
| import pylab | |
| def thresholding_algo(y, lag, threshold, influence): | |
| signals = np.zeros(len(y)) | |
| filteredY = np.array(y) | |
| avgFilter = [0]*len(y) | |
| stdFilter = [0]*len(y) |