This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# run me on rpi-cnc | |
socat /dev/ttyUSB0,raw,echo=0 tcp-listen:8888,reuseaddr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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\]" |