Skip to content

Instantly share code, notes, and snippets.

Avatar

Mark Uretsky voidale

  • Prague
View GitHub Profile
@voidale
voidale / deploy_aws.sh
Created Dec 23, 2016 — forked from wearhere/deploy_aws.sh
CI script to convert a Meteor application into a Node.js application then deploy it to AWS Elastic Beanstalk.
View deploy_aws.sh
#!/bin/bash
#
# This script will convert a Meteor application into a Node.js application
# then deploy it to AWS Elastic Beanstalk.
#
# Run like `deploy_aws.sh my_eb_app my_eb_app-production`.
#
# That will deploy the Meteor application containing this script
# to the `my_eb_app-production` environment of the `my_eb_app` EB application.
@voidale
voidale / custom-npm-install.config
Created Dec 23, 2016 — forked from wearhere/custom-npm-install.config
`npm install`s a Meteor application bundle during AWS Elastic Beanstalk deployment.
View custom-npm-install.config
files:
"/opt/elasticbeanstalk/hooks/appdeploy/pre/55npm_install.sh":
mode: "000755"
owner: root
group: root
content: |
#!/usr/bin/env bash
# Custom npm install to work with Meteor/s build command
export USER=root
export HOME=/tmp
View get_expected_risk.py
import pandas as pd
import numpy as np
def get_expected_risk_for_system(system):
value_of_positions_proportion_capital = get_positions_as_proportion_of_capital(system)
instrument_returns = get_instrument_returns(system)
instrument_returns = instrument_returns.ffill().reindex(value_of_positions_proportion_capital.index)
You can’t perform that action at this time.