Notes by Craig Phillips
- There are 11 fallacies of Distributed Computing:
- The network is reliable
- Latency isn’t a problem
- Bandwidth isn’t a problem
- The network is secure
- The topology won’t change
| (?i)((access_key|access_token|admin_pass|admin_user|algolia_admin_key|algolia_api_key|alias_pass|alicloud_access_key|amazon_secret_access_key|amazonaws|ansible_vault_password|aos_key|api_key|api_key_secret|api_key_sid|api_secret|api.googlemaps AIza|apidocs|apikey|apiSecret|app_debug|app_id|app_key|app_log_level|app_secret|appkey|appkeysecret|application_key|appsecret|appspot|auth_token|authorizationToken|authsecret|aws_access|aws_access_key_id|aws_bucket|aws_key|aws_secret|aws_secret_key|aws_token|AWSSecretKey|b2_app_key|bashrc password|bintray_apikey|bintray_gpg_password|bintray_key|bintraykey|bluemix_api_key|bluemix_pass|browserstack_access_key|bucket_password|bucketeer_aws_access_key_id|bucketeer_aws_secret_access_key|built_branch_deploy_key|bx_password|cache_driver|cache_s3_secret_key|cattle_access_key|cattle_secret_key|certificate_password|ci_deploy_password|client_secret|client_zpk_secret_key|clojars_password|cloud_api_key|cloud_watch_aws_access_key|cloudant_password|cloudflare_api_key|cloudflare_auth_k |
| # high-low spread estimator (hlse) | |
| def hlse(ohlc_df, frequency='daily'): | |
| """ | |
| Computes the high-low spread estimator, an estimate of bid-offer spreads, a measure of liquidity risk. | |
| See Corwin & Schultz (2011) for details: https://papers.ssrn.com/sol3/papers.cfm?abstract_id=1106193 | |
| Parameters | |
| ---------- | |
| ohlc_df: DataFrame | |
| DataFrame with DatetimeIndex and Open, High, Low and Close (OHLC) prices from which to compute the high-low spread estimates. |
| import pandas as pd | |
| import numpy as np | |
| import datetime as dt | |
| import math | |
| import warnings | |
| warnings.filterwarnings("ignore") | |
| prices = pd.read_csv("adjclose.csv", index_col="Date", parse_dates=True) | |
| volumechanges = pd.read_csv("volume.csv", index_col="Date", parse_dates=True).pct_change()*100 |
| #!/bin/sh | |
| # This script will fetch the Googlevideo ad domains and append them to the Pi-hole block list. | |
| # Run this script daily with a cron job (don't forget to chmod +x) | |
| # More info here: https://discourse.pi-hole.net/t/how-do-i-block-ads-on-youtube/253/136 | |
| # File to store the YT ad domains | |
| FILE=/etc/pihole/youtube.hosts | |
| # Fetch the list of domains, remove the ip's and save them | |
| curl 'https://api.hackertarget.com/hostsearch/?q=googlevideo.com' \ |
| # -*- coding: utf-8 -*- | |
| """ | |
| Created on Fri Jun 02 17:02:32 2017 | |
| @author: Vangelis@logical-invest.com | |
| This script will pull the symbols from your specified Amibroker database and download historical EOD dividend adjusted data from Tiingo.com and will store them | |
| in a folder (Destop/Data/TiingoEOD) as csv files, one for each stock (APPLE.csv SPY.csv, etc) | |
| It will then attempt to open Amibroker and import the csv files. | |
| You need: | |
| 1. To add your own Token number you will get when you register at Tiingo.com (line 51) | |
| 2. Specify the Amibroker database you want updated (line 99) |
| //Marketcalls Backtesting Tutorial | |
| _SECTION_BEGIN("EMA Crossover Trading System"); | |
| SetChartOptions(0,chartShowArrows|chartShowDates); | |
| //Plot CandleSticks | |
| Plot( C, "Price", ParamColor( "Color", colorDefault ), ParamStyle( "Style", styleCandle, maskPrice ) ); | |
| //Compute EMA 20 and EMA50 |
| #!/usr/bin/env bash | |
| #Assuming same user name for all hosts | |
| USER_NAME='gatling' | |
| #Remote hosts list | |
| HOSTS=(node1-load.some.host node2-load.some.host node3-load.some.host node4-load.some.host) | |
| #Assuming all Gatling installation in same path (with write permissions) | |
| GATLING_HOME=/opt/loadtest/ | |
| #No need to change this | |
| REMOTE_REPORT_DIR=/opt/loadtest/target/gatling/ |
| //Coded by Rajandran R | |
| //Author - www.marketcalls.in | |
| //Date : 21st FEB 2017 | |
| _SECTION_BEGIN("Open == High AND Open == Low Exploration"); | |
| DOpen = TimeFrameGetPrice( "O", inDaily, 0 ); // gives you Todays Open price. | |
| DHigh = TimeFrameGetPrice( "H", inDaily, 0 ); // gives you Todays High price. | |
| DLow = TimeFrameGetPrice( "L", inDaily, 0 ); // gives you Todays High price. |