Skip to content

Instantly share code, notes, and snippets.

@francoisruty
francoisruty / test.py
Last active April 6, 2022 08:00
fruty_opencv-opengl-projection-matrix
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
@francoisruty
francoisruty / nginx_proxy_google.conf
Created February 14, 2021 17:09
fruty_docker-outbound-restriction
user nginx;
worker_processes 8;
error_log syslog:server=unix:/dev/log warn;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
@francoisruty
francoisruty / docker-compose.yml
Created February 14, 2021 17:02
fruty_docker-outbound-restriction
version: '3'
services:
nginx-proxy-google:
networks:
- no-internet
- internet
image: nginx:stable
volumes:
- ./nginx_proxy_google.conf:/etc/nginx/nginx.conf
@francoisruty
francoisruty / script.sh
Created June 29, 2019 14:41
Deep learning on Shadow PC
# 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 January 15, 2020 16:20
fruty_react-admin
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 July 31, 2019 13:46
fruty_reactjs-nextjs
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 July 29, 2019 17:47
fruty_trading-automation
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 July 2, 2019 13:51
fruty_strategy-consulting-data-science
version: '2'
services:
worker:
build: .
environment:
PG_DATABASE: ${PG_DATABASE}
PG_USER: ${PG_USER}
PG_PASSWORD: ${PG_PASSWORD}
volumes:
@francoisruty
francoisruty / docker-compose.yml
Created June 29, 2019 14:36
fruty_distributed-docker-registry
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"]
version: '2'
services:
registry:
image: registry:2
ports:
- "127.0.0.1:5500:5000"
environment:
REGISTRY_STORAGE_DELETE_ENABLED: 'true'