Skip to content

Instantly share code, notes, and snippets.

View docker-compose.yml
version: '2'
services:
nginx-front:
image: nginx:stable
ports:
- "3000:80"
volumes:
- ./nginx-front.conf:/etc/nginx/nginx.conf
links:
@francoisruty
francoisruty / test.py
Created Aug 29, 2019
fruty_opencv-opengl-projection-matrix
View test.py
import cv2
import numpy as np
import math
cx = 88 #principal point x coord
cy = 109 #principal point y coord
w = 178 #image width
h = 218 #image height
near = 10 #near plane
far = 20 #far plane
View docker-compose.yml
version: '2'
services:
nginx-front:
image: nginx:stable
ports:
- "3000:80"
volumes:
- ./nginx-front.conf:/etc/nginx/nginx.conf
links:
@francoisruty
francoisruty / docker-compose.yml
Created Jul 29, 2019
fruty_trading-automation
View docker-compose.yml
version: '2'
services:
#RabbitMQ broker, for Celery
rabbit:
hostname: rabbit
image: rabbitmq:3.7.3
environment:
- RABBITMQ_DEFAULT_USER=${RABBITMQ_DEFAULT_USER}
- RABBITMQ_DEFAULT_PASS=${RABBITMQ_DEFAULT_PASS}
@francoisruty
francoisruty / docker-compose.yml
Created Jul 2, 2019
fruty_strategy-consulting-data-science
View docker-compose.yml
version: '2'
services:
worker:
build: .
environment:
PG_DATABASE: ${PG_DATABASE}
PG_USER: ${PG_USER}
PG_PASSWORD: ${PG_PASSWORD}
volumes:
@francoisruty
francoisruty / script.sh
Created Jun 29, 2019
Deep learning on Shadow PC
View script.sh
# Run those commands:
conda update conda
conda update anaconda
conda update python
conda update –all
conda create –name tf-gpu
cmd
activate tf-gpu
conda install -c aaronzs tensorflow-gpu #(note: this channel proposes a recent Tensorflow binary for windows)
conda install -c anaconda cudatoolkit
@francoisruty
francoisruty / docker-compose.yml
Created Jun 29, 2019
fruty_distributed-docker-registry
View docker-compose.yml
registry:
image: registry:2
ports:
- 127.0.0.1:5500:5000
environment:
REGISTRY_STORAGE_DELETE_ENABLED: 'true'
REGISTRY_STORAGE_S3_ACCESSKEY: ${AWS_ACCESS_KEY}
REGISTRY_STORAGE_S3_SECRETKEY: ${AWS_SECRET_KEY}
volumes:
["./config.yml:/etc/docker/registry/config.yml"]
View docker-compose.yml
version: '2'
services:
registry:
image: registry:2
ports:
- "127.0.0.1:5500:5000"
environment:
REGISTRY_STORAGE_DELETE_ENABLED: 'true'
View docker-compose.yml
version: '2'
services:
load-balancer:
image: nginx
ports: ["80:80"]
volumes: ["./example.conf:/etc/nginx/conf.d/example.conf:ro"]
web-server:
You can’t perform that action at this time.