Requires
- aws-cli - https://aws.amazon.com/cli/
- jq - https://stedolan.github.io/jq/
Configure path to your ECS SSH key file ~/.bashrc
echo 'export ECS_PEM_FILE=$HOME/docker.pem' >> ~/.bashrc
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| # This is not used unless SQLALCHEMY_BINDS is not present | |
| SQLALCHEMY_DATABASE_URI = 'mysql+pymysql://{username}:{password}@{hostname}/{database}?charset=utf8' | |
| SQLALCHEMY_BINDS = { | |
| 'master': 'mysql+pymysql://{username}:{password}@{hostname}/{database}?charset=utf8', | |
| 'slave': 'mysql+pymysql://{username}:{password}@{hostname}/{database}?charset=utf8' | |
| } |
| """ | |
| Console module provide `copen` method for opening interactive python shell in | |
| the runtime. | |
| """ | |
| import code | |
| import readline | |
| import rlcompleter | |
| def copen(_globals, _locals): |
| # -*- coding: utf-8 -*- | |
| # Form implementation generated from reading ui file 'threading_design.ui' | |
| # | |
| # Created: Thu Aug 6 13:47:18 2015 | |
| # by: PyQt4 UI code generator 4.10.4 | |
| # | |
| # WARNING! All changes made in this file will be lost! | |
| from PyQt4 import QtCore, QtGui |
Requires
Configure path to your ECS SSH key file ~/.bashrc
echo 'export ECS_PEM_FILE=$HOME/docker.pem' >> ~/.bashrc
| import subprocess | |
| def pkgconfig(*packages, **kw): | |
| """ | |
| Query pkg-config for library compile and linking options. Return configuration in distutils | |
| Extension format. | |
| Usage: | |
| pkgconfig('opencv') |
Make sure ffmpeg is up-to-date:
brew update
brew upgrade ffmpeg
Convert a MOV into frames. Tweak the 2/1 if you want more or fewer frames.
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| """ | |
| Created on Mon Nov 28 13:51:26 2016 | |
| @author: rishabh | |
| """ | |
| import pandas as pd | |
| import numpy as np |
Follow the steps below to use babel together with ts-loader so that you can
use emotion (or any other Babel plugin) in your React and TypeScript project.
$ create-react-app my-app --scripts-version=react-scripts-ts