Skip to content

Instantly share code, notes, and snippets.

@gioper86
Last active March 23, 2025 14:18
Show Gist options
  • Select an option

  • Save gioper86/8570d7bb4edf14e82e4bf84e4828a109 to your computer and use it in GitHub Desktop.

Select an option

Save gioper86/8570d7bb4edf14e82e4bf84e4828a109 to your computer and use it in GitHub Desktop.
snippets

venv - virtual envs

create a new virtual environment python -m venv <virtual-environment-name>

activate a virtual environment source <virtual-env-path>/bin/activate

Raspberry Pi camera module video stream

on the Raspberry Pi

raspivid -w 640 -h 480 --nopreview -t 0 -o - | nc 192.168.1.32 5001

on the client (Mac Os in my case)

nc -l 5001 | mplayer -fps 30 -demuxer h264es -

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment