Skip to content

Instantly share code, notes, and snippets.

View tushev's full-sized avatar
🍸

Simon Tushev tushev

🍸
  • Northern Hemisphere
View GitHub Profile
@tushev
tushev / .env
Created January 31, 2024 17:25
Minimal dockerizable FastCGI example using Python
COMPOSE_PROJECT_NAME = example
PYTHON_VER = 3
CONTAINER_UID = 1000
CONTAINER_GID = 1000
SOCKET_UID = 1000
SOCKET_GID = 33
SOCKET_MODE = 660
# This is a part of /etc/ssh/sshd_config
Match User XXXXXXXXXXX
AllowTcpForwarding yes
X11Forwarding no
AllowAgentForwarding no
# ForceCommand /bin/false
# GatewayPorts no
PubkeyAuthentication yes
PasswordAuthentication no
PermitEmptyPasswords no
@tushev
tushev / L2R_coordinates.m
Last active February 16, 2021 07:43
Unity2MATLAB: Simple (although not-intuitive) conversion of coordinates and rotations from left-handed coordinate system (used by Unity) to right-handed (used by camera calibration toolbox in MATLAB\Octave)
function coords = L2R_coordinates(Lcoords)
if size(Lcoords,1) > 0
if size(Lcoords,2) > 1
x = Lcoords(:,1);
y = Lcoords(:,2);
z = Lcoords(:,3);
else
x = Lcoords(1);