apt remove uwsgi uwsgi-core
rm /usr/bin/uwsgi
rm /usr/local/bin/uwsgi
rm -rf /usr/lib/uwsgi
rm -rf /usr/local/lib/uwsgi
Any config files in /etc
can stay.
#!/bin/bash | |
# Require argument for the package name | |
if [ -z "$1" ]; then | |
# only show script name in usage | |
echo "Usage: $(basename $0) <package_name>" | |
exit 1 | |
fi | |
pkgname="$1" |
from build123d import * | |
from ocp_vscode import * | |
C, MIN, MAX = Align.CENTER, Align.MIN, Align.MAX | |
pip_count = 6 | |
brick_unit_size = 8 | |
pip_height = 1.8 | |
pip_diameter = 4.8 |
# As of 9/24/2023 | |
# This requires conda, mamba, or micromamba | |
micromamba create -n code_cad python=3.10 -c conda-forge | |
micromamba -n code_cad install -c cadquery -c conda-forge cadquery=master | |
micromamba -n code_cad run pip install \ | |
'typing_extensions~=4.4.0' 'numpy~=1.24.1' 'svgpathtools~=1.5.1' \ | |
'anytree~=2.8.0' 'ezdxf~=1.0.0' 'numpy-stl~=3.0.0' 'ipython~=8.0.0' \ | |
'git+https://github.com/CadQuery/[email protected]#egg=OCP-stubs' \ | |
'git+https://github.com/jdegenstein/py-lib3mf#egg=py_lib3mf' | |
micromamba -n code_cad run pip install --no-deps git+https://github.com/gumyr/build123d |
{ | |
"home_assistant": { | |
"installation_type": "Unknown", | |
"version": "2022.12.3", | |
"dev": false, | |
"hassio": false, | |
"virtualenv": false, | |
"python_version": "3.10.8", | |
"docker": false, | |
"arch": "x86_64", |
[uwsgi] | |
plugins-dir = /usr/lib/uwsgi/plugins | |
emperor = /etc/uwsgi/vassals/*.ini | |
show-config = 1 | |
uid = http | |
gid = http | |
emperor-stats = /run/uwsgi/emperor-stats.sock | |
umask = 002 | |
logto = /var/log/uwsgi/emperor.log |
[uwsgi] | |
module = hive.wsgi | |
workers = 6 | |
plugins = python3 | |
base = /srv/hive | |
virtualenv = /srv/hive | |
logto = /srv/hive/log/uwsgi.hive.log | |
socket = /run/uwsgi/hive.sock | |
touch-reload = /srv/hive/reload | |
buffer-size = 32768 |
<!doctype html> | |
<html> | |
<head> | |
<script src="load-pages.js"></script> | |
<script>window.PagedConfig = {auto: false};</script> | |
<script src="https://unpkg.com/pagedjs/dist/paged.polyfill.js"></script> | |
<style> | |
@media screen { | |
.pagedjs_sheet { | |
box-shadow: 1px 1px 4px 1px rgba(0,0,0,0.15); |
<!doctype html> | |
<html> | |
<head> | |
<script src="https://unpkg.com/pagedjs/dist/paged.polyfill.js"></script> | |
<style> | |
@media screen { | |
.pagedjs_sheet { | |
box-shadow: 1px 1px 4px 1px rgba(0,0,0,0.15); | |
margin: 20px auto; | |
} |
#!/bin/bash | |
usage() { | |
echo "Usage: $(basename $0) in.pdf dest"; | |
} | |
[[ -z "$1" ]] && usage && exit 1; | |
[[ -z "$2" ]] && usage && exit 1; | |
TMPDIR="$(mktemp -d)"; | |
DIR=$2; |