This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt install libgl1-mesa-glx libxrender1 libxi6 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
mkdir -p /data/git | |
mkdir -p /data/storage | |
mkdir -p /data/config | |
mkdir -p /data/certs | |
sudo apt-get update | |
sudo apt-get -y install python-pip | |
pip install docker-compose |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mongo_pillar: | |
image: mongo | |
container_name: mongo_pillar | |
ports: | |
- "27017:27017" | |
volumes: | |
- /data/storage/db:/data/db | |
pillar: | |
#build: /data/git/pillar/docker/pro | |
image: pillar-apache |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def dispatch_tasks(job_id=None): | |
""" | |
We want to assign a task according to its priority and its assignability | |
to the less requested available compatible limited manager. If it does not exist, | |
we assign it to the unlimited compatible manager. Otherwise, keep the task and wait | |
to the next call to dispatch_tasks | |
The task dispaching algorithm works as follows: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import socket | |
from flask import Flask, render_template, jsonify, redirect, url_for | |
from uuid import getnode as get_mac | |
MAC_ADDR = get_mac() # the MAC address of the worker | |
HOSTNAME = socket.gethostname() # the hostname of the worker | |
# we initialize the app | |
app = Flask(__name__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
def SyncViews(): | |
for view in bpy.context.scene.render.views: | |
if (view.name == 'left'): | |
use_left = view.use | |
camera_left = view.camera | |
if (view.name == 'right'): | |
use_right = view.use | |
camera_right = view.camera |