Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# run me on rpi-cnc
socat /dev/ttyUSB0,raw,echo=0 tcp-listen:8888,reuseaddr
#!/bin/bash
# run this on bCNC client machine
SERVER="${1:-rpi-cnc}
sudo socat PTY,raw,echo=0,link=/dev/ttyVUSB0,waitslave tcp:$SERVER:8888
# https://github.com/git/git/blob/master/contrib/completion/git-prompt.sh
GIT_PS1_SHOWUPSTREAM="auto verbose"
source ~/bin/git-prompt.sh
PROMPT_TIME=${PROMPT_TIME:-yes}
PROMPT_ELAPSED_SECONDS=${PROMPT_ELAPSED_SECONDS:-no}
_red="\[\e[01;31m\]"
_green="\[\e[01;32m\]"