Changeset - 2088c500415e
[Not reviewed]
default
0 6 1
drewp@bigasterisk.com - 8 months ago 2024-05-13 02:03:41
drewp@bigasterisk.com
pdm & homepage fixes
4 files changed:
Changeset was too big and was cut off... Show full diff anyway
0 comments (0 inline, 0 general)
.hgignore
Show inline comments
 
\.installed.cfg
 
\.coverage
 
\.keyboardcomposer\.savedlevels
 
\.light9-window-geometry
 
_test_show
 
bin/ipython
 
bin/python
 
dmx_usb_module/.gitignore
 
dmx_usb_module/Module.symvers
 
dmx_usb_module/build/temp.linux-x86_64-2.7
 
dmx_usb_module/dmx.c
 
dmx_usb_module/dmx_usb.ko
 
dmx_usb_module/dmx_usb_test
 
dmx_usb_module/modules.order
 
env
 
env_pi
 
lib/python2.7
 
# keep bower.json nonboring
 
light9/web/lib/[acdefghijklmnopqrstuvwyzQN]
 
show/dance20../music
 
show/dance201./sessions/?
 
show/dance2011
 
show/dance2012
 
show/dance2013/build
 
show/dance2014/build/?
 
show/dance2014/music
 
show/.*/spectrogram
 
show/.*/doc
 
stagesim/three.js-master
 
tkdnd
 
node_modules
 

	
 
lib/FlameGraph/
 
lib/pyflame/
 
show/dance..../capture
 
show/dance2017/networking.n3
 
show/dance2019/model/
 
show/dance2019/video/
 
show/dance2023/theater-models
 
timelapse/
 
__pycache__
 
rgbled/build-nano328/
 
__pypackages__
 
work
 
.pytest_cache
 

	
 
src/light9.egg-info/
 
dist/
 
.pdm-python
 
\ No newline at end of file
bin/debug/setWindowTitle
Show inline comments
 
new file 100755
 
#!/bin/zsh
 

	
 
print -Pn "\033]0;custom title\007"
bin/homepage
Show inline comments
 
#!/bin/zsh
 

	
 
CONF=/tmp/light9_nginx.conf
 

	
 
bin/python light9/homepage/write_config.py $CONF
 
pdm run python src/light9/homepage/write_config.py $CONF
 

	
 
pnpm vite -c light9/web/vite.config.ts &
 
pnpm vite -c web/vite.config.ts &
 
/usr/sbin/nginx -c $CONF
 
wait
makefile
Show inline comments
 
### setup ###
 

	
 
performance_mode:
 
	for x ( /sys/devices/system/cpu/cpufreq/policy*/scaling_governor) { echo performance | sudo tee $x }
 

	
 

	
 
packages:
 
	sudo aptitude install -y \
 
		audacity \
 
		coffeescript \
 
		curl \
 
		git \
 
		libblas-dev \
 
		libcairo2-dev \
 
		libffi-dev \
 
		libjpeg8-dev \
 
		liblapack-dev \
 
		libssl-dev \
 
		libzmq3-dev \
 
		mercurial \
 
		nginx-core \
 
		nginx-full \
 
		normalize-audio \
 
		python3-cairo-dev \
 
		python3-dev \
 
		python3-opencv \
 
		python3-pygame \
 
		python3-tk \
 
		sox \
 
		tix \
 
		zlib1g-dev
 

	
 
gst_packages:
 
	sudo aptitude install -y \
 
		gir1.2-goocanvas-2.0 \
 
		gir1.2-gst-plugins-base-1.0 \
 
		gir1.2-gstreamer-1.0 \
 
		gstreamer1.0-plugins-good \
 
		gstreamer1.0-pulseaudio \
 
		gstreamer1.0-tools \
 
		libgirepository-1.0-1 \
 
		libgirepository1.0-dev \
 
		python3-gi \
 
		python3-gst-1.0
 

	
 
pnpm:
 
	sudo npm install -g pnpm@7.29.3
 
	sudo npm install -g pnpm@8.12.0
 

	
 
bin/node:
 
	ln -sf `which nodejs` bin/node
 

	
 
pdm_local_install:
 
	# drew has ~/bin in $PATH
 
	pip install "pdm==1.15.0"
 
	pip install "pdm==2.12.4"
 
	ln -s ../.local/bin/pdm ~/bin
 

	
 
js:
 
	pnpm install --reporter append-only
 

	
 
py:
 
	pdm sync
 

	
 
setup: packages gst_packages pnpm js py
 

	
 
deps: js py
 

	
 
push_github:
 
	hg bookmark -r default main && hg push git+ssh://git@github.com/drewp/light9.git
 

	
 
pull_github:
 
	hg pull git+ssh://git@github.com/drewp/light9.git
 

	
 
### show ###
 

	
 
qlc_artnet_dmx_proxy:
 
	qlcplus --open cur/qlc.qxw
 

	
 
no_screen_blanking:
 
	xset s off
 
	xset -dpms
 

	
 
pulseaudio_loopback_device:
 
	pactl load-module module-loopback
 

	
 
show_data_checkpoint:
 
	hg add ${LIGHT9_SHOW} 
 
	hg com ${LIGHT9_SHOW} -m "checkpoint show data"
 

	
 
### pi setup ###
 

	
 
raspberry_pi_packages:
 
	sudo apt-get install python3-picamera python3-dev python3-twisted python3-virtualenv
 

	
 
raspberry_pi_virtualenv:
 
	mkdir -p env_pi
 
	virtualenv -p /usr/bin/python3 --system-site-packages env_pi
 
	env_pi/bin/pip install cyclone 'coloredlogs==6.0'
 

	
 
### arduino build ###
 

	
 
/usr/share/arduino/Arduino.mk:
 
	sudo aptitude install arduino-mk

Changeset was too big and was cut off... Show full diff anyway

0 comments (0 inline, 0 general)